Zum Inhalt springen

API reference / Quittio \ Core \ Countries

NumberingRules

final readonly class in quittio/core

Quittio\Core\Countries\NumberingRules · Source

Requirements for invoice numbering in a country. The Managed layer applies the default pattern, the default reset and the allowed resets.

Properties#

PropertyTypeDescription
$allowedResets readonlylist<string>never, yearly, monthly
$defaultPattern readonlystring
$defaultReset readonlystring
$gapless readonlyboolnumbers must be consecutive without unexplained gaps. Informational metadata for applications; Quittio does not read it
$numberConsumedOnRejection readonlyboolthe number of an issued invoice that the recipient rejects stays used and is never issued again. Informational metadata for applications; Quittio does not read it

Methods#

MethodDescription
->__construct()

__construct()#

public function __construct(
    string $defaultPattern = 'INV-{Y}-{seq:4}',
    string $defaultReset = 'yearly',
    list<string> $allowedResets = ['never', 'yearly', 'monthly'],
    bool $gapless = true,
    bool $numberConsumedOnRejection = true,
)
ParameterTypeDescription
$defaultPatternstring = 'INV-{Y}-{seq:4}'
$defaultResetstring = 'yearly'
$allowedResetslist<string> = ['never', 'yearly', 'monthly']never, yearly, monthly
$gaplessbool = truenumbers must be consecutive without unexplained gaps. Informational metadata for applications; Quittio does not read it
$numberConsumedOnRejectionbool = truethe number of an issued invoice that the recipient rejects stays used and is never issued again. Informational metadata for applications; Quittio does not read it

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