Sha256: a6ce1d6d41a3123fc0b1f33a12ebace340ae89807cb5e26463c0da4888f7697d

Contents?: true

Size: 939 Bytes

Versions: 14

Compression:

Stored size: 939 Bytes

Contents

module NetSuite
  module Records
    class InterCompanyJournalEntryLine
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Namespaces::TranGeneral

      fields :amortization_end_date, :amortization_residual, :amortiz_start_date, :credit, :debit, :eliminate, :end_date, :gross_amt, :memo,
        :residual, :start_date, :tax1_amt, :tax_rate1
      field :custom_field_list, CustomFieldList
      record_refs :account, :department, :entity, :klass, :line_subsidiary, :location, :schedule, :schedule_num, :tax1_acct, :tax_code

      def initialize(attributes = {})
        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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.9.2 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.9.1 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.9.0 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.12 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.11 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.10 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.9 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.8 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.7 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.6 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.5 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.4 lib/netsuite/records/inter_company_journal_entry_line.rb
netsuite-0.8.3 lib/netsuite/records/inter_company_journal_entry_line.rb