- In a VAT breakdown (BG-23) where VAT category code (BT-118) is equal to “G” ("Export outside the EU"), 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 "Export outside the EU" (G), 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 taxable amount ram:BasisAmount does not reconcile within the allowed rounding tolerance with the amounts whose tax code G, rate, and exemption reason match the VAT breakdown. The corresponding invoice lines, allowances, charges, and logistics service fees are included; invoice lines must have status DETAIL or no status.
Code G identifies exports outside the EU. The VAT breakdown must report the amount for the same rate and exemption reason as the corresponding invoice components.
The amount for exports outside the EU does not match the invoice components with the same rate and exemption reason. Comparing the amounts and exemption details can help identify the difference.
- Compare
ram:BasisAmountwith the invoice components that have the same tax code and rate as the VAT breakdown. - Check whether
ram:ExemptionReasonCodeandram:ExemptionReasonin the VAT breakdown match those on the invoice lines, allowances, charges, and logistics service fees. - Check
TaxCategoryCodes,LineStatusReasonCode,LineTotalAmount, andAbstractTradeAllowanceCharge.ActualAmountfor allowances and charges. - Generate the invoice again and validate it.
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 only amounts with matching tax code, rate, normalized exemption code, and exemption text. Amounts are rounded to two decimal places; the permitted difference is 0.01 multiplied by the number of included items.
The rule applies to ram:ApplicableTradeTax within ram:ApplicableHeaderTradeSettlement when ram:CategoryCode is G and ram:TypeCode is VAT.
rule/@context)assert/@test)