Skip to content

API reference / Quittio \ Core \ Calculation

TotalsCalculator

interface in quittio/core

Quittio\Core\Calculation\TotalsCalculator · Source

Calculates line amounts, allowances and charges, the VAT breakdown and totals.

Methods#

MethodDescription
->calculate()Returns $invoice with calculated line amounts, allowances and charges, VAT breakdown and totals; the input stays unchanged.

calculate()#

public function calculate(InvoiceData $invoice): InvoiceData

Returns $invoice with calculated line amounts, allowances and charges, VAT breakdown and totals; the input stays unchanged.

ParameterTypeDescription
$invoiceInvoiceData
Returns
InvoiceData

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