VAT rate for a standard-rated charge must be greater than zero

Error BR-S-07 EN 16931

In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Standard rated" the Document level charge VAT rate (BT-103) shall be greater than 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 marked as standard rated (S), but ram:RateApplicablePercent is not greater than zero. The VAT rate is missing, zero, or negative.

What the rule means

Category S identifies standard-rated taxation. A positive VAT rate is required for the tax category and rate to be consistent.

Affected fields BG-21 BT-102 BT-103
Please provide a positive VAT rate for the standard-rated charge

The charge is assigned to the standard rate (S), but its VAT rate is not greater than zero. A positive value for ram:RateApplicablePercent resolves this inconsistency.

What to do
  1. Check the charge’s tax category S.
  2. Check the call to AddTradeCharge(...) and set taxPercent to a value greater than zero.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:CategoryTradeTax>
  <ram:CategoryCode>S</ram:CategoryCode>
  <ram:RateApplicablePercent>0</ram:RateApplicablePercent>
</ram:CategoryTradeTax>
✓ Correct
<ram:CategoryTradeTax>
  <ram:CategoryCode>S</ram:CategoryCode>
  <ram:RateApplicablePercent>19</ram:RateApplicablePercent>
</ram:CategoryTradeTax>
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 XPath test compares ram:RateApplicablePercent numerically with zero and requires a value greater than zero.

Where the rule applies

The rule applies to ram:RateApplicablePercent of a document level charge with tax category S.

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