An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain other VAT breakdown groups (BG-23).
The invoice contains a VAT breakdown with ram:CategoryCode O and at least one other ram:ApplicableTradeTax VAT breakdown with a different ram:CategoryCode.
Category O means “not subject to VAT”. Under this rule, an invoice using this category must not contain a VAT breakdown with another category.
The invoice contains a VAT breakdown with ram:CategoryCode O as well as a breakdown with another category. You can resolve this by making the VAT breakdowns consistent with this rule.
- Review the entries you add with
AddApplicableTradeTax(...). - Make sure no other VAT breakdown has a
ram:CategoryCodeother thanO. - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax> <ram:CategoryCode>O</ram:CategoryCode> </ram:ApplicableTradeTax> <ram:ApplicableTradeTax> <ram:CategoryCode>S</ram:CategoryCode> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>O</ram:CategoryCode> </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)TaxCategoryCodes(BT-118)
Technical details
The test checks across the invoice whether any ram:ApplicableTradeTax has a ram:CategoryCode other than O, and requires that none do.
The rule applies to an invoice-level ram:ApplicableTradeTax VAT breakdown with ram:CategoryCode O.
rule/@context)assert/@test)