Sha256: 4a8255c84e4d7d66dfadae640ecca10900e25fc6c54ebb9e3d4515f3651074b2

Contents?: true

Size: 636 Bytes

Versions: 8

Compression:

Stored size: 636 Bytes

Contents

# frozen_string_literal: true

require_relative 'currency'
require_relative 'subsidiary'
require_relative 'journal_entry_line_item'

module LedgerSync
  module Ledgers
    module NetSuite
      class JournalEntry < NetSuite::Resource
        attribute :memo, type: Type::String
        attribute :trandate, type: Type::Date
        attribute :tranId, type: Type::String

        references_one :currency, to: Currency
        references_one :subsidiary, to: Subsidiary

        references_many :line_items, to: JournalEntryLineItem

        def name
          "JournalEntry: #{transaction_date}"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb
ledger_sync-1.4.4 lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/netsuite/resources/journal_entry.rb