API reference / Quittio \ Core \ Tax
SupplyDate
final class in quittio/core
Quittio\Core\Tax\SupplyDate · Source
The 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.
Methods#
| Method | Description |
|---|---|
::ofLine() | The supply date of a line of the invoice. |
::resolve() | The first date that is set, in the order above; null if none is. |
ofLine()#
public static function ofLine(InvoiceData $invoice, InvoiceLine $line): DateThe supply date of a line of the invoice.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$line | InvoiceLine |
- Returns
Date
resolve()#
public static function resolve(
?Period $linePeriod,
?Date $taxPointDate,
?Date $deliveryDate,
?Period $invoicingPeriod,
?Date $issueDate,
): ?DateThe first date that is set, in the order above; null if none is.
| Parameter | Type | Description |
|---|---|---|
$linePeriod | ?Period | |
$taxPointDate | ?Date | |
$deliveryDate | ?Date | |
$invoicingPeriod | ?Period | |
$issueDate | ?Date |
- Returns
?Date