No exemption information for zero-rated VAT

Error BR-Z-10 EN 16931

A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Zero rated" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120).

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

A VAT breakdown with CategoryCode Z contains either ExemptionReason or ExemptionReasonCode. Neither of these fields may be present with this code.

What the rule means

The code Z identifies a zero-rated VAT category. An exemption reason or exemption reason code does not belong with this category designation.

Affected fields BG-23 BT-118 BT-121 BT-120
Please remove the exemption reason from VAT category `Z`

The VAT breakdown uses code Z but also contains an exemption reason or exemption reason code. You can resolve this by removing those fields.

What to do
  1. Review the tax details in AddApplicableTradeTax(...).
  2. Remove ExemptionReason and ExemptionReasonCode from the VAT breakdown with code Z.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>Z</ram:CategoryCode>
  <ram:ExemptionReason>Motif</ram:ExemptionReason>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>Z</ram:CategoryCode>
</ram:ApplicableTradeTax>
Check in FactoorSharp
  • TaxCategoryCodes (BT-118)
  • FacturXInvoice.AddApplicableTradeTax(basisAmount, percent, taxAmount, typeCode, categoryCode, allowanceChargeBasisAmount, exemptionReasonCode, exemptionReason, lineTotalBasisAmount) (BG-23)
  • FacturXInvoice.AnyApplicableTradeTaxes() (BG-23)
  • FacturXInvoice.GetApplicableTradeTaxes() (BG-23)
  • FacturXInvoice.Taxes (BG-23)
Technical details

For CategoryCode with the value Z, the test requires both ExemptionReason and ExemptionReasonCode to be absent.

Where the rule applies

The rule applies to the CategoryCode of a document-level VAT breakdown ApplicableTradeTax when the code is Z.

Context (rule/@context)
//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'Z']
Test expression (assert/@test)
not(../ram:ExemptionReason) and not (../ram:ExemptionReasonCode)