Sha256: 7678f2a382225882ef28f86c313286ae8b79c7864dcd28f31a74445666ac95b0

Contents?: true

Size: 1.47 KB

Versions: 14

Compression:

Stored size: 1.47 KB

Contents

module NetSuite
  module Records
    class InterCompanyJournalEntry
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::TranGeneral

      actions :get, :get_list, :add, :delete, :search, :upsert

      fields :approved, :created_date, :exchange_rate, :is_book_specific, :last_modified_date, :memo, :reversal_date, :reversal_defer,
        :reversal_entry, :tran_date, :tran_id

      field :custom_field_list, CustomFieldList
      field :line_list,         InterCompanyJournalEntryLineList

      record_refs :created_from, :currency, :custom_form, :department, :klass, :location, :parent_expense_alloc,
        :posting_period, :subsidiary, :to_subsidiary

      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

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

      def self.search_class_name
        "Transaction"
      end

      def self.search_class_namespace
        "tranSales"
      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.rb
netsuite-0.9.2 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.9.1 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.9.0 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.12 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.11 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.10 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.9 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.8 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.7 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.6 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.5 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.4 lib/netsuite/records/inter_company_journal_entry.rb
netsuite-0.8.3 lib/netsuite/records/inter_company_journal_entry.rb