|
@@ -2794,8 +2794,8 @@ public class Order extends Controller {
|
|
|
for (Row row : rows) {
|
|
|
Rows rows2 = rowsMap.getOrDefault(row.getString("sa_dispatchid"), new Rows());
|
|
|
if (rows2.isNotEmpty()) {
|
|
|
- row.putIfAbsent("sumamount", rows2.get(0).getBigDecimal("sumamount").setScale(2));
|
|
|
- row.putIfAbsent("sumqty", rows2.get(0).getBigDecimal("sumqty").setScale(2));
|
|
|
+ row.putIfAbsent("sumamount", rows2.get(0).getBigDecimal("sumamount").setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
|
+ row.putIfAbsent("sumqty", rows2.get(0).getBigDecimal("sumqty").setScale(2, BigDecimal.ROUND_HALF_UP));
|
|
|
}
|
|
|
row.putIfAbsent("sumamount", 0);
|
|
|
row.putIfAbsent("sumqty", 0);
|