Absolute Value of (Sum of allowances on document level (BT-107) - Σ Document level allowance amounts (BT-92))<= 0,01 * Number of Document level allowance amounts (BT-92).
If document-level allowances are present, ram:AllowanceTotalAmount differs from the sum of their ram:ActualAmount values by more than the permitted tolerance. The tolerance is 0.01 for each allowance.
The document-level allowance total must reflect the individual allowance amounts. A limited rounding difference is allowed.
The document-level allowance total does not agree sufficiently with the individual allowance amounts. You can compare and reconcile the relevant amounts.
- Compare
FacturXInvoice.AllowanceTotalAmountwith the sum ofAbstractTradeAllowanceCharge.ActualAmountvalues for document-level allowances. - Check that the relevant allowances are included in the total.
- Generate the invoice again and validate it once more.
FacturXInvoice.AllowanceTotalAmount(BT-107)AbstractTradeAllowanceCharge.ActualAmount(Document level allowance: BT-92)
Technical details
The ram:ActualAmount values of entries whose udt:Indicator is false are summed and rounded to two decimal places. When allowances are present, the absolute difference is evaluated using 0.01 per entry; the test also permits the case where there are no allowances and no ram:AllowanceTotalAmount.
The rule applies to ram:SpecifiedTradeSettlementHeaderMonetarySummation and compares ram:AllowanceTotalAmount with the document-level allowance amounts in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)