ปรับปรุงสูตรและซ่อนปุ่ม

This commit is contained in:
LAPTOP-KB8JC2K2\acer
2021-09-02 18:50:32 +07:00
parent c86841c480
commit ccacb814a3
4 changed files with 28 additions and 8 deletions

View File

@@ -176,13 +176,23 @@ function Oneva_adjust_postponement_detail_normal_02_promoted_percentageChanged(m
$("#eva_adjust_postponement_detail_normal_02_total_promote_" + i).val(format_new_added);
$("#eva_adjust_postponement_detail_normal_02_new_sarary_" + i).text(formatNumber(new_salary));
//if (m) {
// if (new_salary < 13285) {
// $("#eva_adjust_postponement_detail_normal_02_new_cost_living_" + i).val(13285 - new_salary);
// } else {
// $("#eva_adjust_postponement_detail_normal_02_new_cost_living_" + i).val(0);
// }
//}
if (m) {
if (new_salary < 13285) {
if (new_salary <= 11285) {
$("#eva_adjust_postponement_detail_normal_02_new_cost_living_" + i).val(2000);
} else if (new_salary <= 13285) {
$("#eva_adjust_postponement_detail_normal_02_new_cost_living_" + i).val(13285 - new_salary);
} else {
$("#eva_adjust_postponement_detail_normal_02_new_cost_living_" + i).val(0);
}
}
}
sum_postpone += new_added;
sum_before += old_salary;