Sha256: 4a0f0d53f079251d0b8fcb7f5ce0d739e2c95ba477bdbf79951d3cd7e055fd78

Contents?: true

Size: 695 Bytes

Versions: 24

Compression:

Stored size: 695 Bytes

Contents

module NetSuite
  module Records
    class CashRefundItem
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Namespaces::TranCust

      fields :amount, :rate, :quantity
      field :custom_field_list,    CustomFieldList

      record_refs :item, :klass, :price

      def initialize(attributes_or_record = {})
        initialize_from_attributes_hash(attributes_or_record)
      end

      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

24 entries across 24 versions & 1 rubygems

Version Path
netsuite-0.8.2 lib/netsuite/records/cash_refund_item.rb
netsuite-0.8.1 lib/netsuite/records/cash_refund_item.rb
netsuite-0.8.0 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.9 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.8 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.7 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.6 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.5 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.4 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.3 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.2 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.1 lib/netsuite/records/cash_refund_item.rb
netsuite-0.7.0 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.9 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.8 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.7 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.6 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.5 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.4 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.3 lib/netsuite/records/cash_refund_item.rb