Peppol BIS Billing 3.0.21 · UBL

PEPPOL-EN16931-R055: Invoice total VAT amount and Invoice total VAT amount in accounting currency MUST have…

Peppol BIS Billing 3.0.21 · UBL

fatalformat

Original rule text

[PEPPOL-EN16931-R055]-Invoice total VAT amount and Invoice total VAT amount in accounting currency MUST have the same operational sign

Stored validation assertion
not(cbc:TaxCurrencyCode) or (cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:TaxCurrencyCode)] <= 0 and cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:DocumentCurrencyCode)] <= 0) or (cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:TaxCurrencyCode)] >= 0 and cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:DocumentCurrencyCode)] >= 0) 

PEPPOL-EN16931-R055 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

The rule applies to UBL Invoice and CreditNote. It checks that if cbc:TaxCurrencyCode is present, the VAT total amounts reported with @currencyID equal to cbc:TaxCurrencyCode and with @currencyID equal to cbc:DocumentCurrencyCode are both less than or equal to 0, or both greater than or equal to 0. A zero amount is allowed with either non-negative or non-positive values, but one positive and one negative amount fail. The document passes if no cbc:TaxCurrencyCode is given.

How to fix

Compare the two cac:TaxTotal/cbc:TaxAmount values: the one whose @currencyID equals cbc:TaxCurrencyCode and the one whose @currencyID equals cbc:DocumentCurrencyCode. Ensure both values are <=0 or both are >=0, i.e. not one positive and one negative. Correct the sign of one of the amounts accordingly. If a tax currency code is not actually applicable, removing cbc:TaxCurrencyCode also satisfies this rule, but check that this does not conflict with other requirements.

Guidance on this rule. The original text above is authoritative.

Where to go next

No published Peppol BIS Billing UBL release comparison lists a change to PEPPOL-EN16931-R055.

Validate an invoice against these rules · All release changes