daterange
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
<div class="col-2">
|
||||
<fieldset>
|
||||
<legend>Transaction Date <span class="text-danger">*</span></legend>
|
||||
<input type="text" class="form-control2 nepaliDatePicker" id="salesDate" value="<?php echo NepaliDate(); ?>" name="salesDate" required>
|
||||
<input type="text" class="form-control2" id="salesDate" value="<?php echo NepaliDate(); ?>" data-start="<?php echo $fiscalStart;?>" data-end="<?php echo $fiscalEnd;?>" name="salesDate" required>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
@ -260,4 +260,17 @@
|
||||
$('#tax').val(tax.toFixed(2));
|
||||
$('#grandtotal').val(grandTotal.toFixed(2));
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<?php function footerFunctions()
|
||||
{ ?>
|
||||
<script>
|
||||
$("#salesDate").nepaliDatePicker({
|
||||
dateFormat: "%y-%m-%d",
|
||||
closeOnDateSelect: true,
|
||||
minDate: $('#salesDate').data('start'),
|
||||
maxDate: $('#salesDate').data('end'),
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
Reference in New Issue
Block a user