소스 검색

变更令页面,合计计算

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 {