FIX_GTLI_RACK_RATE_ISSUE : RV
This commit is contained in:
parent
30955f09c6
commit
43f7d62ede
@ -393,6 +393,8 @@ $('body').on('click', '.btnPolicyModel', function()
|
||||
$("#hidden_unit").val(branch_units[0]);
|
||||
console.log('unit', branch_units[0]);
|
||||
$("#gpa_unit1").val(branch_units[0]);
|
||||
$("#gpa_unit2").val(branch_units[0]);
|
||||
$("#gpa_unit3").val(branch_units[0]);
|
||||
}
|
||||
var data_for_the_rack_rate = JSON.parse(res.premiumData) ?? [];
|
||||
var groupedData = groupByRackRateName(data_for_the_rack_rate) ?? [];
|
||||
@ -747,7 +749,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
||||
|
||||
var id_var = 'grid_';
|
||||
|
||||
var default_unit = $('#hidden_unit').val();
|
||||
var default_unit = $('#hidden_unit').val() ?? "";
|
||||
|
||||
|
||||
var dataIdValue = ''
|
||||
@ -787,7 +789,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
||||
<div class="form-row" style="width:101%;padding: 10px;" id="removeChild_${Count}">
|
||||
<div class="form-group col-md-3 unitDiv">
|
||||
<label for="mobile">Units<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.unit : '') : ''}" type="text" class="form-control" placeholder="Enter Unit" name="gpa_unit_3[]" id="gpa_unit3" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '3' ? data.unit : default_unit) : default_unit}" type="text" class="form-control" placeholder="Enter Unit" name="gpa_unit_3[]" id="gpa_unit3" required>
|
||||
</div>
|
||||
<div class="form-group col-md-1" id="">
|
||||
<label for="mobile">Grade<span class="text-danger">*</span></label>
|
||||
@ -864,7 +866,7 @@ function addGridHTML(event = false, data = false, ui_type = false, si_or_bp = fa
|
||||
<div class="form-row" style="padding: 10px;">
|
||||
<div class="form-group col-md-3 unitDiv">
|
||||
<label for="mobile">Units<span class="text-danger">*</span></label>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.unit : '') : ''}" type="text" class="form-control" placeholder="Enter Unit" name="gpa_unit[]" id="gpa_unit2" required>
|
||||
<input value="${data !== false && data !== undefined && data !== '' ? (data.si_or_bp == '2' ? data.unit : default_unit) : default_unit}" type="text" class="form-control" placeholder="Enter Unit" name="gpa_unit[]" id="gpa_unit2" required>
|
||||
</div>
|
||||
<div class="form-col col-md-2">
|
||||
<label for="mobile">Basic Pay<span class="text-danger">*</span></label>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user