BR-53 The invoice declares a VAT accounting currency (BT-6 = "SEK"), so it must also state the invoice total VAT amount in that currency (BT-111)
The invoice declares a VAT accounting currency (BT-6 = "SEK"), so it must also state the invoice total VAT amount in that currency (BT-111). BT-6 exists for the case where VAT is invoiced in one currency and must be *accounted for* in another — a euro invoice from a seller who reports VAT in Polish złoty, say. Declaring the currency and omitting the amount tells the tax authority which currency the figure will be in without giving them the figure. This library cannot derive it: it depends on the exchange rate the authority prescribes for the tax point, which is not on the invoice.
This rule is implemented and its error payload below is real, but the long-form write-up — normative text, worked example, divergence note — is not written yet. Everything the library knows about this rule is on this page. Ask and we will prioritise it.
- Business term
BT-111- Severity
fatal
What the library returns
The exact object in result.errors when this rule fires.
Generated by running @attestwire/en16931, not transcribed:
{
"rule": "BR-53",
"field": "BT-111",
"severity": "fatal",
"message": "The invoice declares a VAT accounting currency (BT-6 = \"SEK\"), so it must also state the invoice total VAT amount in that currency (BT-111). BT-6 exists for the case where VAT is invoiced in one currency and must be *accounted for* in another — a euro invoice from a seller who reports VAT in Polish złoty, say. Declaring the currency and omitting the amount tells the tax authority which currency the figure will be in without giving them the figure. This library cannot derive it: it depends on the exchange rate the authority prescribes for the tax point, which is not on the invoice.",
"fix": "Set taxAmountInAccountingCurrency to the total VAT converted at the rate your tax authority prescribes for the tax point, rounded to 2 decimals. Remove vatAccountingCurrency if VAT is accounted for in the invoice currency.",
"example": "\"vatAccountingCurrency\": \"PLN\", \"taxAmountInAccountingCurrency\": 1218.45",
"xpath": "/ubl:Invoice/cac:TaxTotal[2]/cbc:TaxAmount",
"docsUrl": "https://attestwire.com/rules/BR-53"
}
xpath locates the element in the generated UBL document,
which is where a KoSIT or Peppol validator will report the same problem.
A passing value
"vatAccountingCurrency": "PLN", "taxAmountInAccountingCurrency": 1218.45The fix
Set taxAmountInAccountingCurrency to the total VAT converted at the rate your tax authority prescribes for the tax point, rounded to 2 decimals. Remove vatAccountingCurrency if VAT is accounted for in the invoice currency.