The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2.
The value of ram:LineTotalAmount has more than two digits after the decimal point.
The net amount of an invoice line may contain no more than two decimal places.
The invoice line net amount has more than two decimal places. Adjust the LineTotalAmount value to no more than two decimal places.
- Check the
LineTotalAmountvalue in the invoice line. - Make sure there are no more than two digits after the decimal point.
- Check the mapping in
TradeLineItem.LineTotalAmount. - Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:LineTotalAmount>12.345</ram:LineTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:LineTotalAmount>12.34</ram:LineTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation>
TradeLineItem.LineTotalAmount(BT-131)
Technical details
The test counts the characters after a period in ram:LineTotalAmount and allows no more than two.
The rule applies to the net amount ram:LineTotalAmount in the invoice line summary.
rule/@context)assert/@test)