Browse Source

累计完成计量 = 起扣金额时,应计算本期金额

MaiXinRong 5 years ago
parent
commit
fe11690c59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/pay_calc.js

+ 1 - 1
app/lib/pay_calc.js

@@ -159,7 +159,7 @@ class PayCalculate {
         yfPay.tp = 0;
         yfPay.tp = 0;
         for (const p of pays) {
         for (const p of pays) {
             if (p.ptype === payType.normal || p.ptype === payType.wc) {
             if (p.ptype === payType.normal || p.ptype === payType.wc) {
-                if (!p.pause && (!p.sprice || addRela.gather_tp > p.sprice)) {
+                if (!p.pause && (!p.sprice || addRela.gather_tp >= p.sprice)) {
                     if (p.expr && p.expr !== '') {
                     if (p.expr && p.expr !== '') {
                         const value = this.ctx.helper.round(this.calculateTpExpr(p, addRela), this.decimal);
                         const value = this.ctx.helper.round(this.calculateTpExpr(p, addRela), this.decimal);
                         if (p.rprice) {
                         if (p.rprice) {