فهرست منبع

补差计算相关

MaiXinRong 1 سال پیش
والد
کامیت
5f6959e4df
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/lib/revise_price.js

+ 2 - 2
app/lib/revise_price.js

@@ -435,9 +435,9 @@ class revisePriceCalc {
             for (const s of stages) {
                 if (s.status === audit.stage.status.checked) continue;
                 if (!pcTp) {
-                    pcTp = await this._calcStage(latestStage, xmj, transaction);
+                    pcTp = await this._calcStage(s, xmj, transaction);
                 } else {
-                    await this._calcStageWithoutPc(latestStage, xmj, transaction);
+                    await this._calcStageWithoutPc(s, xmj, transaction);
                 }
             }
         }