Sha256: a91df3c73d1d891cbebd66cbc91964592523d9dedb4c50db43915100eeda9950

Contents?: true

Size: 742 Bytes

Versions: 13

Compression:

Stored size: 742 Bytes

Contents

# frozen_string_literal: true

require_relative 'account'
require_relative 'bill_line'
require_relative 'currency'
require_relative 'department'
require_relative 'vendor'

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

      references_one :Vendor, to: Vendor
      references_one :APAccount, to: Account
      references_one :Department, to: Department
      references_one :Currency, to: Currency

      references_many :Line, to: BillLine

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

Version data entries

13 entries across 13 versions & 1 rubygems

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