daterangefix and vouchertextremove
This commit is contained in:
@ -664,7 +664,7 @@ class myaccounts
|
||||
$data['oldBalance'] = $oldBalance;
|
||||
return $data;
|
||||
}
|
||||
function showLedger($account_id, $fromDate = "", $toDate = "")
|
||||
function showLedger($account_id, $fromDate = "", $toDate = "", $fiscalStart = "", $fiscalEnd = "" )
|
||||
{
|
||||
$oldBalance = $this->getOldBalance($account_id, FYStart());
|
||||
$fromDate = ($fromDate == "") ? NepaliToEnglishDate(FYStart()) : $fromDate;
|
||||
@ -699,6 +699,7 @@ class myaccounts
|
||||
<th class="col-1 text-right"><?php myLang("Debit"); ?></th>
|
||||
<th class="col-1 text-right"><?php myLang("Credit"); ?></th>
|
||||
<th class="col-1"><?php myLang("Balance"); ?></th>
|
||||
<input type="hidden" id="refdate" data-start="<?php echo $fiscalStart; ?>" data-end="<?php echo $fiscalEnd; ?>">
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -776,6 +777,22 @@ class myaccounts
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
function footerfunctions()
|
||||
{
|
||||
?>
|
||||
<script>
|
||||
$(".ass_date").nepaliDatePicker({
|
||||
dateFormat: "%y-%m-%d",
|
||||
closeOnDateSelect: true,
|
||||
minDate: $('#refdate').data('start'),
|
||||
maxDate: $('#refdate').data('end'),
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
function ledgerPDF_FPDM($account_id, $fromDate, $toDate)
|
||||
@ -926,7 +943,7 @@ class myaccounts
|
||||
// $pdf->Output("F", $OutputFileLocation . $OutputFile);
|
||||
// return $OutputFile;
|
||||
}
|
||||
function listVouchers($fromDate = "", $toDate = "", $account_id = "", $vouchertype_id = "", $showAccounts = false, $showVoucherTypes = false)
|
||||
function listVouchers($fromDate = "", $toDate = "", $account_id = "", $vouchertype_id = "", $showAccounts = false, $showVoucherTypes = false, $fiscalStart = "", $fiscalEnd = "")
|
||||
{
|
||||
// echo $toDate;
|
||||
$ci = &get_instance();
|
||||
@ -1041,6 +1058,7 @@ class myaccounts
|
||||
<button type="button" onClick='reversalEntry()' id="reversalBtn" class="btn btn-secondary" data-dismiss="modal" data-id="">Revarsal Entry</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
<input type="hidden" id="refdate" data-start="<?php echo $fiscalStart; ?>" data-end="<?php echo $fiscalEnd; ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1119,6 +1137,15 @@ class myaccounts
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$(".ass_date").nepaliDatePicker({
|
||||
dateFormat: "%y-%m-%d",
|
||||
closeOnDateSelect: true,
|
||||
minDate: $('#refdate').data('start'),
|
||||
maxDate: $('#refdate').data('end'),
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user