daterange
This commit is contained in:
@ -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 } ?>
|
Reference in New Issue
Block a user