In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IPSI" the Document level charge VAT rate (BT-103) shall be 0 (zero) or greater than zero.
The charge has VAT category M, but ram:RateApplicablePercent is less than 0. A rate of zero is allowed; a negative rate fails the test.
Category M denotes IPSI. The checked XPath permits a VAT rate of zero or greater for the charge, but excludes negative values.
The charge is marked as IPSI, but its VAT rate is negative. A rate of zero or a positive rate passes this check.
- Check the charge in
ram:SpecifiedTradeAllowanceCharge. - Set
ram:RateApplicablePercentto0or a higher value. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>M</ram:CategoryCode> <ram:RateApplicablePercent>-1</ram:RateApplicablePercent> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>M</ram:CategoryCode> <ram:RateApplicablePercent>0</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. Zero is included; values below zero are excluded.
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 M.
rule/@context)assert/@test)