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).
A VAT breakdown with CategoryCode Z contains either ExemptionReason or ExemptionReasonCode. Neither of these fields may be present with this code.
The code Z identifies a zero-rated VAT category. An exemption reason or exemption reason code does not belong with this category designation.
The VAT breakdown uses code Z but also contains an exemption reason or exemption reason code. You can resolve this by removing those fields.
- Review the tax details in
AddApplicableTradeTax(...). - Remove
ExemptionReasonandExemptionReasonCodefrom the VAT breakdown with codeZ. - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>Z</ram:CategoryCode> <ram:ExemptionReason>Motif</ram:ExemptionReason> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>Z</ram:CategoryCode> </ram:ApplicableTradeTax>
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.
The rule applies to the CategoryCode of a document-level VAT breakdown ApplicableTradeTax when the code is Z.
rule/@context)assert/@test)