VAT rate for a zero-rated charge must be zero

Error BR-Z-07 EN 16931

In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Zero rated" the Document level charge VAT rate (BT-103) shall be 0 (zero).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The charge is marked as zero rated (Z), but ram:RateApplicablePercent is not zero. The VAT rate is missing or contains a value other than zero.

What the rule means

Tax category Z identifies the zero rate. Therefore, the reported VAT rate must be exactly zero.

Affected fields BG-21 BT-102 BT-103
Please set the VAT rate of the zero-rated charge to zero

The charge is assigned to the zero-rated tax category (Z), but its VAT rate is not zero or is missing. Set the VAT rate for this charge to zero.

What to do
  1. Check the charge’s tax category Z.
  2. Check the call to AddTradeCharge(...) and set taxPercent to zero for this charge.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:CategoryTradeTax>
  <ram:CategoryCode>Z</ram:CategoryCode>
  <ram:RateApplicablePercent>5</ram:RateApplicablePercent>
</ram:CategoryTradeTax>
✓ Correct
<ram:CategoryTradeTax>
  <ram:CategoryCode>Z</ram:CategoryCode>
  <ram:RateApplicablePercent>0</ram:RateApplicablePercent>
</ram:CategoryTradeTax>
Check in FactoorSharp
  • TaxCategoryCodes (BT-102)
  • FacturXInvoice.AddTradeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode) (BG-21)
  • FacturXInvoice.GetTradeCharges() (BG-21)
  • AbstractTradeAllowanceCharge (Document level charge: BG-21)
  • AbstractTradeAllowanceCharge.ChargeIndicator (Document level charge: BG-21)
Technical details

The XPath test compares ram:RateApplicablePercent numerically with zero and requires equality.

Where the rule applies

The rule applies to ram:RateApplicablePercent of a document level charge with tax category Z.

Context (rule/@context)
//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='true']/ ram:CategoryTradeTax[ram:CategoryCode = 'Z']
Test expression (assert/@test)
ram:RateApplicablePercent = 0