- In a VAT breakdown (BG-23) where VAT category code (BT-118) is equal to “AE” ("Reverse charge"), 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 "Reverse charge" (AE), but only for lines where the "Subtype of invoice item" (BT-X-8) has the value ""DETAIL" or is not specified.
ram:BasisAmount does not reconcile within the allowed rounding tolerance with the calculation from the relevant invoice line net amounts, allowances, charges, and logistics service fees. The test includes lines without ram:LineStatusReasonCode or with DETAIL and matches amounts to category AE and the applicable rate.
The taxable basis in the VAT breakdown must reconcile mathematically with the related net amounts for reverse charge. Only matching lines and document-level amounts are included in this reconciliation.
The taxable basis in the AE VAT breakdown does not sufficiently match the related invoice line and document-level amounts. You can review the included amounts and their tax category.
- Check
ram:BasisAmountin the relevantram:ApplicableTradeTax. - Compare it with the matching
ram:LineTotalAmount, allowance and charge amounts inram:ActualAmount, and logistics service fees inram:AppliedAmount. - Check the tax category and rate of the included amounts, as well as the status of the invoice lines.
- Review
AssociatedDocument.LineStatusReasonCode,TradeLineItem.LineTotalAmount,AbstractTradeAllowanceCharge.ActualAmount, andTaxCategoryCodes. - 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 XPath test compares ram:BasisAmount with the rounded sum of included amounts and allows a difference of up to 0.01 multiplied by the number of entries. For charges, the sum expressions include selections using both category S and category AE.
The rule applies to the document-level ram:ApplicableTradeTax VAT breakdown with ram:CategoryCode AE and ram:TypeCode VAT. It includes invoice lines without ram:LineStatusReasonCode or with DETAIL, as well as allowances, charges, and logistics service fees.
rule/@context)assert/@test)