Each VAT breakdown (BG-23) shall have a VAT category taxable amount (BT-116).
At least one ram:ApplicableTradeTax does not contain ram:BasisAmount. This element represents the taxable amount (BT-116) for the corresponding VAT breakdown (BG-23).
Each VAT breakdown needs a taxable amount so that its taxable basis is stated.
At least one VAT breakdown is missing ram:BasisAmount. Include this element in each ram:ApplicableTradeTax so the taxable amount is present.
- Find each
ram:ApplicableTradeTaxin the VAT breakdown. - Make sure each of these elements contains
ram:BasisAmount. - Regenerate the invoice and validate it again.
<ram:ApplicableTradeTax/>
<ram:ApplicableTradeTax> <ram:BasisAmount>0</ram:BasisAmount> </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, the test checks whether a ram:BasisAmount child element exists. It checks for presence, not the numeric value.
For each document-level ram:ApplicableTradeTax, which represents a VAT breakdown.
rule/@context)assert/@test)