Przeglądaj źródła

合同支付,计算调整

MaiXinRong 1 miesiąc temu
rodzic
commit
99da1a046f
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      app/service/phase_pay_detail.js

+ 2 - 1
app/service/phase_pay_detail.js

@@ -101,7 +101,8 @@ class PayCalculator {
         }
         for (const b of this.bases) {
             const value = b.checkStart && (!pay.pre_used && pay.start_tp)
-                ? Math.max(this.ctx.helper.sub(this.addBase[b.checkStart], pay.start_tp), 0)
+                // ? Math.max(this.ctx.helper.sub(this.addBase[b.checkStart], pay.start_tp), 0)
+                ? this.ctx.helper.sub(this.addBase[b.checkStart], pay.start_tp)
                 : b.value;
             formula = formula.replace(b.reg, value);
         }