소스 검색

生成截止本期数据问题

MaiXinRong 5 년 전
부모
커밋
701679c50f
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);