VAT amount for each VAT breakdown

Error BR-46 EN 16931

Each VAT breakdown (BG-23) shall have a VAT category tax amount (BT-117).

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:CalculatedAmount. This element contains the VAT amount for that breakdown (BT-117).

What the rule means

Each VAT breakdown must state its VAT amount so that the tax amount for the respective category is explicitly provided.

Affected fields BG-23 BT-117
Please add the VAT amount for the breakdown

A VAT amount has not been provided for a VAT breakdown. You can add the missing amount to the invoice tax data.

What to do
  1. Add the amount in ram:CalculatedAmount.
  2. Check the call to AddApplicableTradeTax(...) and the entry in Taxes.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax/>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CalculatedAmount>19.00</ram:CalculatedAmount>
</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 checks whether ram:CalculatedAmount exists within each ram:ApplicableTradeTax.

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:CalculatedAmount)