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 } ?>
|
@ -22,7 +22,7 @@
|
||||
<div class="row bill-details">
|
||||
<div class="col">
|
||||
<p><strong>Bill Number:</strong> <?php echo $Sales->sales_id; ?></p>
|
||||
<p><strong>Date:</strong> <?php echo myDate($Sales->sales_date); ?></p>
|
||||
<p><strong>Date:</strong> <?php echo dbDate($Sales->sales_date); ?></p>
|
||||
<p><strong>Vendor:</strong> <?php echo $this->myaccounts->getAccountDetails($Sales->accounts_id)->account_name; ?></p>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user