Skip to content

API reference / Quittio \ Core \ Reading

DeclaredExemptionReasons

final class in quittio/core

Quittio\Core\Reading\DeclaredExemptionReasons · Source

EN 16931 carries the VAT exemption reason (BT-120, BT-121) only on the VAT breakdown, the data model takes it from the lines (LineVat) and document allowances and charges. Readers copy the declared reasons back, so that a recalculation keeps them.

Methods#

MethodDescription
::apply()Copies the VAT exemption reasons (BT-120, BT-121) of the VAT breakdown to the lines, sub lines and document allowances and charges of the same category and rate that have none. Returns the invoice unchanged if the breakdown declares no reason.

apply()#

public static function apply(InvoiceData $invoice): InvoiceData

static

Copies the VAT exemption reasons (BT-120, BT-121) of the VAT breakdown to the lines, sub lines and document allowances and charges of the same category and rate that have none. Returns the invoice unchanged if the breakdown declares no reason.

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.