Provide an exemption reason for O

Error BR-O-10 EN 16931

A VAT Breakdown (BG-23) with VAT Category code (BT-118) " Not subject to VAT" shall have a VAT exemption reason code (BT-121), meaning " Not subject to VAT" or a VAT exemption reason text (BT-120) " Not subject to VAT" (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

The VAT breakdown with ram:CategoryCode O has neither ram:ExemptionReason nor ram:ExemptionReasonCode. At least one must state the exemption reason “Not subject to VAT”; the corresponding standard text in another language is also allowed for the text field.

What the rule means

Code O identifies transactions not subject to VAT. The invoice must state this reason either as an exemption reason code or as exemption reason text.

Affected fields BG-23 BT-118 BT-121 BT-120
Please provide the reason for `O`

The VAT breakdown with category code O is missing an exemption reason. You can provide it as a code or as text.

What to do
  1. Find the VAT breakdown with ram:CategoryCode O.
  2. Add either ram:ExemptionReasonCode with the code for “Not subject to VAT” or ram:ExemptionReason with that text or its equivalent standard text in another language.
  3. Check the values in FacturXInvoice.AddApplicableTradeTax(...).
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>O</ram:CategoryCode>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>O</ram:CategoryCode>
  <ram:ExemptionReason>Not subject to VAT</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)
Technical details

The test accepts the presence of either ram:ExemptionReason or ram:ExemptionReasonCode; both elements do not have to be present at the same time.

Where the rule applies

The rule applies to a document-level VAT breakdown ram:ApplicableTradeTax with ram:CategoryCode O.

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