Sha256: 04b9d3a9318e54e5935ddb2236e597b08bbba6c0c2bb6c932782fe8df2db59a5

Contents?: true

Size: 419 Bytes

Versions: 20

Compression:

Stored size: 419 Bytes

Contents

# TODO specs
# TODO a transaction is actually the superclass of a SalesOrder, this is backwards

module NetSuite
  module Records
    class Transaction < SalesOrder

      def to_record
        rec = super
        if rec["#{record_namespace}:customFieldList"]
          rec["#{record_namespace}:customFieldList!"] = rec.delete("#{record_namespace}:customFieldList")
        end
        rec
      end

    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
netsuite-0.4.8 lib/netsuite/records/transaction.rb
netsuite-0.4.7 lib/netsuite/records/transaction.rb
netsuite-0.4.6 lib/netsuite/records/transaction.rb
netsuite-0.4.5 lib/netsuite/records/transaction.rb
netsuite-0.4.4 lib/netsuite/records/transaction.rb
netsuite-0.4.3 lib/netsuite/records/transaction.rb
netsuite-0.4.2 lib/netsuite/records/transaction.rb
netsuite-0.4.1 lib/netsuite/records/transaction.rb
netsuite-0.4.0 lib/netsuite/records/transaction.rb
netsuite-0.3.3 lib/netsuite/records/transaction.rb
netsuite-0.3.2 lib/netsuite/records/transaction.rb
netsuite-0.3.1 lib/netsuite/records/transaction.rb
netsuite-0.3.0 lib/netsuite/records/transaction.rb
netsuite-0.2.6 lib/netsuite/records/transaction.rb
netsuite-0.2.5 lib/netsuite/records/transaction.rb
netsuite-0.2.4 lib/netsuite/records/transaction.rb
netsuite-0.2.3 lib/netsuite/records/transaction.rb
netsuite-0.2.2 lib/netsuite/records/transaction.rb
netsuite-0.2.1 lib/netsuite/records/transaction.rb
netsuite-0.2.0 lib/netsuite/records/transaction.rb