The allowed maximum number of decimals for the Document level charge amount (BT-99) is 2.
The value of ActualAmount contains more than two digits after the decimal point. The charge amount may have no more than two decimal places.
This limit ensures that the charge amount is stated with the permitted precision for this invoice amount.
The charge amount has more than two decimal places. You can state the invoice amount with no more than two decimal places.
- Locate the charge amount in the
ActualAmountelement. - Enter the amount with no more than two decimal places.
- Check the value of
AbstractTradeAllowanceCharge.ActualAmount. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ActualAmount>12.345</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ActualAmount>12.34</ram:ActualAmount> </ram:SpecifiedTradeAllowanceCharge>
AbstractTradeAllowanceCharge.ActualAmount(Document level charge: BT-99)
Technical details
The test counts the characters after a period in the first ActualAmount and allows no more than two.
The rule applies to the ActualAmount of a document-level charge within ApplicableHeaderTradeSettlement.
rule/@context)assert/@test)