Merge branch 'feature/add_item' of wmtx/platform into master

编辑扣款旧的验证添加
master
廖金灵 4 years ago committed by Gogs
commit 401ad97cbc

@ -466,6 +466,11 @@
withhold = 0;
$(_this).parent().parent().find(".withhold").val(withhold);
}
if (!oldwithhold ) {
oldwithhold = 0;
$(_this).parent().parent().find(".oldwithhold").val(oldwithhold);
}
// else if(parseFloat(withhold) > parseFloat(pay_money)) {
// withhold = pay_money;
// $(_this).parent().parent().find(".withhold").val(withhold);
@ -509,7 +514,7 @@
}
}
var D_value = parseFloat(old_amount)-parseFloat(this_amount) + (withhold-oldwithhold);
var D_value = parseFloat(old_amount)-parseFloat(this_amount) + parseFloat(withhold-oldwithhold);
week_amount_find.find(".week_amount").text((parseFloat(week_amount) - D_value).toFixed(2));

@ -471,6 +471,11 @@
withhold = 0;
$(_this).parent().parent().find(".withhold").val(withhold);
}
if (!oldwithhold ) {
oldwithhold = 0;
$(_this).parent().parent().find(".oldwithhold").val(oldwithhold);
}
// else if(parseFloat(withhold) > parseFloat(pay_money)) {
// withhold = pay_money;
// $(_this).parent().parent().find(".withhold").val(withhold);
@ -514,7 +519,7 @@
var this_amount = week_amount_find.find(".sum_money_span").text();
var D_value = parseFloat(old_amount)-parseFloat(this_amount) + (withhold-oldwithhold) ;
var D_value = parseFloat(old_amount)-parseFloat(this_amount) + parseFloat(withhold-oldwithhold) ;
week_amount_find.find(".week_amount").text((parseFloat(week_amount)-D_value).toFixed(2));
// week_amount_find.find(".week_amount_input").val((parseFloat(week_amount)-D_value- parseFloat(withhold)));

Loading…
Cancel
Save