The allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2.
The value in ram:ActualAmount has more than two characters after the decimal point. The document-level allowance amount (BT-92) may have no more than two decimal places.
The two-decimal limit specifies the permitted precision of the allowance amount.
The allowance amount has more than two decimal places. Adjust the number of decimal places in ram:ActualAmount.
- Limit the value in
ram:ActualAmountto no more than two decimal places. - Check
AbstractTradeAllowanceCharge.ActualAmount. - Regenerate the invoice and validate it again.
<ram:ActualAmount>10.123</ram:ActualAmount>
<ram:ActualAmount>10.12</ram:ActualAmount>
AbstractTradeAllowanceCharge.ActualAmount(Document level allowance: BT-92)
Technical details
The test counts the characters after the decimal point in ram:ActualAmount[1] and requires no more than two.
The rule applies to ram:ActualAmount for a document-level allowance in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)