Error codes

PEPPOL-EN16931-R054: Only one tax total amount must be provided where currency id equals tax currency

Severity: fatal · Syntax: CII, UBL

Official message

Only one tax total amount must be provided where currency id equals tax currency code, if tax currency code (BT-6) is provided.

What this means

The official message is: Only one tax total amount must be provided where currency id equals tax currency code, if tax currency code (BT-6) is provided. This page does not add a further obligation.

Typical cause

The assertion in the context above failed for this file.

How to fix it

Adjust the file so the assertion succeeds, then validate it again. This page helps you read the rule.

Business term

BT-6

Related rules

Context and assertion

UBL ubl-creditnote:CreditNote | ubl-invoice:Invoice

CII ram:ApplicableHeaderTradeSettlement

UBL

count(cac:TaxTotal[not(cac:TaxSubtotal)]) = (if (cbc:TaxCurrencyCode) then 1 else 0)

CII

count(ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID != $documentCurrencyCode]) = (if (ram:TaxCurrencyCode) then 1 else 0)

Check a file now, free of charge

curl -F "file=@rechnung.xml" https://checkxrechnung.com/v1/validate