Browse Source

合同支付,起扣金额,扣款限额计算调整

MaiXinRong 8 months ago
parent
commit
ee039a0fbd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/lib/pay_calc.js

+ 2 - 2
app/lib/pay_calc.js

@@ -137,12 +137,12 @@ class PayCalculate {
             // }
             // 上一期已计量的合同支付项,不予计算起扣金额、扣款限额
             if (!p.pre_used) {
-                if (!p.sprice && p.sexpr && p.sexpr !== '') {
+                if (p.sexpr && p.sexpr !== '') {
                     p.sprice = this.ctx.helper.round(this._calculateExpr(p.sexpr), this.decimal);
                 } else if (p.sprice && !p.sexpr) {
                     p.sprice = this.ctx.helper.round(p.sprice, this.decimal);
                 }
-                if (!p.rprice && p.rexpr && p.rexpr !== '') {
+                if (p.rexpr && p.rexpr !== '') {
                     p.rprice = this.ctx.helper.round(this._calculateExpr(p.rexpr), this.decimal);
                 } else if (p.rprice && !p.rexpr) {
                     p.rprice = this.ctx.helper.round(p.rprice, this.decimal);