demo/my_functions.rb
# Do we need to start a new file? (true/false)
# tx = hash with csv values
# customer = active customer identified by name
Do we need to start a new file. (true/false)
tx = hash with csv values
customer = active customer identified by name
Do we need to start a new file . ( true / false ) tx = hash with csv values customer = active customer identified by name
def new_interchange?( tx, customer )
      if tx[:interchgstart] || ( tx[:customername] != customer )
        return true
      end
      false
    end
def new_interchange? ( tx , customer ) if tx [ :interchgstart ] || ( tx [ :customername ] != customer ) return true end false end
Do we need to start a new file?
Do we need to start a new file?
tx
<not_specific>
customer
<not_specific>