lib/netsuite/records/invoice.rb in netsuite-0.0.32 vs lib/netsuite/records/invoice.rb in netsuite-0.0.33

- old
+ new

@@ -46,8 +46,16 @@ @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 + 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