Provide a reason for exports outside the EU

Error BR-G-10 EN 16931

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).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

For category G, both ram:ExemptionReason and ram:ExemptionReasonCode are missing. The VAT breakdown must include a reason for the export outside the EU.

What the rule means

G denotes exports outside the EU. The reason documents why this category is used in the VAT breakdown.

Affected fields BG-23 BT-118 BT-121 BT-120
Please add the reason for exports outside the EU

The VAT breakdown for tax category G has no export reason. Add a reason text or reason code for exports outside the EU.

What to do
  1. For the G tax group, add either ram:ExemptionReason or ram:ExemptionReasonCode.
  2. Specify exports outside the EU as the reason.
  3. Check the values passed to FacturXInvoice.AddApplicableTradeTax(...).
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>G</ram:CategoryCode>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>G</ram:CategoryCode>
  <ram:ExemptionReason>Export outside the EU</ram:ExemptionReason>
</ram:ApplicableTradeTax>
Check in FactoorSharp
  • 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)
Good to know

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.

Where the rule applies

The rule applies to a document-level VAT breakdown ram:ApplicableTradeTax whose ram:CategoryCode has the value G.

Context (rule/@context)
//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ ram:CategoryCode[. = 'G']
Test expression (assert/@test)
(../ram:ExemptionReason) or (../ram:ExemptionReasonCode)