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

@ -206,6 +206,8 @@ class Vouchers extends CI_Controller
{
$data['pageTitle'] = $VoucherType->voucher_name;
$data['VoucherType'] = $VoucherType;
$data['fiscalStart'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_from);
$data['fiscalEnd'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_to);
$command = $this->uri->segment(4);
switch ($command) {
case 'create':
@ -263,6 +265,7 @@ class Vouchers extends CI_Controller
echo json_encode(['status' => 'success']);
loadview("accounts/vouchers/create", $data);
break;
}