- For each different value of VAT rate (BT-119) where the VAT category code (BT-118) is equal to “S” ("Standard rated"), Absolute Value of (VAT category tax amount (BT-117) - VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119)/100) <= 0,01 * ((Number of line net amounts (BT-131) + Number of Document level allowance amounts (BT-92) + Number of Document level allowance amounts (BT-99) + Number of Logistics Service fee amounts (BT-X-272)), where the VAT category code (BT-151, BT-95, BT-102, BT-X-273) is " Standard rated " (S), and the VAT rate (BT-152, BT-96, BT-103, BT-X-274) equals the VAT category rate (BT-119), and only for lines where the "Subtype of invoice line item" (EXT-FR-FE-163 / BT-X-8) has the value "DETAIL" or is not specified or the same rule but also taking into account the exemption reasons in Text (BT-120) and Code (BT-121) in BG-23 and the exemption reasons on each line (BT-X-96 / BT-X-97), on Document level Allowances (BT-173 / BT-174) and on Document Level Charges (BT-175 / BT-176) and on Service logistic charges (BT-X-591 / BT-X-592). One of the two rules must be followed, bearing in mind that ultimately only the second one will have to be followed.
The VAT amount in ram:CalculatedAmount differs beyond the permitted tolerance from the tax calculated using ram:BasisAmount and ram:RateApplicablePercent. The comparison is made for each rate; the test accepts calculation with or without matching exemption reasons on the individual amounts.
For the standard-rated category, the VAT amount is calculated from the taxable amount and the applicable rate. The reported VAT must agree with that calculation.
The reported VAT amount does not match the rate and taxable amount for category S. You can reconcile the amount using these details.
- Check
ram:CalculatedAmount,ram:BasisAmountandram:RateApplicablePercentin the breakdown. - Check category
SinTaxCategoryCodesand reconcile the underlying amounts. - Regenerate the invoice and validate it again.
TaxCategoryCodes(BT-151; BT-95; BT-102; BT-118)AbstractTradeAllowanceCharge.ActualAmount(Document level allowance: BT-92; Document level charge: BT-99)AssociatedDocument.LineStatusReasonCode(BT-X-8)LineStatusReasonCodes(BT-X-8)TradeLineItem.LineTotalAmount(BT-131)
The test accepts either a comparison requiring matching exemption reasons or a comparison without that restriction.
Technical details
The test compares ram:CalculatedAmount with ram:BasisAmount × ram:RateApplicablePercent ÷ 100, rounded to two decimal places. The permitted difference depends on the number of included invoice lines, allowances, charges and logistics service fees; the condition provides two alternative counting scopes.
Applies to each category S VAT breakdown in ram:ApplicableTradeTax under ram:ApplicableHeaderTradeSettlement.
rule/@context)assert/@test)