Attestwire › Rule reference › PEPPOL-EN16931-R055
PEPPOL-EN16931-R055 The VAT total and its accounting-currency amount must share a sign
noun · Peppol BIS · fatal · BT-110 / BT-111
For a sample invoice, the library reports: The invoice total VAT amount (BT-110) is 285.00 EUR and the same total in the VAT accounting currency (BT-111) is -3200.00 SEK. The two must carry the same operational sign, because they are one figure expressed twice — an exchange rate scales a number, it never flips it.
- Business term
BT-110 / BT-111- Severity
fatal
The fix
Set taxAmountInAccountingCurrency to the computed VAT total converted at the rate your tax authority prescribes for the tax point, keeping the sign: 285.00 EUR converts to a figure with the same sign, never the opposite one.
A passing value
"taxAmountInAccountingCurrency": 3200.00What 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:
{
"rule": "PEPPOL-EN16931-R055",
"field": [
"BT-110",
"BT-111"
],
"severity": "fatal",
"message": "The invoice total VAT amount (BT-110) is 285.00 EUR and the same total in the VAT accounting currency (BT-111) is -3200.00 SEK. The two must carry the same operational sign, because they are one figure expressed twice — an exchange rate scales a number, it never flips it. Opposite signs mean the second figure was taken from a different document, or that a credit was converted without its sign. This is a Peppol BIS Billing 3.0 profile rule: it applies because profile is \"peppol-bis-3\". It does not apply to the en16931, xrechnung-ubl or xrechnung-cii profiles, whose validators will accept the same document.",
"fix": "Set taxAmountInAccountingCurrency to the computed VAT total converted at the rate your tax authority prescribes for the tax point, keeping the sign: 285.00 EUR converts to a figure with the same sign, never the opposite one.",
"example": "\"taxAmountInAccountingCurrency\": 3200.00",
"xpath": "/ubl:Invoice/cac:TaxTotal/cbc:TaxAmount",
"docsUrl": "https://attestwire.com/rules/PEPPOL-EN16931-R055"
}
xpath is always a UBL path. On a CII invoice, look for the
matching CII field instead.