Sha256: fc9880f810c267fe5d09520c5687b23ea18f7e674443dcab865cb79a9519b050

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

require_relative 'currency'
require_relative 'journal_entry_line'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class JournalEntry < QuickBooksOnline::Resource
        attribute :PrivateNote, type: Type::String
        attribute :TxnDate, type: Type::Date
        attribute :DocNumber, type: Type::String

        references_one :Currency, to: Currency

        references_many :Line, to: JournalEntryLine

        def name
          "JournalEntry: #{self.TxnDate}"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.6.0 lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb
ledger_sync-1.5.2 lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb
ledger_sync-1.5.1 lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb
ledger_sync-1.5.0 lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb