Zum Inhalt springen

API reference

Quittio\Core\Tax

quittio/core#

Quittio\Core\Tax

  • CountryDefaultVatDefault VAT of lines without VAT treatment, for InvoiceBuilder::useDefaultVat():
  • CustomTaxPresetAd-hoc tax preset, e.g. for an exemption with a specific legal reference.
  • DatedTaxPreset interfaceA preset whose rate depends on the date of the supply, e.g. a standard rate that was lowered for half a year. The builder resolves it with the supply date of each line (SupplyDate); rate() returns the rate of today.
  • StatesInvoiceNote interfaceA preset that requires a note on the invoice, e.g. a statement the law prescribes for the special scheme of the preset. The builder adds the note once (BT-22, subject REG) when a line uses the preset, unless the invoice has a note with the same text already.
  • SupplyDateThe date that decides the VAT rate of a line: the end of the line period (BT-135), its start (BT-134), the VAT point date (BT-7), the actual delivery date (BT-72), the end of the invoicing period (BT-74) and finally the issue date (BT-2), in this order.
  • TaxPreset interfaceA named VAT treatment provided by a country pack, e.g. "standard rate 19 %" or "small business exemption". Presets set category, rate, VATEX code and legal note text.
  • TaxPresetCollection

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.