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