- 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), 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.
ram:BasisAmount does not reconcile within the allowed rounding tolerance with the sum of amounts belonging to category AE, the rate, and the same exemption details. The test includes invoice lines without ram:LineStatusReasonCode or with the value DETAIL, as well as matching allowances, charges, and logistics service fees.
The taxable basis for reverse charge must be composed of amounts with matching exemption text and code. This prevents amounts with different exemption details from being combined in the same calculation.
The taxable basis in the AE VAT breakdown does not match the amounts with the same exemption details. You can reconcile the exemption text and code with the related amounts.
- Check
ram:BasisAmount,ram:ExemptionReason, andram:ExemptionReasonCodein the relevantram:ApplicableTradeTax. - Compare the exemption details with the related invoice lines, allowances, charges, and logistics service fees.
- Check the amounts in
ram:LineTotalAmount,ram:ActualAmount, andram:AppliedAmount, as well as categoryAEand the rate. - 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 groups invoice lines, allowances, charges, and logistics service fees by rate and normalized exemption text and code. The difference between ram:BasisAmount and the rounded calculation must not exceed 0.01 multiplied by the number of included entries.
The rule applies to the document-level ram:ApplicableTradeTax VAT breakdown with ram:CategoryCode AE and ram:TypeCode VAT. It covers matching invoice lines, allowances, charges, and logistics service fees with the same exemption text and code.
rule/@context)assert/@test)