Each VAT breakdown (BG-23) shall be defined through a VAT category code (BT-118).
The VAT breakdown is missing ram:CategoryCode (BT-118), which specifies the VAT category.
The VAT category code (BT-118) assigns the VAT breakdown entry to a VAT category.
A VAT breakdown is missing its VAT category. Add the category code so that the VAT category for this entry is stated.
- Find the relevant
ram:ApplicableTradeTax. - Add the appropriate VAT category in
ram:CategoryCode. - Check the available values in
TaxCategoryCodesand the call toAddApplicableTradeTax(...). - 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
For each ram:ApplicableTradeTax in the specified context, the test checks whether a ram:CategoryCode element is present.
The rule applies to each ram:ApplicableTradeTax within the document-level settlement.
rule/@context)assert/@test)