AttestwireRule referenceBR-53

BR-53 A VAT accounting currency requires the VAT total in that currency

noun · EN 16931 · fatal · BT-111

For a sample invoice, the library reports: 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).

Business term
BT-111
Severity
fatal

The 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.

A passing value

the shape this field expects
"vatAccountingCurrency": "PLN", "taxAmountInAccountingCurrency": 1218.45

What the library returns

The full error returned by @attestwire/en16931. It includes the rule ID, affected field and suggested correction. Developers can use this object in their application:

TeachingError
{
  "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 is always a UBL path. On a CII invoice, look for the matching CII field instead.