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 must match their sum. The permitted difference is at most 0.01 per allowance (BT-92); the rule is violated if the total is missing when allowances exist or differs by more than this tolerance.
BT-107 is the total amount of document-level allowances and must agree with the individual BT-92 amounts, subject to the defined rounding tolerance.
The stated total for document-level allowances does not sufficiently match the individual allowances, or the total is missing. You can reconcile the amounts against the recorded allowances.
- Compare
ram:AllowanceTotalAmountwith theram:ActualAmountvalues of the allowances inram:SpecifiedTradeAllowanceCharge. - Check the total through
AllowanceTotalAmountand the individual amounts throughActualAmount. - Allow for the permitted tolerance of 0.01 per allowance.
- Generate the invoice again and validate it.
FacturXInvoice.AllowanceTotalAmount(BT-107)AbstractTradeAllowanceCharge.ActualAmount(Document level allowance: BT-92)
Technical details
The test compares ram:AllowanceTotalAmount with the rounded sum of ram:ActualAmount values in ram:SpecifiedTradeAllowanceCharge where ram:ChargeIndicator/udt:Indicator is false. The permitted absolute difference is 0.01 multiplied by the number of allowances; the test also passes when neither allowances nor a total amount is present.
Applies to the allowance total in ram:SpecifiedTradeSettlementHeaderMonetarySummation and the individual document-level allowances in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)