Tax rate for zero-rated invoice lines

Error BR-Z-05 EN 16931

In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Zero rated" the Invoiced item VAT rate (BT-152) 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

For an invoice line with tax category Z, ram:RateApplicablePercent is not equal to zero. The tax rate therefore fails the ram:RateApplicablePercent = 0 check.

What the rule means

Z denotes the category with a zero tax rate. A different rate does not correspond to this tax category.

Affected fields BG-25 BT-151 BT-152
Please set the tax rate of the zero-rated invoice line to zero

An invoice line is marked with tax category Z, but its tax rate is not zero. Adjust the rate in the invoice line’s tax details.

What to do
  1. Check TradeLineItem.TaxCategoryCode to confirm whether the invoice line should use tax category Z.
  2. Set the rate in TradeLineItem.TaxPercent to zero.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>Z</ram:CategoryCode>
  <ram:RateApplicablePercent>20</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>Z</ram:CategoryCode>
  <ram:RateApplicablePercent>0</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
Check in FactoorSharp
  • TradeLineItem.TaxCategoryCode (BT-151)
  • TradeLineItem.TaxPercent (BT-152)
  • TradeLineItem.TaxType (BT-151-0)
  • TaxCategoryCodes (BT-151)
Technical details

For each ram:ApplicableTradeTax with ram:CategoryCode = 'Z' in context, ram:RateApplicablePercent must be numerically equal to zero.

Where the rule applies

The rule applies to the ram:ApplicableTradeTax tax details of an invoice line whose ram:CategoryCode is Z.

Context (rule/@context)
//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ ram:ApplicableTradeTax[ram:CategoryCode = 'Z']
Test expression (assert/@test)
ram:RateApplicablePercent = 0