Each VAT breakdown (BG-23) shall be defined through a VAT category code (BT-118).
A VAT breakdown is missing ram:CategoryCode. As a result, the VAT category (BT-118) is not specified.
The category code assigns the VAT breakdown to a VAT category and is needed to identify its tax classification.
No VAT category has been specified for a VAT breakdown. Add the missing category code to the invoice tax data.
- Add the category code in
ram:CategoryCode. - Check the value against the available
TaxCategoryCodes. - Check the call to
AddApplicableTradeTax(...). - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax/>
<ram:ApplicableTradeTax> <ram:CategoryCode>S</ram:CategoryCode> </ram:ApplicableTradeTax>
TaxCategoryCodes(BT-118)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:CategoryCode exists within each ram:ApplicableTradeTax.
The rule applies to each ram:ApplicableTradeTax within the invoice header settlement data.
rule/@context)assert/@test)