stock changes 24-04-2025
This commit is contained in:
parent
088afd3479
commit
6e06441147
@ -252,7 +252,9 @@
|
||||
<td align="center"><?php echo $time; ?></td>
|
||||
<td style="cursor:pointer; color:#0bb2b5" >
|
||||
|
||||
<a data-toggle="modal"
|
||||
<a
|
||||
class="edit-btn"
|
||||
data-toggle="modal"
|
||||
data-target="#Igrshow"
|
||||
data-id="<?php echo $index;?>"
|
||||
data-inx="<?php echo $index;?>"
|
||||
@ -512,8 +514,6 @@
|
||||
<th style="width: 50px;">Total Amt</th>
|
||||
<th style="width: 150px;">Remarks <span class="text-danger">*</span></th>
|
||||
<th style="width: 25px;">Net Weight</th>
|
||||
<th style="width: 25px; display:none" id="gasShortageHeader">Add Gas Shortage</th>
|
||||
<th style="width: 25px; display:none" id="gasShortageListHeader">Gas Shortage list</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbleIGRAppend">
|
||||
@ -1284,21 +1284,6 @@
|
||||
'<input type="file" id="txtWeightFile' + i + '" name="txtWeightFile' + i + '"value="' + item.WeightFile + '" style="display:none;">' +
|
||||
'<input type="hidden" id="txtWeightFileName' + i + '" name="txtWeightFileName' + i + '"value="' + item.WeightFile + '">' ;
|
||||
|
||||
|
||||
let regex = /gas/i;
|
||||
|
||||
if(regex.test(item.MaterialCategory) ){
|
||||
$('#gasShortageHeader').show();
|
||||
$('#gasShortageListHeader').show();
|
||||
trIGRHTML += '<td style="width: 25px; cursor:pointer;"><a target="_blank" data-toggle="modal" data-target="#gasShortageCalculator" title="gas Shortage Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '" data-igrstatus = "' + igrstatus + '"><i class="fa fa-solid fa-gas-pump" style="text-align: center;"></i></a> </td>' ;
|
||||
trIGRHTML += '<td style="width: 25px; cursor:pointer;"><a target="_blank" data-toggle="modal" data-target="#gasShortageList" title="gas Shortage List" ><i class="fa fa-solid fa-list" style="text-align: center;"></i></a> </td>' ;
|
||||
|
||||
trIGRHTML +='</tr>';
|
||||
}else{
|
||||
trIGRHTML +='</tr>';
|
||||
}
|
||||
|
||||
|
||||
if ((item.Quantity - item.QuantityAsPerInvoice) == 0.00) {
|
||||
$('#QuantityAsPerInvoice' + i).attr('readonly', 'true');
|
||||
}
|
||||
@ -1348,21 +1333,7 @@
|
||||
'<input type="hidden" id="txtIGRLineItem' + i + '" name="txtIGRLineItem' + i + '"value="' + item.IGRItemNo + '">' +
|
||||
'<input type="file" id="txtWeightFile' + i + '" name="txtWeightFile' + i + '"value="' + item.WeightFile + '" style="display:none;">' +
|
||||
'<input type="hidden" id="txtWeightFileName' + i + '" name="txtWeightFileName' + i + '"value="' + item.WeightFile + '">' ;
|
||||
|
||||
let regex = /gas/i;
|
||||
|
||||
if(regex.test(item.MaterialCategory) ){
|
||||
$('#gasShortageHeader').show();
|
||||
$('#gasShortageListHeader').show();
|
||||
trIGRHTML += '<td style="width: 25px; cursor:pointer;"><a target="_blank" data-toggle="modal" data-target="#gasShortageCalculator" title="gas Shortage Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '" data-igrstatus = "' + igrstatus + '"><i class="fa fa-solid fa-gas-pump" style="text-align: center;"></i></a> </td>' ;
|
||||
trIGRHTML += '<td style="width: 25px; cursor:pointer;"><a target="_blank" data-toggle="modal" data-target="#gasShortageList" title="gas Shortage List" ><i class="fa fa-solid fa-list" style="text-align: center;"></i></a> </td>' ;
|
||||
|
||||
trIGRHTML +='</tr>';
|
||||
}else{
|
||||
trIGRHTML +='</tr>';
|
||||
}
|
||||
|
||||
|
||||
if ((item.Quantity - item.QuantityAsPerInvoice) == 0.00) {
|
||||
$('#QuantityAsPerInvoice' + i).attr('readonly', 'true');
|
||||
}
|
||||
@ -1409,20 +1380,6 @@
|
||||
'<input type="file" id="txtWeightFile' + i + '" name="txtWeightFile' + i + '"value="' + item.WeightFile + '">' +
|
||||
'<input type="hidden" id="txtWeightFileName' + i + '" name="txtWeightFileName' + i + '"value="' + item.WeightFile + '">';
|
||||
|
||||
let regex = /gas/i;
|
||||
|
||||
if(regex.test(item.MaterialCategory) ){
|
||||
$('#gasShortageHeader').show();
|
||||
$('#gasShortageListHeader').show();
|
||||
trIGRHTML += '<td style="width: 25px; cursor:pointer;"><a target="_blank" data-toggle="modal" data-target="#gasShortageCalculator" title="gas Shortage Calculator" data-index="' + i + '" data-material="' + item.MaterialName + '" data-igrstatus = "' + igrstatus + '"><i class="fa fa-solid fa-gas-pump" style="text-align: center;"></i></a> </td>' ;
|
||||
trIGRHTML += '<td style="width: 25px; cursor:pointer;"><a target="_blank" data-toggle="modal" data-target="#gasShortageList" title="gas Shortage List" ><i class="fa fa-solid fa-list" style="text-align: center;"></i></a> </td>' ;
|
||||
|
||||
trIGRHTML +='</tr>';
|
||||
}else{
|
||||
trIGRHTML +='</tr>';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1461,8 +1418,6 @@
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#Igrshow').on("hide.bs.modal", function(e){
|
||||
$('#gasShortageHeader').hide();
|
||||
$('#gasShortageListHeader').hide();
|
||||
$('#existingContainer').empty();
|
||||
});
|
||||
});
|
||||
@ -2343,6 +2298,21 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('#view_inward_gate_register').on('click', '.edit-btn', function () {
|
||||
const pageInfo = table.page.info(); // Now this works
|
||||
console.log("page number",pageInfo);
|
||||
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||
});
|
||||
|
||||
// Restore page
|
||||
let startPage = sessionStorage.getItem("datatablePage");
|
||||
console.log('startpage',startPage);
|
||||
if (startPage !== null) {
|
||||
table.page(parseInt(startPage)).draw('page');
|
||||
sessionStorage.removeItem("datatablePage");
|
||||
}
|
||||
|
||||
|
||||
// Reset button functionality
|
||||
$("#resetButton").click(function() {
|
||||
$("#fromDate").val('');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user