Absolute Value of (Sum of charges on document level (BT-108) - Σ Document level charge amounts (BT-99) - Σ Logistics Service fee amounts (BT-x-272))<= 0,01 * (Number of Document level charge amounts (BT-99) + Number of Logistics Service fee amounts (BT-X-272)).
ram:ChargeTotalAmount must equal the sum of document-level charges (BT-99) and logistics service fees (BT-X-272). The permitted difference is at most 0.01 for each recorded charge or logistics service fee; the total must not be missing when such amounts are present.
BT-108 represents the total amount of document-level charges. It includes individual charges BT-99 and logistics service fees BT-X-272, subject to the defined rounding tolerance.
The total for charges does not sufficiently match the document-level charges and logistics service fees, or the total is missing. Reconcile the total against the recorded individual amounts.
- Compare
ram:ChargeTotalAmountwith theram:ActualAmountvalues for charges and theram:AppliedAmountvalues for logistics service fees. - Check the total through
ChargeTotalAmountand the individual charge amounts throughActualAmount. - Allow for the permitted tolerance of 0.01 per charge or logistics service fee.
- Generate the invoice again and validate it.
FacturXInvoice.ChargeTotalAmount(BT-108)AbstractTradeAllowanceCharge.ActualAmount(Document level charge: BT-99)
Technical details
The test compares ram:ChargeTotalAmount with the rounded sum of ram:ActualAmount for charges where ram:ChargeIndicator/udt:Indicator='true', together with ram:AppliedAmount from ram:SpecifiedLogisticsServiceCharge. The absolute tolerance is 0.01 multiplied by the total number of these entries; the condition is also satisfied when neither entries nor a total are present.
Applies to the charge total in ram:SpecifiedTradeSettlementHeaderMonetarySummation, document-level ram:SpecifiedTradeAllowanceCharge entries, and ram:SpecifiedLogisticsServiceCharge.
rule/@context)assert/@test)