stock module 2 vadivel J 02-12-2025
This commit is contained in:
parent
a5c1637970
commit
9ed9dc8fc5
@ -753,6 +753,29 @@ function convertToDate(dateString) {
|
||||
$(document).ready(function() {
|
||||
$('#fromDateFilter ').select2();
|
||||
$('#toDateFilter ').select2();
|
||||
initialFilterDate();
|
||||
|
||||
});
|
||||
|
||||
function initialFilterDate(){
|
||||
|
||||
let fromDate = $('#fromDateFilter').val(); //01-12-2024
|
||||
let toDate = $('#toDateFilter').val(); //05-12-2024
|
||||
|
||||
console.log("from Date and to date ..!!")
|
||||
console.log(fromDate,toDate);
|
||||
|
||||
$('#gasStockDetailsTableId').find('tbody tr').each(function() {
|
||||
const rowCells = $(this).find('td');
|
||||
let tableDate = rowCells.eq(0).text();
|
||||
let result = checkDateRange(fromDate,toDate,tableDate);
|
||||
if (result) {
|
||||
$(this).show();
|
||||
} else {
|
||||
$(this).hide();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user