فهرست منبع

变更令页面,合计计算

MaiXinRong 5 سال پیش
والد
کامیت
e203b7e951
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/controller/change_controller.js

+ 2 - 2
app/controller/change_controller.js

@@ -342,8 +342,8 @@ module.exports = app => {
                             cl.detail,
                             cl.lid,
                         ];
-                        ototalCost += ctx.helper.accMul(cl.unit_price, cl.oamount);
-                        ctotalCost += ctx.helper.accMul(cl.unit_price, cl.camount);
+                        ototalCost += ctx.helper.mul(cl.unit_price, cl.oamount, ctx.tender.info.decimal.tp);
+                        ctotalCost += ctx.helper.mul(cl.unit_price, cl.camount, ctx.tender.info.decimal.tp);
                         if (cl.lid !== 0) {
                             changeListData.push(cLArray.join(';'));
                         } else {