Sha256: 83f516913348bd066c24e0aaf403be9387f306bd8cee815ae84efaaf5f7ba0d9

Contents?: true

Size: 589 Bytes

Versions: 4

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

require_relative 'currency'
require_relative 'journal_entry_line_item'

module LedgerSync
  module Ledgers
    module QuickBooksOnline
      class JournalEntry < QuickBooksOnline::Resource
        attribute :memo, type: Type::String
        attribute :transaction_date, type: Type::Date
        attribute :reference_number, type: Type::String

        references_one :currency, to: Currency

        references_many :line_items, to: JournalEntryLineItem

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ledger_sync-1.4.4 lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb
ledger_sync-1.4.2 lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb
ledger_sync-1.4.1 lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb
ledger_sync-1.4.0 lib/ledger_sync/ledgers/quickbooks_online/resources/journal_entry.rb