demo/my_functions.rb
# Do we need to start a new instruction? (true/false)
# tx = hash with csv values
# account = active account identified by IBAN
Do we need to start a new instruction. (true/false)
tx = hash with csv values
account = active account identified by IBAN
Do we need to start a new instruction . ( true / false ) tx = hash with csv values account = active account identified by IBAN
def new_instruction?( tx, account )
      if tx[:instrstart] || ( tx[:customeriban] != account )
        return true
      end
      false
    end
def new_instruction? ( tx , account ) if tx [ :instrstart ] || ( tx [ :customeriban ] != account ) return true end false end
Do we need to start a new instruction?
Do we need to start a new instruction?
tx
<not_specific>
account
<not_specific>