Faktura

BR-53

fatalEN 16931EN 16931 business ruleCIIUBLBT-111BT-6

If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.

Why it fails

A VAT accounting currency code (BT-6) is given but the total VAT amount in that currency (BT-111) is missing.

How to fix it

Add BT-111 - the invoice's total VAT converted into the accounting currency, UBL cac:TaxTotal/cbc:TaxAmount in a second TaxTotal whose currencyID is BT-6. Or drop BT-6 if the invoice currency is also the VAT accounting currency.

What the validator checks

CII — context $Document_totals

not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode) or (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode and (ram:TaxTotalAmount/@currencyID = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode) and not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode))

UBL — context /ubl:Invoice | /cn:CreditNote

every $taxcurrency in cbc:TaxCurrencyCode satisfies exists(//cac:TaxTotal/cbc:TaxAmount[@currencyID=$taxcurrency])

Related rules

Part of BR — EN 16931 core business rules.

Validate an invoice against this rule →