In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Standard rated" the Document level charge VAT rate (BT-103) shall be greater than zero.
The VAT rate of the standard-rated document-level charge is zero or negative. ram:RateApplicablePercent must be greater than zero.
VAT category S marks a standard-rated charge, which requires a positive VAT rate.
The VAT rate for the document-level charge with VAT category S is zero or below. Set a value greater than zero.
- Check the value of
ram:RateApplicablePercentfor the relevant charge. - Check the VAT rate in
AddTradeCharge(...). - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>S</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>S</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.AddTradeeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-21)FacturXInvoice.GetTradeCharges()(BG-21)AbstractTradeAllowanceCharge(Document level charge: BG-21)
Technical details
The XPath checks whether ram:RateApplicablePercent is numerically greater than zero.
The rule applies to ram:RateApplicablePercent of a document-level charge in ram:SpecifiedTradeAllowanceCharge with VAT category S.
rule/@context)assert/@test)