Commit 69115d29 authored by 18083's avatar 18083

提前结清资管费优化

parent 564f9fdd
......@@ -232,8 +232,7 @@
//add by xsh35973 添加修改调整后资源占用费提前结清租金跟随变动
//调整后资金占用费
if(name == 'fund_possession_cost'&& clc_flag =='N'){
debugger;
if (value < 0 || value == NaN || value == undefined) {
if (value < 0 || value == NaN || value == undefined) {
Leaf.showMessage('${l:HLS.PROMPT}', '调整后的资金占用费金额应大于等于0!');
setTimeout(function () {
record.set('fund_possession_cost', 0);
......@@ -247,9 +246,9 @@
}
//调整资金占用费 18083 2023/2/6
var fund_possession_time = record.get('fund_possession_time')||0;
var btb_int_rate = record.get('btb_int_rate');
var btb_int_rate = record.get('btb_int_rate')||0;
var asset_possession_cost_result =value-sum_unreceived_principal*fund_possession_time*btb_int_rate/360;
if(asset_possession_cost_result<0) {
if(asset_possession_cost_result<0|| value == NaN || value == undefined) {
record.set('asset_possession_cost', 0);
}else{
record.set('asset_possession_cost', asset_possession_cost_result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment