Sha256: 90e041b0a9282d40aa81b4c702527af56b92df651e68781fc7599b89ee4b8cfd
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
module NetSuite module Records # Adding a Customer Deposit example. The customer associated with the sales # order would be linked to the deposit. # # deposit = CustomerDeposit.new # deposit.sales_order = RecordRef.new(internal_id: 7279) # deposit.payment = 20 # deposit.add # class CustomerDeposit include Support::Actions include Support::RecordRefs include Support::Fields include Support::Records include Namespaces::TranCust actions :add, :get fields :custom_form, :payment, :tran_date, :exchange_rate, :undep_funds record_refs :customer, :sales_order, :account attr_reader :internal_id attr_accessor :external_id def initialize(attributes = {}) @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id) @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id) initialize_from_attributes_hash(attributes) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
netsuite-0.2.5 | lib/netsuite/records/customer_deposit.rb |
netsuite-0.2.4 | lib/netsuite/records/customer_deposit.rb |
netsuite-0.2.3 | lib/netsuite/records/customer_deposit.rb |