Set the rate for a VAT-exempt charge to zero

Error BR-E-07 EN 16931

In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Exempt from VAT", the Document level charge VAT rate (BT-103) shall be 0 (zero).

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

The charge is assigned to VAT category E for supplies exempt from VAT, but ram:RateApplicablePercent is not zero. For this category, the VAT rate must be exactly 0.

What the rule means

Category E identifies a charge exempt from VAT. The VAT rate must therefore be zero so that the stated value matches the tax category.

Affected fields BG-21 BT-102 BT-103
Please set the VAT rate for the VAT-exempt charge to zero

The charge is marked as exempt from VAT, but its VAT rate is not zero. You can adjust the value in the charge’s tax details.

What to do
  1. Open the document-level charge details.
  2. Check the value of ram:RateApplicablePercent.
  3. Set the VAT rate to 0, for example using AddTradeCharge(...).
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>E</ram:CategoryCode>
    <ram:RateApplicablePercent>19</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>E</ram:CategoryCode>
    <ram:RateApplicablePercent>0</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • TaxCategoryCodes (BT-102)
  • FacturXInvoice.AddTradeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode) (BG-21)
  • FacturXInvoice.GetTradeCharges() (BG-21)
  • AbstractTradeAllowanceCharge (Document level charge: BG-21)
  • AbstractTradeAllowanceCharge.ChargeIndicator (Document level charge: BG-21)
Technical details

The test requires ram:RateApplicablePercent in the matching ram:CategoryTradeTax context to be exactly 0. The context limits the check to charges with ram:ChargeIndicator equal to true and category code E.

Where the rule applies

The rule applies to a document-level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value E.

Context (rule/@context)
//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='true']/ ram:CategoryTradeTax[ram:CategoryCode = 'E']
Test expression (assert/@test)
ram:RateApplicablePercent = 0