Pārlūkot izejas kodu

按比例计量,同名计量单元同步问题

MaiXinRong 4 gadi atpakaļ
vecāks
revīzija
45e41dedd1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/service/stage_pos.js

+ 1 - 1
app/service/stage_pos.js

@@ -437,7 +437,7 @@ module.exports = app => {
 
                 const posStage = await this.getLastestStageData2(b.tender_id, this.ctx.stage.id, {lid: b.id});
                 let contract_qty = 0;
-                const newPosRange = insertPosStage.filter(x => {return x.lid = b.id});
+                const newPosRange = insertPosStage.filter(x => {return x.lid === b.id});
                 for (const nps of newPosRange) {
                     contract_qty = this.ctx.helper.add(contract_qty, nps.contract_qty);
                 }