Pārlūkot izejas kodu

补差计算相关

MaiXinRong 1 gadu atpakaļ
vecāks
revīzija
5f6959e4df
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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);
                 }
             }
         }