The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Not subject to VAT" shall be 0 (zero).
In the VAT breakdown with category code O, ram:CalculatedAmount is not zero. The tax amount for this category must be zero.
Code O represents transactions not subject to VAT. The rule requires a zero tax amount for this category in the VAT breakdown.
A non-zero tax amount is recorded in the VAT breakdown with category code O. You can resolve this by adjusting that amount.
- Find the VAT breakdown with
ram:CategoryCodeO. - Check the amount in
ram:CalculatedAmount. - Set the amount to zero in
FacturXInvoice.AddApplicableTradeTax(...). - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>O</ram:CategoryCode> <ram:CalculatedAmount>5.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>O</ram:CategoryCode> <ram:CalculatedAmount>0</ram:CalculatedAmount> </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
The test runs in the context of a ram:CategoryCode with value O and compares the value of the sibling ram:CalculatedAmount numerically with zero.
The rule applies to the tax amount ram:CalculatedAmount in a document-level VAT breakdown ram:ApplicableTradeTax when its ram:CategoryCode has the value O.
rule/@context)assert/@test)