PEPPOL-EN16931-R055 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 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.
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-110 / 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": "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 locates the element in the generated UBL document,
which is where a KoSIT or Peppol validator will report the same problem.
A passing value
"taxAmountInAccountingCurrency": 3200.00The 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.