In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IGIC" the Document level charge VAT rate (BT-103) shall be 0 (zero) or greater than zero.
The charge has VAT category L, but ram:RateApplicablePercent is not greater than 0. In particular, a rate of exactly zero does not pass the XPath test.
Category L denotes IGIC. The checked XPath requires a VAT rate greater than zero for the charge.
The charge is marked as IGIC, but its VAT rate is not greater than zero. The checked test does not accept a rate of zero.
- Check the charge in
ram:SpecifiedTradeAllowanceCharge. - Set
ram:RateApplicablePercentto a value greater than0. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>L</ram:CategoryCode> <ram:RateApplicablePercent>0</ram:RateApplicablePercent> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>L</ram:CategoryCode> <ram:RateApplicablePercent>1</ram:RateApplicablePercent> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
TaxCategoryCodes(BT-102)FacturXInvoice.AddTradeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-21)FacturXInvoice.GetTradeCharges()(BG-21)AbstractTradeAllowanceCharge(Document level charge: BG-21)AbstractTradeAllowanceCharge.ChargeIndicator(Document level charge: BG-21)
Technical details
The test is ram:RateApplicablePercent > 0. It therefore excludes zero, although the message text says zero or a greater value.
The rule applies to the VAT rate ram:RateApplicablePercent of a document level charge in ram:SpecifiedTradeAllowanceCharge when the VAT category ram:CategoryTradeTax/ram:CategoryCode is L.
rule/@context)assert/@test)