Sha256: d4ab28a0378d8cae74a9863a87dbe7837302f51654838968564f23b0e0862d1d
Contents?: true
Size: 1016 Bytes
Versions: 2
Compression:
Stored size: 1016 Bytes
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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
netsuite-0.2.2 | lib/netsuite/records/customer_deposit.rb |
netsuite-0.2.1 | lib/netsuite/records/customer_deposit.rb |