Each VAT breakdown (BG-23) shall have a VAT category tax amount (BT-117).
A VAT breakdown is missing ram:CalculatedAmount. This element contains the VAT amount for that breakdown (BT-117).
Each VAT breakdown must state its VAT amount so that the tax amount for the respective category is explicitly provided.
A VAT amount has not been provided for a VAT breakdown. You can add the missing amount to the invoice tax data.
- Add the amount in
ram:CalculatedAmount. - Check the call to
AddApplicableTradeTax(...)and the entry inTaxes. - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax/>
<ram:ApplicableTradeTax> <ram:CalculatedAmount>19.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
The test checks whether ram:CalculatedAmount exists within each ram:ApplicableTradeTax.
The rule applies to each ram:ApplicableTradeTax within the invoice header settlement data.
rule/@context)assert/@test)