Each VAT breakdown (BG-23) shall have a VAT category tax amount (BT-117).
The VAT breakdown is missing ram:CalculatedAmount (BT-117), the tax amount.
The tax amount (BT-117) states the amount of tax for the relevant VAT breakdown entry.
A VAT breakdown is missing its tax amount. Add the value so that the tax amount for this entry is provided.
- Find the relevant
ram:ApplicableTradeTax. - Add
ram:CalculatedAmountwith the tax amount. - Check the call to
AddApplicableTradeTax(...). - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax/>
<ram:ApplicableTradeTax> <ram:CalculatedAmount>20.00</ram:CalculatedAmount> </ram:ApplicableTradeTax>
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.
The rule applies to each ram:ApplicableTradeTax within the document-level settlement.
rule/@context)assert/@test)