Set the rate for a standard-rated allowance above zero

Error BR-S-06 EN 16931

In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Standard rated" the Document level allowance VAT rate (BT-96) 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 allowance is assigned to VAT category S for standard rating, but the value of ram:RateApplicablePercent is not greater than zero. This category requires a positive VAT rate.

What the rule means

An allowance in category S is standard-rated. A positive VAT rate is required so the allowance is stated with a rate for this category.

Affected fields BG-20 BT-95 BT-96
Please enter a positive VAT rate for the standard-rated allowance

The allowance is marked as standard-rated, but its VAT rate is zero or negative. You can enter a positive value in the allowance’s tax details.

What to do
  1. Open the document-level allowance details.
  2. Check the value of ram:RateApplicablePercent.
  3. Set a value greater than zero for the allowance, for example using AddTradeAllowance(...).
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>S</ram:CategoryCode>
    <ram:RateApplicablePercent>0</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>S</ram:CategoryCode>
    <ram:RateApplicablePercent>19</ram:RateApplicablePercent>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • TaxCategoryCodes (BT-95)
  • FacturXInvoice.AddTradeAllowance(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode) (BG-20)
  • FacturXInvoice.GetTradeAllowances() (BG-20)
  • FacturXInvoice.TradeAllowanceCharges (BG-20)
  • AbstractTradeAllowanceCharge (Document level allowance: BG-20)
Technical details

The test requires ram:RateApplicablePercent in the matching ram:CategoryTradeTax context to be greater than 0. The context limits the check to allowances with ram:ChargeIndicator equal to false and category code S.

Where the rule applies

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

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