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

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

@@ -160,9 +160,19 @@ function CalculateRemainQuota(m) {
var new_sarary_with_quota = new_sarary + receive_quota;
$("#eva_adjust_postponement_detail_quota_02_new_sarary_with_quota_" + i).text(formatNumber(new_sarary_with_quota));
//if (m) {
// if (new_sarary_with_quota < 13285) {
// $("#eva_adjust_postponement_detail_quota_02_new_cost_living_" + i).val(formatNumber(13285 - new_sarary_with_quota));
// } else {
// $("#eva_adjust_postponement_detail_quota_02_new_cost_living_" + i).val(0);
// }
//}
if (m) {
if (new_sarary_with_quota < 13285) {
$("#eva_adjust_postponement_detail_quota_02_new_cost_living_" + i).val(formatNumber(13285 - new_sarary_with_quota));
if (new_salary <= 11285) {
$("#eva_adjust_postponement_detail_quota_02_new_cost_living_" + i).val(2000);
} else if (new_salary <= 13285) {
$("#eva_adjust_postponement_detail_quota_02_new_cost_living_" + i).val(13285 - new_sarary_with_quota);
} else {
$("#eva_adjust_postponement_detail_quota_02_new_cost_living_" + i).val(0);
}