|
@@ -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);
|
|
|
}
|