An Invoice shall at least have one VAT breakdown group (BG-23).
No ram:ApplicableTradeTax group is present in ram:ApplicableHeaderTradeSettlement. The invoice therefore has no VAT breakdown.
The document-level VAT breakdown contains the invoice’s tax-related amounts and information. At least one such group is required.
The invoice is missing its document-level VAT breakdown. You can resolve this by adding at least one tax group.
- Add at least one tax group using
FacturXInvoice.AddApplicableTradeTax(...). - Check that the generated invoice contains a
ram:ApplicableTradeTaxelement inram:ApplicableHeaderTradeSettlement. - Generate the invoice again and validate it once more.
<ram:ApplicableHeaderTradeSettlement/>
<ram:ApplicableHeaderTradeSettlement> <ram:ApplicableTradeTax/> </ram:ApplicableHeaderTradeSettlement>
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.
The rule applies to document-level settlement in ram:ApplicableHeaderTradeSettlement within rsm:SupplyChainTradeTransaction.
rule/@context)assert/@test)