Provide the tax amount in the 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

The VAT breakdown is missing ram:CalculatedAmount (BT-117), the tax amount.

What the rule means

The tax amount (BT-117) states the amount of tax for the relevant VAT breakdown entry.

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

A VAT breakdown is missing its tax amount. Add the value so that the tax amount for this entry is provided.

What to do
  1. Find the relevant ram:ApplicableTradeTax.
  2. Add ram:CalculatedAmount with the tax amount.
  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/>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CalculatedAmount>20.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

For each ram:ApplicableTradeTax in the specified context, the test checks whether a ram:CalculatedAmount element is present.

Where the rule applies

The rule applies to each ram:ApplicableTradeTax within the document-level settlement.

Context (rule/@context)
//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax
Test expression (assert/@test)
(ram:CalculatedAmount)