daterange

This commit is contained in:
Sampanna Rimal
2024-07-26 12:50:15 +05:45
parent 873e48f7e9
commit c16163bf01
8 changed files with 52 additions and 7 deletions

View File

@ -72,6 +72,7 @@
border: 0px;
}
</style>
<div class="content-wrapper">
<div class="content">
<div class="container-fluid">
@ -89,7 +90,7 @@
<div class="row mb-2">
<div class="col-2">
<fieldset>
<legend>Transaction Date</legend><input type="text" class="form-control2 nepaliDatePicker" id="purchase_date" value="<?php echo NepaliDate(); ?>" name="purchase_date">
<legend>Transaction Date</legend><input type="text" class="form-control2" id="purchase_date" value="<?php echo NepaliDate(); ?>" data-start="<?php echo $fiscalStart;?>" data-end="<?php echo $fiscalEnd;?>" name="purchase_date">
</fieldset>
</div>
<div class="col-8">
@ -428,4 +429,17 @@
$("#grand_total").val(grandTotal.toFixed(2));
}
});
</script>
</script>
<?php function footerFunctions()
{ ?>
<script>
$("#purchase_date").nepaliDatePicker({
dateFormat: "%y-%m-%d",
closeOnDateSelect: true,
minDate: $('#purchase_date').data('start'),
maxDate: $('#purchase_date').data('end'),
});
</script>
<?php } ?>