MaiXinRong пре 2 година
родитељ
комит
f06bb201a1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/lib/revise_price.js

+ 1 - 1
app/lib/revise_price.js

@@ -118,7 +118,7 @@ class revisePriceCalc {
     async stageCheckAgainPriceChange(stage, auditOrder, transaction) {
         // 获取未执行的单价变更,无单价变更不执行
         this.price = await this.ctx.service.revisePrice.getAllDataByCondition({ where: { tid: stage.tid, valid: 1, use_stage: 0 } });
-        if (price.length === 0) return;
+        if (this.price.length === 0) return;
 
         const curBillsData = await this.ctx.service.stageBills.getLastestStageData2(stage.tid, stage.id);
         const preBillsData = await this.ctx.service.stageBillsFinal.getAllDataByCondition({ where: { tid: stage.tid, sorder: stage.order - 1 } });