Class: NetSuite::Records::Transaction

Inherits:
SalesOrder
  • Object
show all
Defined in:
lib/netsuite/records/transaction.rb

Instance Attribute Summary

Attributes inherited from SalesOrder

#external_id, #internal_id, #search_joins

Attributes included from Support::Actions

#errors

Instance Method Summary collapse

Methods inherited from SalesOrder

#initialize, search_class_name

Methods included from Namespaces::TranSales

#record_namespace

Methods included from Support::Actions

included

Methods included from Support::Records

#record_type, #to_attributes!

Methods included from Namespaces::PlatformCore

#record_namespace

Methods included from Support::Attributes

#attributes, #attributes=, #initialize_from_attributes_hash

Methods included from Support::RecordRefs

included

Methods included from Support::Fields

included

Constructor Details

This class inherits a constructor from NetSuite::Records::SalesOrder

Instance Method Details

#to_recordObject



8
9
10
11
12
13
14
# File 'lib/netsuite/records/transaction.rb', line 8

def to_record
  rec = super
  if rec["#{record_namespace}:customFieldList"]
    rec["#{record_namespace}:customFieldList!"] = rec.delete("#{record_namespace}:customFieldList")
  end
  rec
end