Browse Source

合同支付,本期实付计算

MaiXinRong 5 tháng trước cách đây
mục cha
commit
e6323270a6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/phase_pay_detail.js

+ 1 - 1
app/service/phase_pay_detail.js

@@ -240,7 +240,7 @@ class PayCalculator {
     }
     _calculateSf(sf, pays) {
         if (sf.expr) {
-            sf.tp = this.ctx.helper.round(this._calculateExpr(sf, pays), this.decimal);
+            sf.tp = this.ctx.helper.round(this._calculateExpr(sf.expr, pays), this.decimal);
         } else {
             const yf = pays.find(x => { return x.pay_type === payType.bqyf; });
             sf.tp = yf.tp;