VAT category rate

Error BR-48 EN 16931

Each VAT breakdown (BG-23) shall have a VAT category rate (BT-119), except if the Invoice is not subject to VAT.

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

A VAT breakdown is missing ram:RateApplicablePercent even though its VAT category is not O. A VAT rate is not required for category O.

What the rule means

The VAT category rate (BT-119) states the percentage applicable to the VAT category. The rule permits the rate to be absent only for category O.

Affected fields BG-23 BT-119
Please add the VAT rate for the category

The VAT rate is missing for the specified VAT category. This field may be omitted for category O.

What to do
  1. Add the percentage in ram:RateApplicablePercent if the category is not O.
  2. Check the category code in ram:CategoryCode.
  3. Check the call to AddApplicableTradeTax(...).
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>S</ram:CategoryCode>
</ram:ApplicableTradeTax>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>O</ram:CategoryCode>
</ram:ApplicableTradeTax>
Check in FactoorSharp
  • 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 passes if ram:RateApplicablePercent exists or ram:CategoryCode has the value O.

Where the rule applies

The rule applies to each ram:ApplicableTradeTax within the invoice header settlement data.

Context (rule/@context)
//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax
Test expression (assert/@test)
(ram:RateApplicablePercent) or (ram:CategoryCode = 'O')