Skip to content

API reference

Quittio\Core\Documents

quittio/core#

Quittio\Core\Documents

  • AccountStatementAccount statement for a customer: open and paid invoices of a period.
  • BonusStatementData of a bonus statement: a reduction of the consideration of all supplies of a period, e.g. an annual bonus, documented in one statement instead of one document per invoice (in Germany section 17 (4) UStG). The reduction per VAT rate is in the lines of the document.
  • DocumentBuilderFluent builder for documents. Parties, lines, notes, discounts and payment data work exactly like in the {@see InvoiceBuilder}.
  • DocumentCalculatorCalculates documents with the invoice calculator. Optional and alternative lines get their line amounts but are excluded from the totals.
  • DocumentDataQuote, order confirmation, delivery note, proforma invoice, payment reminder, account statement or bonus statement. Shares parties, lines and calculation with {@see InvoiceData}, but never produces e-invoice XML. Payment reminders and account statements have no lines: their amount comes from {@see Dunning} and {@see AccountStatement}.
  • DocumentLineOptionsDocument specific line details, keyed by line identifier in {@see DocumentData}.
  • DocumentType enumCommercial documents that share templates and calculation with invoices but carry no e-invoice XML.
  • DunningData of a payment reminder: open items, fees, interest and the new deadline.
  • DunningFeeFee of a payment reminder (e.g. costs of the reminder, flat rate according to national law).
  • DunningFeeKind enumWhat a fee of a payment reminder is.
  • InterestChargeDefault interest on an open amount for a period (simple interest).
  • OpenItemAn invoice in a payment reminder or account statement.
  • PackagePackage of a delivery note.

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.