A VAT Breakdown (BG-23) with the VAT Category code (BT-118) "Export outside the EU" shall have a VAT exemption reason code (BT-121), meaning "Export outside the EU" or the VAT exemption reason text (BT-120) "Export outside the EU" (or the equivalent standard text in another language).
For category G, both ram:ExemptionReason and ram:ExemptionReasonCode are missing. The VAT breakdown must include a reason for the export outside the EU.
G denotes exports outside the EU. The reason documents why this category is used in the VAT breakdown.
The VAT breakdown for tax category G has no export reason. Add a reason text or reason code for exports outside the EU.
- For the
Gtax group, add eitherram:ExemptionReasonorram:ExemptionReasonCode. - Specify exports outside the EU as the reason.
- Check the values passed to
FacturXInvoice.AddApplicableTradeTax(...). - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax> <ram:CategoryCode>G</ram:CategoryCode> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>G</ram:CategoryCode> <ram:ExemptionReason>Export outside the EU</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 G.
rule/@context)assert/@test)