Browse Source

修复修改合同截止本期值bug

laiguoran 2 năm trước cách đây
mục cha
commit
547a378c4a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/stage_pay.js

+ 1 - 1
app/service/stage_pay.js

@@ -214,7 +214,7 @@ module.exports = app => {
                 const updateData = {id: stagePay.id};
                 if (data.name !== undefined) { updateData.name = data.name }
                 if (data.expr !== undefined) { updateData.expr = data.expr }
-                if (data.tp !== undefined) { updateData.tp = data.tp }
+                if (data.tp !== undefined) { updateData.tp = data.tp; updateData.end_tp = this.ctx.helper.add(data.tp, data.pre_tp); }
                 if (data.pause !== undefined) { updateData.pause = data.pause }
                 if (data.postil !== undefined) updateData.postil = data.postil;
                 updateDatas.push(updateData);