---
title: "Correction – API-Referenz · Quittio"
description: "Corrected invoice (type code 384) that replaces an issued invoice: a copy of the original with its own number, the reference to the original (BG-3) and the note \"Diese Rechnung berichtigt und ersetzt die Rechnung … vom …\" (BT-22), so that it states by a specific and unambiguous reference that it corrects the original (section 31 (5) UStDV, section 15.2a (7) UStAE). Change what was wrong on the returned builder."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Corrections/Correction"
locale: de
meta:
  "og:description": "Corrected invoice (type code 384) that replaces an issued invoice: a copy of the original with its own number, the reference to the original (BG-3) and the note \"Diese Rechnung berichtigt und ersetzt die Rechnung … vom …\" (BT-22), so that it states by a specific and unambiguous reference that it corrects the original (section 31 (5) UStDV, section 15.2a (7) UStAE). Change what was wrong on the returned builder."
  "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": "Correction – 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) \\ [Corrections](https://quittio.dev/docs/api/Quittio/Core/Corrections)

# Correction

final class in quittio/core

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

Corrected invoice (type code 384) that replaces an issued invoice: a copy of the original with its own number, the reference to the original (BG-3) and the note "Diese Rechnung berichtigt und ersetzt die Rechnung … vom …" (BT-22), so that it states by a specific and unambiguous reference that it corrects the original (section 31 (5) UStDV, section 15.2a (7) UStAE). Change what was wrong on the returned builder.

Cancelling the original and issuing a new invoice (Cancellation) is the safer default: a receiving system that does not read 384 as replacement books both invoices. Credit notes and self-billed documents are corrected that way only.

## Methods \#

| Method | Description |
| --- | --- |
| `::note()` | The note of a corrected invoice in the locale (label "correction\_note"). |
| `::of()` | |

### `note()`#

```
public static function note(string $number, ?Date $issueDate, string $locale): string
```

static

The note of a corrected invoice in the locale (label "correction\_note").

| Parameter | Type | Description |
| --- | --- | --- |
| `$number` | `string` | |
| `$issueDate` | `? [Date](https://quittio.dev/docs/api/Quittio/Core/Support/Date)` | |
| `$locale` | `string` | |

<dl><dt>Returns</dt>
<dd><code>string</code></dd>
</dl>

### `of()`#

```
public static function of(
    InvoiceData $original,
    string $number,
    ?string $reason = null,
    ?Date $issueDate = null,
    ?string $locale = null,
    string|null $title = null,
    ?CorrectionPolicy $policy = null,
    TotalsCalculator $calculator = new \Quittio\Core\Calculation\En16931Calculator(),
): InvoiceBuilder
```

static

| Parameter | Type | Description |
| --- | --- | --- |
| `$original` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |
| `$number` | `string` | |
| `$reason` | `?string` = `null` | |
| `$issueDate` | `? [Date](https://quittio.dev/docs/api/Quittio/Core/Support/Date)` = `null` | |
| `$locale` | `?string` = `null` | |
| `$title` | `string\|null` = `null` | document title in the PDF, e.g. "Rechnungskorrektur"; without it the title "correction" of $policy |
| `$policy` | `? [CorrectionPolicy](https://quittio.dev/docs/api/Quittio/Core/Countries/CorrectionPolicy)` = `null` | |
| `$calculator` | `[TotalsCalculator](https://quittio.dev/docs/api/Quittio/Core/Calculation/TotalsCalculator)` = `new \Quittio\Core\Calculation\En16931Calculator()` | |

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Builder/InvoiceBuilder">InvoiceBuilder</a></code></dd>
<dt>Throws</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Exceptions/InvalidArgumentException">InvalidArgumentException</a></code> – for a credit note or a self-billed document</dd></dl>

```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/Corrections/Correction#webpage","@type":"WebPage","description":"Corrected invoice (type code 384) that replaces an issued invoice: a copy of the original with its own number, the reference to the original (BG-3) and the note \"Diese Rechnung berichtigt und ersetzt die Rechnung … vom …\" (BT-22), so that it states by a specific and unambiguous reference that it corrects the original (section 31 (5) UStDV, section 15.2a (7) UStAE). Change what was wrong on the returned builder.","name":"Correction – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Corrections/Correction","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Corrections/Correction"]}],"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"}]}
```