NumberingRules
in package
Read onlyYes
FinalYes
Requirements for invoice numbering in a country. The Managed layer applies the default pattern, the default reset and the allowed resets.
Table of Contents
Properties
- $allowedResets : array<string|int, mixed>
- $defaultPattern : string
- $defaultReset : string
- $gapless : bool
- $numberConsumedOnRejection : bool
Methods
- __construct() : mixed
Properties
$allowedResets
public
array<string|int, mixed>
$allowedResets
= ['never', 'yearly', 'monthly']
$defaultPattern
public
string
$defaultPattern
= 'INV-{Y}-{seq:4}'
$defaultReset
public
string
$defaultReset
= 'yearly'
$gapless
public
bool
$gapless
= true
$numberConsumedOnRejection
public
bool
$numberConsumedOnRejection
= true
Methods
__construct()
public
__construct([string $defaultPattern = 'INV-{Y}-{seq:4}' ][, string $defaultReset = 'yearly' ][, array<int, string> $allowedResets = ['never', 'yearly', 'monthly'] ][, bool $gapless = true ][, bool $numberConsumedOnRejection = true ]) : mixed
Parameters
- $defaultPattern : string = 'INV-{Y}-{seq:4}'
- $defaultReset : string = 'yearly'
- $allowedResets : array<int, string> = ['never', 'yearly', 'monthly']
-
never, yearly, monthly
- $gapless : bool = true
-
numbers must be consecutive without unexplained gaps. Informational metadata for applications; Quittio does not read it
- $numberConsumedOnRejection : bool = true
-
the 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