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.6.2 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.1 lib/netsuite/records/cash_refund_item.rb
netsuite-0.6.0 lib/netsuite/records/cash_refund_item.rb
netsuite-0.5.9 lib/netsuite/records/cash_refund_item.rb