Pārlūkot izejas kodu

变更令页面,合计计算

MaiXinRong 5 gadi atpakaļ
vecāks
revīzija
e203b7e951
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 {