Sha256: f84d14083d3f5dd95d03a4c7c6ea0bed8e4158c634d30f5d7ae60548bb67bac5
Contents?: true
Size: 1.41 KB
Versions: 33
Compression:
Stored size: 1.41 KB
Contents
module NetSuite module Records class PurchaseOrderItem include Support::Fields include Support::RecordRefs include Support::Records include Namespaces::TranPurch fields :amount, :description, :expected_receipt_date, :gross_amt, :is_billable, :is_closed, :line, :match_bill_to_receipt, :quantity, :quantity_available, :quantity_billed, :quantity_on_hand, :quantity_received, :rate, :serial_numbers, :tax1_amt, :tax_rate1, :tax_rate2, :vendor_name field :custom_field_list, CustomFieldList record_refs :bill_variance_status, :klass, :created_from, :customer, :department, :inventory_detail, :item, :landed_cost_category, :linked_order_list, :location, :options, :purchase_contract, :tax_code, :units def initialize(attributes_or_record = {}) case attributes_or_record when Hash initialize_from_attributes_hash(attributes_or_record) when self.class initialize_from_record(attributes_or_record) end end def initialize_from_record(record) self.attributes = record.send(:attributes) 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
33 entries across 33 versions & 1 rubygems