BR-DE-14

Das Element "VAT category rate" (BT-119) muss übermittelt werden.

error: the document is invalid

Why it fails

  • A VAT breakdown has no rate: cac:TaxSubtotal/cac:TaxCategory/cbc:Percent (ram:ApplicableTradeTax/ram:RateApplicablePercent in CII) is missing.
  • The rate was left out for an exempt or reverse charge category, where EN 16931 alone would accept that.

How to fix it

Give the rate in every VAT breakdown, 0 for categories that carry no VAT (E, AE, K, G, O, Z).

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal | /cn:CreditNote/cac:TaxTotal/cac:TaxSubtotal
Test
cac:TaxCategory/cbc:Percent[boolean(normalize-space(.))]

Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)

Context
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax
Test
ram:RateApplicablePercent[boolean(normalize-space(.))]

Checked with XRechnung 3.0 Invoice (CII)