Zum Inhalt springen

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#

MethodDescription
::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): Date

static

The supply date of a line of the invoice.

ParameterTypeDescription
$invoiceInvoiceData
$lineInvoiceLine
Returns
Date

resolve()#

public static function resolve(
    ?Period $linePeriod,
    ?Date $taxPointDate,
    ?Date $deliveryDate,
    ?Period $invoicingPeriod,
    ?Date $issueDate,
): ?Date

static

The first date that is set, in the order above; null if none is.

ParameterTypeDescription
$linePeriod?Period
$taxPointDate?Date
$deliveryDate?Date
$invoicingPeriod?Period
$issueDate?Date
Returns
?Date

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