Provide at least one VAT breakdown

Error BR-CO-18 EN 16931

An Invoice shall at least have one VAT breakdown group (BG-23).

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

No ram:ApplicableTradeTax group is present in ram:ApplicableHeaderTradeSettlement. The invoice therefore has no VAT breakdown.

What the rule means

The document-level VAT breakdown contains the invoice’s tax-related amounts and information. At least one such group is required.

Affected fields BG-23
Please add a VAT breakdown to the invoice

The invoice is missing its document-level VAT breakdown. You can resolve this by adding at least one tax group.

What to do
  1. Add at least one tax group using FacturXInvoice.AddApplicableTradeTax(...).
  2. Check that the generated invoice contains a ram:ApplicableTradeTax element in ram:ApplicableHeaderTradeSettlement.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ApplicableHeaderTradeSettlement/>
✓ Correct
<ram:ApplicableHeaderTradeSettlement>
  <ram:ApplicableTradeTax/>
</ram:ApplicableHeaderTradeSettlement>
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 XPath test checks whether at least one ram:ApplicableTradeTax element exists in ram:ApplicableHeaderTradeSettlement.

Where the rule applies

The rule applies to document-level settlement in ram:ApplicableHeaderTradeSettlement within rsm:SupplyChainTradeTransaction.

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