The allowed maximum number of decimals for the Document level allowance base amount (BT-93) is 2.
The amount in ram:BasisAmount has more than two digits after the decimal separator.
The base amount for the document level allowance may have no more than two decimal places. This keeps the stated calculation base within the permitted precision.
The allowance base amount has more than two decimal places. Adjusting the amount will resolve this formatting issue.
- Check the value in the allowance’s
ram:BasisAmount. - Limit the amount to no more than two decimal places.
- Check the
BasisAmountproperty. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:BasisAmount>10.123</ram:BasisAmount> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:BasisAmount>10.12</ram:BasisAmount> </ram:SpecifiedTradeAllowanceCharge>
AbstractTradeAllowanceCharge.BasisAmount(Document level allowance: BT-93)
Technical details
The check counts the characters after the decimal point in ram:BasisAmount of the parent ram:SpecifiedTradeAllowanceCharge and allows no more than two.
The rule applies to ram:BasisAmount of an allowance in ram:SpecifiedTradeAllowanceCharge within ram:ApplicableHeaderTradeSettlement.
rule/@context)assert/@test)