|
@@ -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);
|