Browse Source

变更令,新增部位,复制整块问题

MaiXinRong 2 years ago
parent
commit
a3a87385fc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/service/change_ledger.js

+ 2 - 0
app/service/change_ledger.js

@@ -1208,6 +1208,7 @@ module.exports = app => {
                         qtcl_expr: d.qtcl_expr,
                         check_calc: 1,
                         ccid: this.ctx.change.cid,
+                        formc: 1,
                     };
                     for (const c of d.children) {
                         c.ledger_pid = newBills.ledger_id;
@@ -1236,6 +1237,7 @@ module.exports = app => {
                                 ex_memo2: pos.ex_memo2,
                                 ex_memo3: pos.ex_memo3,
                                 ccid: this.ctx.change.cid,
+                                formc: 1,
                             };
                             this._calcExpr(newPos, 'sgfh_qty', pos.sgfh_expr, pos.sgfh_qty, precision);
                             this._calcExpr(newPos, 'sjcl_qty', pos.sjcl_expr, pos.sjcl_qty, precision);