The allowed maximum number of decimals for the Document level charge base amount (BT-100) is 2.
The value in ram:BasisAmount for such a charge contains more than two digits after the decimal separator.
The base amount of a document-level charge may have no more than two decimal places. This enforces the decimal precision specified for this amount.
The base amount of a charge has more than two decimal places. You can enter the amount with no more than two decimal places.
- Check the value of
ram:BasisAmountfor the document-level charge. - Limit this amount to two decimal places, then regenerate the invoice and check it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:BasisAmount>12.345</ram:BasisAmount> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:BasisAmount>12.34</ram:BasisAmount> </ram:SpecifiedTradeAllowanceCharge>
AbstractTradeAllowanceCharge.BasisAmount(Document level charge: BT-100)
Technical details
The test counts the characters after the decimal point in ram:BasisAmount and allows no more than two. It applies in the context of a ram:ChargeIndicator whose udt:Indicator has the value true.
The rule applies to the base amount ram:BasisAmount of a document-level charge in ram:ApplicableHeaderTradeSettlement when ram:ChargeIndicator contains the value true.
rule/@context)assert/@test)