Selaa lähdekoodia

合同支付,计算调整

MaiXinRong 1 kuukausi sitten
vanhempi
commit
99da1a046f
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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) {
         for (const b of this.bases) {
             const value = b.checkStart && (!pay.pre_used && pay.start_tp)
             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;
                 : b.value;
             formula = formula.replace(b.reg, value);
             formula = formula.replace(b.reg, value);
         }
         }