فهرست منبع

变更清单计算相关

MaiXinRong 3 سال پیش
والد
کامیت
7cf85c7730
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/public/js/gcl_gather.js

+ 1 - 1
app/public/js/gcl_gather.js

@@ -337,7 +337,7 @@ const gclGatherModel = (function () {
             for (const node of change) {
                 node.b_code = node.code;
                 node.quantity = parseFloat(node.samount);
-                node.total_price = ZhCalc.mul(node.quantity, node.unit_price, node.tp_decimal);
+                node.total_price = ZhCalc.mul(node.quantity, node.unit_price, node.tp_decimal || tpDecimal);
                 const gcl = getGclNode(node);
                 gcl.change_bills_qty = ZhCalc.add(gcl.change_bills_qty, node.quantity);
                 gcl.change_bills_tp = ZhCalc.add(gcl.change_bills_tp, node.total_price);