Jelajahi Sumber

生成截止本期数据问题

MaiXinRong 5 tahun lalu
induk
melakukan
701679c50f
2 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 1 0
      app/service/stage_bills_final.js
  2. 1 0
      app/service/stage_pos_final.js

+ 1 - 0
app/service/stage_bills_final.js

@@ -110,6 +110,7 @@ module.exports = app => {
                 }
 
                 for (const p of pre) {
+                    if (p.id !== undefined) delete p.id;
                     p.sid = stage.id;
                     p.sorder = stage.order;
                     p.used = p.used || !this.ctx.helper.checkZero(p.contract_qty) || !this.ctx.helper.checkZero(p.qc_qty);

+ 1 - 0
app/service/stage_pos_final.js

@@ -91,6 +91,7 @@ module.exports = app => {
                     }
                 }
                 for (const p of pre) {
+                    if (p.id !== undefined) delete p.id;
                     p.sid = stage.id;
                     p.sorder = stage.order;
                     p.used = p.used || !this.ctx.helper.checkZero(p.contract_qty) || !this.ctx.helper.checkZero(p.qc_qty);