[BR-FXEXT-AG-08ini] - In a VAT breakdown (BG-23) where VAT category code (BT-118) is equal to “M” ("Ceuta and Mellita tax"), 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 "Ceuta and Mellita tax" (M), 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 differs from the sum of the related invoice-line amounts, allowances, charges, and logistics amounts by more than permitted. The reconciliation uses category M and the rate; for invoice lines, only entries with DETAIL or no ram:LineStatusReasonCode are counted.
The taxable amount for category M must correspond to the invoice amounts associated with that category and rate. The rule allows a rounding difference of 0.01 per included amount.
The taxable amount in the M VAT breakdown differs from the related amounts for the same category and rate. You can trace the reconciliation through the invoice lines and document-level amounts.
- Compare
ram:BasisAmountwith the invoice-line amounts, allowances, charges, and logistics amounts for categoryMand the same rate. - Check
TaxCategoryCodes,TradeLineItem.LineTotalAmount, andAbstractTradeAllowanceCharge.ActualAmount. - Check that
AssociatedDocument.LineStatusReasonCodeorLineStatusReasonCodesisDETAILor absent. - Generate the invoice again 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
Compares ram:BasisAmount with the sum of amounts for category M and the same rate. Exemption reasons are not used to filter the summed amounts in this test; the tolerance is 0.01 per included amount.
The rule applies to the category M VAT breakdown ram:ApplicableTradeTax in ram:ApplicableHeaderTradeSettlement.
rule/@context)assert/@test)