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 charge is marked as standard rated (S), but ram:RateApplicablePercent is not greater than zero. The VAT rate is missing, zero, or negative.
Category S identifies standard-rated taxation. A positive VAT rate is required for the tax category and rate to be consistent.
The charge is assigned to the standard rate (S), but its VAT rate is not greater than zero. A positive value for ram:RateApplicablePercent resolves this inconsistency.
- Check the charge’s tax category
S. - Check the call to
AddTradeCharge(...)and settaxPercentto a value greater than zero. - Generate the invoice again and validate it.
<ram:CategoryTradeTax> <ram:CategoryCode>S</ram:CategoryCode> <ram:RateApplicablePercent>0</ram:RateApplicablePercent> </ram:CategoryTradeTax>
<ram:CategoryTradeTax> <ram:CategoryCode>S</ram:CategoryCode> <ram:RateApplicablePercent>19</ram:RateApplicablePercent> </ram:CategoryTradeTax>
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 XPath test compares ram:RateApplicablePercent numerically with zero and requires a value greater than zero.
The rule applies to ram:RateApplicablePercent of a document level charge with tax category S.
rule/@context)assert/@test)