---
title: "NumberingRules – API-Referenz · Quittio"
description: "Requirements for invoice numbering in a country. The Managed layer applies the default pattern, the default reset and the allowed resets."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Countries/NumberingRules"
locale: de
meta:
  "og:description": "Requirements for invoice numbering in a country. The Managed layer applies the default pattern, the default reset and the allowed resets."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "NumberingRules – API-Referenz · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api) / [Quittio](https://quittio.dev/docs/api/Quittio) \\ [Core](https://quittio.dev/docs/api/Quittio/Core) \\ [Countries](https://quittio.dev/docs/api/Quittio/Core/Countries)

# NumberingRules

final readonly class in quittio/core

`Quittio\Core\Countries\NumberingRules` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Countries/NumberingRules.php#L11)

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

## Properties \#

| Property | Type | Description |
| --- | --- | --- |
| `$allowedResets` readonly | `list<string>` | never, yearly, monthly |
| `$defaultPattern` readonly | `string` | |
| `$defaultReset` readonly | `string` | |
| `$gapless` readonly | `bool` | numbers must be consecutive without unexplained gaps. Informational metadata for applications; Quittio does not read it |
| `$numberConsumedOnRejection` readonly | `bool` | 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 |

## Methods \#

| Method | Description |
| --- | --- |
| `->__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,
)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$defaultPattern` | `string` = `'INV-{Y}-{seq:4}'` | |
| `$defaultReset` | `string` = `'yearly'` | |
| `$allowedResets` | `list<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 |

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Core/Countries/NumberingRules#webpage","@type":"WebPage","description":"Requirements for invoice numbering in a country. The Managed layer applies the default pattern, the default reset and the allowed resets.","name":"NumberingRules – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Countries/NumberingRules","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Countries/NumberingRules"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```