Explorar o código

复制整块,含有计量单元的清单,数量未正确保留小数位数

MaiXinRong %!s(int64=4) %!d(string=hai) anos
pai
achega
0dc88ff3b0
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      app/base/base_bills_service.js

+ 3 - 3
app/base/base_bills_service.js

@@ -606,9 +606,9 @@ class BaseBillsSerivce extends TreeService {
                         this._calcExpr(newPos, 'qtcl_qty', pos.qtcl_expr, pos.qtcl_qty, precision);
                         newPos.quantity = this.ctx.helper.add(newPos.sgfh_qty,
                             this.ctx.helper.add(newPos.sjcl_qty, newPos.qtcl_qty));
-                        newBills.sgfh_qty = this.ctx.helper.add(newBills.sgfh_qty, pos.sgfh_qty);
-                        newBills.sjcl_qty = this.ctx.helper.add(newBills.sjcl_qty, pos.sjcl_qty);
-                        newBills.qtcl_qty = this.ctx.helper.add(newBills.qtcl_qty, pos.qtcl_qty);
+                        newBills.sgfh_qty = this.ctx.helper.add(newBills.sgfh_qty, newPos.sgfh_qty);
+                        newBills.sjcl_qty = this.ctx.helper.add(newBills.sjcl_qty, newPos.sjcl_qty);
+                        newBills.qtcl_qty = this.ctx.helper.add(newBills.qtcl_qty, newPos.qtcl_qty);
                         if (defaultData) this.ctx.helper._.assignIn(newPos, defaultData);
                         pastePosData.push(newPos);
                     }