A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Reverse charge" shall have a VAT exemption reason code (BT-121), meaning "Reverse charge" or the VAT exemption reason text (BT-120) "Reverse charge" (or the equivalent standard text in another language).
For category AE, both ram:ExemptionReason and ram:ExemptionReasonCode are missing. The VAT breakdown must include a reason for reverse charge.
AE denotes reverse charge. The reason identifies the tax treatment as being based on the reverse-charge mechanism.
The VAT breakdown for tax category AE has no reason. Add a reason text or reason code for reverse charge.
- For the
AEtax group, add eitherram:ExemptionReasonorram:ExemptionReasonCode. - Specify reverse charge as the reason.
- Check the values passed to
FacturXInvoice.AddApplicableTradeTax(...). - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax> <ram:CategoryCode>AE</ram:CategoryCode> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>AE</ram:CategoryCode> <ram:ExemptionReason>Reverse charge</ram:ExemptionReason> </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)
You can provide the reason either as text in ram:ExemptionReason or as a code in ram:ExemptionReasonCode.
Technical details
The XPath test requires either ram:ExemptionReason or ram:ExemptionReasonCode to be present as a child of ram:ApplicableTradeTax. It does not check the contents of these elements.
The rule applies to a document-level VAT breakdown ram:ApplicableTradeTax whose ram:CategoryCode has the value AE.
rule/@context)assert/@test)