The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Reverse charge" shall be 0 (zero).
For category AE, the tax amount specified in ram:CalculatedAmount is not zero. The amount must be zero for this VAT breakdown.
AE denotes reverse charge. This rule requires the tax amount in the VAT breakdown for this category to be zero.
The tax group with category AE contains a non-zero tax amount. Adjust the amount in the VAT breakdown.
- Check the tax group with
ram:CategoryCodeAE. - Set
ram:CalculatedAmountto zero. - Check the values passed to
FacturXInvoice.AddApplicableTradeTax(...). - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax> <ram:CategoryCode>AE</ram:CategoryCode> <ram:CalculatedAmount>5.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>AE</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 applies to ram:ApplicableTradeTax with ram:CategoryCode equal to AE and requires the sibling ram:CalculatedAmount to have the numeric value 0.
The rule applies to a document-level VAT breakdown ram:ApplicableTradeTax whose ram:CategoryCode has the value AE.
rule/@context)assert/@test)