ปรับปรุงหน้าจก eva detail

This commit is contained in:
Nakorn Rientrakrunchai
2021-03-12 23:22:39 +07:00
parent e179b447d7
commit 60373ede6b
20 changed files with 3303 additions and 178 deletions

View File

@@ -149,6 +149,8 @@ function Oneva_adjust_postponement_normal_percentageChange(){
function Oneva_adjust_postponement_detail_normal_02_promoted_percentageChanged(){
var current_quota = $("#eva_adjust_postponement_normal_limit_quota").val().replace(/[,-]/g,'');
var sum_postpone = 0;
var sum_before = 0;
var sum_after = 0;
$('#eva_adjust_postponement_detail_normal_02Body tr').each(function () {
var i = $(this).find("#rowCount").text();
@@ -171,10 +173,14 @@ function Oneva_adjust_postponement_detail_normal_02_promoted_percentageChanged()
$("#eva_adjust_postponement_detail_normal_02_new_cost_living_" + i).text(0);
}
sum_postpone += new_added;
sum_before += old_salary;
sum_after += new_salary;
}
});
// $("#remain_cost").val(Math.round((current_quota - sum_postpone)*100)/100);
$("#remain_cost").maskMoney('mask',Math.round((current_quota - sum_postpone)*100)/100);
$("#remain_cost").maskMoney('mask', Math.round((current_quota - sum_postpone) * 100) / 100);
$("#sum_before").text(formatNumber(sum_before));
$("#sum_after").text(formatNumber(sum_after));
}