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