Sha256: 35efd27cf4b767c924a38bdf936c90a0894398d501ed35b5ec7e45f48ef8ad28
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true require_relative 'account' require_relative 'customer' require_relative 'invoice_sales_line_item' module LedgerSync class Invoice < LedgerSync::Resource attribute :currency, type: Type::String attribute :memo, type: Type::String attribute :transaction_date, type: Type::Date attribute :deposit, type: Type::Integer references_one :customer, to: Customer references_one :account, to: Account references_many :line_items, to: InvoiceSalesLineItem def name "Invoice: #{transaction_date}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.1 | lib/ledger_sync/resources/invoice.rb |