Rule reference

PEPPOL-EN16931-R005 The VAT accounting currency (BT-6) is "EUR", which is the same as the invoice currency (BT-5)

The VAT accounting currency (BT-6) is "EUR", which is the same as the invoice currency (BT-5). BT-6 exists for exactly one situation: the tax authority requires VAT to be reported in a currency the invoice is not denominated in — a Swedish invoice in EUR reporting VAT in SEK, say. Setting it to the invoice currency states that situation and then contradicts it, and it obliges you to supply BT-111 (BR-53), a second VAT total in a currency that already has one. 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-6 / BT-5
Severity
fatal

What the library returns

The exact object in result.errors when this rule fires. Generated by running @attestwire/en16931, not transcribed:

TeachingError
{
  "rule": "PEPPOL-EN16931-R005",
  "field": [
    "BT-6",
    "BT-5"
  ],
  "severity": "fatal",
  "message": "The VAT accounting currency (BT-6) is \"EUR\", which is the same as the invoice currency (BT-5). BT-6 exists for exactly one situation: the tax authority requires VAT to be reported in a currency the invoice is not denominated in — a Swedish invoice in EUR reporting VAT in SEK, say. Setting it to the invoice currency states that situation and then contradicts it, and it obliges you to supply BT-111 (BR-53), a second VAT total in a currency that already has one. 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": "Remove vatAccountingCurrency (and taxAmountInAccountingCurrency with it) unless VAT genuinely has to be reported in a second currency. If it does, set vatAccountingCurrency to that currency and leave currency as the one the invoice is billed in.",
  "example": "\"currency\": \"EUR\", \"vatAccountingCurrency\": \"SEK\", \"taxAmountInAccountingCurrency\": 3812.44",
  "xpath": "/ubl:Invoice/cbc:TaxCurrencyCode",
  "docsUrl": "https://attestwire.com/rules/PEPPOL-EN16931-R005"
}

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

the shape this field expects
"currency": "EUR", "vatAccountingCurrency": "SEK", "taxAmountInAccountingCurrency": 3812.44

The fix

Remove vatAccountingCurrency (and taxAmountInAccountingCurrency with it) unless VAT genuinely has to be reported in a second currency. If it does, set vatAccountingCurrency to that currency and leave currency as the one the invoice is billed in.

Arrived from a stack trace? The docsUrl on every error links straight here. Something wrong on this page — tell us.