Sha256: 935286c852f3ec3d5c66eaf98508f822d1529fd24af7764e8a8f35b7e7411615

Contents?: true

Size: 514 Bytes

Versions: 11

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

require_relative 'currency'
require_relative 'journal_entry_line'

module LedgerSync
  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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ledger_sync-quickbooks_online-1.0.0 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.4.0 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.3.1 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.3.0 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.2.6 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.2.5 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.2.4 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.2.2 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.2.1 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.2.0 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
ledger_sync-quickbooks_online-0.1.1 lib/ledger_sync/quickbooks_online/resources/journal_entry.rb