Sha256: 7fa9914e85df311ad201841937e365757884ade0214a234edfda05425051dd40
Contents?: true
Size: 933 Bytes
Versions: 16
Compression:
Stored size: 933 Bytes
Contents
module NetSuite module Records class DepositOther include Support::Fields include Support::RecordRefs include Support::Records include Namespaces::TranBank fields :amount, :ref_num, :memo record_refs :entity, :account, :payment_method, :department, :klass, :location 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
16 entries across 16 versions & 1 rubygems