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#
| Method | Description |
|---|---|
::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): InvoiceDataCopies 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.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData |
- Returns
InvoiceData