แก้ไข OP 3 ข้อสุดท้าย

This commit is contained in:
Nakorn Rientrakrunchai
2020-08-21 21:43:41 +07:00
parent 72ac6d9cc9
commit 3d72f494eb
8 changed files with 26 additions and 17 deletions

View File

@@ -4,7 +4,6 @@ var eva_adjust_postponement_quota_API = "/api/eva_adjust_postponement_quota/";
//================= Form Data Customizaiton =========================================
function eva_adjust_postponement_quota_FeedDataToForm(data) {
console.log(data.limit);
$("#eva_adjust_postponement_quota_id").val(data.id);
$("#eva_adjust_postponement_quota_fiscal_year").val(data.fiscal_year);
$("#eva_adjust_postponement_quota_theDate").val(formatDate(data.theDate));
@@ -135,6 +134,8 @@ function Oneva_adjust_postponement_quota_limit_frame_quotaChange() {
limit_quota = limit_frame_quota * limit / 100;
//$("#eva_adjust_postponement_quota_limit_quota").val(Math.ceil(limit_quota/10)*10);
//console.log(limit);
$("#eva_adjust_postponement_quota_limit_quota").maskMoney('mask', Math.ceil(limit_quota/10)*10);
CalculateRemainQuota();
}
@@ -148,6 +149,7 @@ function CalculateRemainQuota() {
$('#eva_adjust_postponement_detail_quota_02Body tr').each(function () {
var i = $(this).find("#rowCount").text();
if (i) {
var current_salary = parseFloat($("#eva_adjust_postponement_detail_quota_02_sarary_" + i).text().replace(/[,-]/g,''));
var new_sarary = parseFloat($("#eva_adjust_postponement_detail_quota_02_new_sarary_" + i).text());
var receive_quota = parseFloat($("#eva_adjust_postponement_detail_quota_02_receive_quota_" + i).val());
@@ -163,9 +165,8 @@ function CalculateRemainQuota() {
} else {
$("#eva_adjust_postponement_detail_quota_02_new_cost_living_" + i).text(0);
}
sum_receive_quota += receive_quota;
}
});