|
|
@@ -3064,7 +3064,7 @@ public class Order extends Controller {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- Rows rows = dbConnect.runSqlQuery("SELECT sum(undeliqty*price) totalprice from sa_orderitems WHERE sa_orderid=" + sa_orderid + " and siteid = '" + siteid + "'");
|
|
|
+ Rows rows = dbConnect.runSqlQuery("SELECT cast(sum(undeliqty*price) as DECIMAL(16,2)) totalprice from sa_orderitems WHERE sa_orderid=" + sa_orderid + " and siteid = '" + siteid + "'");
|
|
|
if (rows.isNotEmpty()) {
|
|
|
BigDecimal totalprice = rows.get(0).getBigDecimal("totalprice");
|
|
|
JSONArray sa_accountclassinfos = orderRow.get(0).getJSONArray("sa_accountclassinfos");
|