[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs:api\u002FQuittio\u002FCore\u002FCorrections\u002FCancellation":3},{"versions":4,"version":26,"nav":28,"path":106,"kind":107,"page":108},[5,10,13,16,18,20,22,24],{"name":6,"label":7,"prefix":8,"channel":9},"0.7","0.7 (latest)","","latest",{"name":11,"label":12,"prefix":11,"channel":11},"next","next (unreleased)",{"name":14,"label":14,"prefix":14,"channel":15},"0.6","old",{"name":17,"label":17,"prefix":17,"channel":15},"0.5",{"name":19,"label":19,"prefix":19,"channel":15},"0.4",{"name":21,"label":21,"prefix":21,"channel":15},"0.3",{"name":23,"label":23,"prefix":23,"channel":15},"0.2",{"name":25,"label":25,"prefix":25,"channel":15},"0.1",{"name":6,"label":7,"prefix":8,"channel":9,"base":27},"\u002Fdocs",[29,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,91,94,97,100,103],{"slug":30,"title":31,"preview":32},"index","Home",false,{"slug":34,"title":35,"preview":32},"getting-started","Getting started",{"slug":37,"title":38,"preview":32},"concepts","E-invoicing basics",{"slug":40,"title":41,"preview":32},"examples","Examples",{"slug":43,"title":44,"preview":32},"building-invoices","Building invoices",{"slug":46,"title":47,"preview":32},"formats","Formats and profiles",{"slug":49,"title":50,"preview":32},"validation","Validation",{"slug":52,"title":53,"preview":32},"templates","Templates and design",{"slug":55,"title":56,"preview":32},"documents","Quotes and other documents",{"slug":58,"title":59,"preview":32},"reading","Reading incoming invoices",{"slug":61,"title":62,"preview":32},"laravel","Laravel integration",{"slug":64,"title":65,"preview":32},"configuration","Configuration",{"slug":67,"title":68,"preview":32},"commands","Artisan commands",{"slug":70,"title":71,"preview":32},"testing","Testing",{"slug":73,"title":74,"preview":32},"country-packs","Country packs",{"slug":76,"title":77,"parent":74,"preview":32},"country-at","Austria",{"slug":79,"title":80,"parent":74,"preview":32},"country-be","Belgium",{"slug":82,"title":83,"parent":74,"preview":32},"country-ch","Switzerland",{"slug":85,"title":86,"parent":74,"preview":32},"country-fr","France",{"slug":88,"title":89,"preview":90},"managed","Managed layer (preview)",true,{"slug":92,"title":93,"preview":32},"troubleshooting","Troubleshooting",{"slug":95,"title":96,"preview":32},"faq","FAQ",{"slug":98,"title":99,"preview":32},"compatibility","Versioning and compatibility",{"slug":101,"title":102,"preview":32},"field-reference","Field reference",{"slug":104,"title":105,"preview":32},"ai","AI assistants","api\u002FQuittio\u002FCore\u002FCorrections\u002FCancellation","api",{"title":109,"description":110,"html":111,"headings":112},"Cancellation","Full cancellation of an issued invoice: a new invoice with its own number that reverses the original and refers to it (BG-3).","\u003Cp class=\"q-api-crumbs\">\u003Ca href=\"\u002Fdocs\u002Fapi\">API reference\u003C\u002Fa> \u002F \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\">Quittio\u003C\u002Fa> \\ \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\">Core\u003C\u002Fa> \\ \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FCorrections\">Corrections\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch1>Cancellation\u003C\u002Fh1>\n\u003Cp class=\"q-api-facts\">\u003Cspan class=\"q-api-badge q-api-badge-kind\">final class\u003C\u002Fspan> in \u003Cspan class=\"q-api-badge\">quittio\u002Fcore\u003C\u002Fspan>\u003C\u002Fp>\n\u003Cp class=\"q-api-name\">\u003Ccode>Quittio\\Core\\Corrections\\Cancellation\u003C\u002Fcode> · \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FQuittio\u002Fquittio\u002Fblob\u002Fv0.7.1\u002Fpackages\u002Fcore\u002Fsrc\u002FCorrections\u002FCancellation.php#L79\">Source\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp class=\"q-doc-lead\">Full cancellation of an issued invoice: a new invoice with its own number that reverses the original and refers to it (BG-3).\u003C\u002Fp>\n\u003Cp>Sign strategies (17.2):\u003C\u002Fp>\n\u003Cul>\n\u003Cli>credit_note:      type code 381, amounts positive; UBL writes a CreditNote document,\u003C\u002Fli>\n\u003Cli>negative_invoice: type code 380, quantities and allowance\u002Fcharge amounts negated.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>The cancellation of a credit note is an invoice (380) with the same positive amounts in\nboth strategies.\u003C\u002Fp>\n\u003Cp>Self-billed documents stay self-billed (issued by the buyer, labelled &quot;Gutschrift&quot; by the\nkept regulatory note): a self-billed invoice (389) or debit note (527) is cancelled by a\nself-billed credit note (261) or a negative self-billed invoice (389), a self-billed credit\nnote by a self-billed invoice (389) with positive amounts.\u003C\u002Fp>\n\u003Cp>Both are permitted in Germany; apart from self-billing the document must not be called\n&quot;Gutschrift&quot;. The original data is never changed.\u003C\u002Fp>\n\u003Cp>Declared amounts (Meta::FLAG_DECLARED_AMOUNTS): a full cancellation reverses the declared\nline net amounts (BT-131) and the declared VAT breakdown (BT-116, BT-117) of the original,\nalso if another system rounded differently (BT-131 within 0.02, PEPPOL-EN16931-R120; BT-117\nwithin the tolerance of BR-CO-17), so that the totals BT-106 to BT-115 are reversed exactly.\nA partial cancellation keeps the declared amounts of whole cancelled lines; quantities and\namounts of a line are recalculated. Its VAT is that of the cancelled part, round2(taxable\namount × rate) per VAT group, unless a CancellationHistory of the earlier partial\ncancellations is given: then the VAT is rounded cumulatively per group and declared\n(Meta::FLAG_CANCELLATION_VAT_ALIGNED), so that all cancellations together reverse exactly the\ntaxable amount (BT-116) and the VAT (BT-117) of every group and BT-111 in accounting currency.\nIn gross price mode the net amounts follow cumulatively from the gross amounts cancelled so far\n(round2(G \u002F (1 + rate)) like the original) and the rounding amount (BT-114) from the amounts used,\nso that the amount due stays the gross amount of the cancelled lines. Every cancellation then\ndiffers by at most 0.01 from round2(own taxable amount × rate), with the sign of its taxable\namount (QUITTIO-CANCELLATION-VAT-ALIGNED, mentioned in the cancellation note); for an original\nwhose VAT another system rounded, from round2(own taxable amount × the original's BT-117 \u002F\nBT-116), which spreads that rounding over the parts. A history that does not fit the original\n(CancellationHistory::assertFits()) is rejected.\u003C\u002Fp>\n\n\u003Ch2 id=\"constants\">Constants\u003Ca class=\"q-doc-anchor\" href=\"#constants\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Ctable class=\"q-doc-table q-stack-table\">\u003Cthead>\u003Ctr>\u003Cth>Constant\u003C\u002Fth>\u003Cth>Value\u003C\u002Fth>\u003Cth>Description\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr id=\"constant-STRATEGIES\">\u003Ctd>\u003Ccode>STRATEGIES\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Value\">\u003Ccode>[\\Quittio\\Core\\Countries\\CorrectionPolicy::CANCELLATION_CREDIT_NOTE, \\Quittio\\Core\\Countries\\CorrectionPolicy::CANCELLATION_NEGATIVE_INVOICE]\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2 id=\"methods\">Methods\u003Ca class=\"q-doc-anchor\" href=\"#methods\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Ctable class=\"q-doc-table q-stack-table q-api-summary\">\u003Cthead>\u003Ctr>\u003Cth>Method\u003C\u002Fth>\u003Cth>Description\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr>\u003Ctd>\u003Ca href=\"#method-of\">\u003Ccode>::of()\u003C\u002Fcode>\u003C\u002Fa>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Csection class=\"q-api-member\" id=\"method-of\">\n\u003Ch3>\u003Ccode>of()\u003C\u002Fcode>\u003Ca class=\"q-doc-anchor\" href=\"#method-of\" aria-label=\"Link to this method\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cdiv class=\"q-doc-code q-doc-code-plain\">\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">public\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> static\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> function\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\"> of\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    InvoiceData\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $original,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    string\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $number,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    string\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $strategy \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> \\Quittio\\Core\\Countries\\CorrectionPolicy\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">::\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">CANCELLATION_CREDIT_NOTE\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    ?string\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $reason \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    ?\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">Date\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $issueDate \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    ?string\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $locale \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    string\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">|\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $title \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#E6EDF3\">    list&#x3C;array{line: string, quantity?: BigDecimal|int|string, Amount?: string}>|\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $lines \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    ?\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">CorrectionPolicy\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $policy \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    CancellationHistory\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">|\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $history \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#79C0FF\">    TotalsCalculator\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $calculator \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> new\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> \\Quittio\\Core\\Calculation\\En16931Calculator\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">)\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">:\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> InvoiceBuilder\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\u003Cp class=\"q-api-tags\">\u003Cspan class=\"q-api-badge\">static\u003C\u002Fspan>\u003C\u002Fp>\n\n\n\u003Ctable class=\"q-doc-table q-stack-table\">\u003Cthead>\u003Ctr>\u003Cth>Parameter\u003C\u002Fth>\u003Cth>Type\u003C\u002Fth>\u003Cth>Description\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr>\u003Ctd>\u003Ccode>$original\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>\u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FData\u002FInvoiceData\">InvoiceData\u003C\u002Fa>\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$number\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>string\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$strategy\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>string\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>\\Quittio\\Core\\Countries\\CorrectionPolicy::CANCELLATION_CREDIT_NOTE\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$reason\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>?string\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>null\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$issueDate\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>?\u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FSupport\u002FDate\">Date\u003C\u002Fa>\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>null\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$locale\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>?string\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>null\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$title\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>string|null\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>null\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">document title in the PDF, e.g. &quot;Stornorechnung&quot;; without it the title comes from $policy (&quot;cancellation_self_billed&quot; for self-billed originals)\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$lines\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>list&lt;array{line: string, Quittio\\Core\\Corrections\\quantity?: Brick\\Math\\BigDecimal|int|string, \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FSupport\u002FAmount\">Amount\u003C\u002Fa>?: string}&gt;|null\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>null\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">partial cancellation: whole lines, a quantity of a line or an amount of a line (e.g. a price reduction); null cancels the whole invoice. Quantities and amounts are magnitudes, negative lines keep their sign. For lines with a price including VAT (gross price mode) the amount includes VAT\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$policy\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>?\u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FCountries\u002FCorrectionPolicy\">CorrectionPolicy\u003C\u002Fa>\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>null\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$history\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>\u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FCorrections\u002FCancellationHistory\">CancellationHistory\u003C\u002Fa>|null\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>null\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">partial cancellations: what the earlier partial cancellations of the original cancelled per VAT group, and which groups this one closes, for the cumulative rounding of the VAT (see CancellationHistory); without it the VAT is rounded per document\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$calculator\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>\u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FCalculation\u002FTotalsCalculator\">TotalsCalculator\u003C\u002Fa>\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>new \\Quittio\\Core\\Calculation\\En16931Calculator()\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">calculator of the VAT alignment with $history, e.g. the one of the Quittio instance\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cdl class=\"q-api-dl\">\n\u003Cdt>Returns\u003C\u002Fdt>\u003Cdd>\u003Ccode>\u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FBuilder\u002FInvoiceBuilder\">InvoiceBuilder\u003C\u002Fa>\u003C\u002Fcode>\u003C\u002Fdd>\n\u003Cdt>Throws\u003C\u002Fdt>\u003Cdd>\u003Ccode>\u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FExceptions\u002FInvalidArgumentException\">InvalidArgumentException\u003C\u002Fa>\u003C\u002Fcode> – e.g. for a history that does not fit the original\u003C\u002Fdd>\n\u003C\u002Fdl>\n\u003C\u002Fsection>",[113,117],{"id":114,"text":115,"level":116},"constants","Constants",2,{"id":118,"text":119,"level":116},"methods","Methods"]