- In a VAT breakdown (BG-23) where VAT category code (BT-118) is equal to “O” ("Not subject to VAT"), Absolute Value of (VAT category taxable amount (BT-116) - ∑ Invoice line net amounts (BT-131) + Σ Document level allowance amounts (BT-92) - Σ Document level charge amounts (BT-99) - Σ Logistics Service fee amounts (BT-x-272)) <= 0,01 * ((Number of line net amounts (BT-131) + Number of Document level allowance amounts (BT-92) + Number of Document level charge 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 "Not subject to VAT" (O) and where applicable the VAT exemption reason and specification code (BT-195, BT-174 and BT-176 and BT-X-592) and the Exemption reason text (BT-194, BT-173 and BT-175 and BT-X-591) are identical with the VAT category VAT exemption reason and specification code (BT-121) and VAT exemption reason text (BT-120), but only for lines where the "Subtype of invoice item" (BT-X-8) has the value "DETAIL" or is not specified.
The amount in ram:BasisAmount does not match, within the permitted rounding tolerance, the amounts of invoice components whose category is O and whose exemption code and text match the breakdown’s ram:ExemptionReasonCode and ram:ExemptionReason. Only invoice lines with no ram:LineStatusReasonCode or with DETAIL are included.
The taxable amount for transactions not subject to VAT must aggregate only amounts with the same exemption code and text. This keeps distinct tax reasons traceable separately.
The taxable amount for category O does not reconcile with the related amounts that have the same exemption reason. Check both the amounts and the exemption code and text.
- Compare the breakdown’s
ram:ExemptionReasonCodeandram:ExemptionReasonwith the details of the invoice components. - Check category
OinTaxCategoryCodesand the amounts inTradeLineItem.LineTotalAmountandAbstractTradeAllowanceCharge.ActualAmount. - 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)
Technical details
The test sums ram:LineTotalAmount, ram:ActualAmount and ram:AppliedAmount for category O and compares the normalized values of ram:ExemptionReasonCode and ram:ExemptionReason with the breakdown. The rounding tolerance scales with the number of included elements.
Applies to the category O VAT breakdown in ram:ApplicableTradeTax under ram:ApplicableHeaderTradeSettlement and the matching tax details of its invoice components.
rule/@context)assert/@test)