Each VAT breakdown (BG-23) shall have a VAT category rate (BT-119), except if the Invoice is not subject to VAT.
A VAT breakdown is missing ram:RateApplicablePercent even though its VAT category is not O. A VAT rate is not required for category O.
The VAT category rate (BT-119) states the percentage applicable to the VAT category. The rule permits the rate to be absent only for category O.
The VAT rate is missing for the specified VAT category. This field may be omitted for category O.
- Add the percentage in
ram:RateApplicablePercentif the category is notO. - Check the category code in
ram:CategoryCode. - Check the call to
AddApplicableTradeTax(...). - Generate the invoice again and validate it once more.
<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)
Technical details
The test passes if ram:RateApplicablePercent exists or ram:CategoryCode has the value O.
The rule applies to each ram:ApplicableTradeTax within the invoice header settlement data.
rule/@context)assert/@test)