A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Standard rate" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120).
A VAT breakdown with CategoryCode S contains either ExemptionReason or ExemptionReasonCode. Neither of these fields may be present with this code.
The code S identifies the standard-rate VAT category. An exemption reason or exemption reason code does not belong with this category designation.
The VAT breakdown uses code S 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 codeS. - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>S</ram:CategoryCode> <ram:ExemptionReason>Motif</ram:ExemptionReason> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>S</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 S, 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 S.
rule/@context)assert/@test)