diff --git a/account/application/controllers/accounts/Ledger.php b/account/application/controllers/accounts/Ledger.php index f68d59c..45c7a2e 100644 --- a/account/application/controllers/accounts/Ledger.php +++ b/account/application/controllers/accounts/Ledger.php @@ -40,6 +40,8 @@ class Ledger extends CI_Controller break; case 'partyledger': $data['pageTitle'] = "View Party Ledger"; + $data['fiscalStart'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_from); + $data['fiscalEnd'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_to); // $_GET['show_ledger']; if (isset($_GET['show_ledger'])) { $fromDate_Nepali = $_GET['from_date']; diff --git a/account/application/controllers/accounts/Vouchers.php b/account/application/controllers/accounts/Vouchers.php index 35b4980..d4dbd66 100644 --- a/account/application/controllers/accounts/Vouchers.php +++ b/account/application/controllers/accounts/Vouchers.php @@ -26,6 +26,8 @@ class Vouchers extends CI_Controller break; case 'listvouchers': $data['pageTitle'] = "Vouchers"; + $data['fiscalStart'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_from); + $data['fiscalEnd'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_to); $fromDate_bs = isset($_GET['from_date']) ? $_GET['from_date'] : firstDayOfNepaliMonth(); $todate_bs = isset($_GET['to_date']) ? $_GET['to_date'] : NepaliDate(Today()); $fromDate_ad = NepaliToEnglishDate($fromDate_bs); diff --git a/account/application/helpers/bibhelper_helper.php b/account/application/helpers/bibhelper_helper.php index ecdbd98..56d32db 100644 --- a/account/application/helpers/bibhelper_helper.php +++ b/account/application/helpers/bibhelper_helper.php @@ -44,8 +44,8 @@ function createNepaliDateInput($name, $display, $id, $default = "", $class = "") -
- "> +
+ ">
getOldBalance($account_id, FYStart()); $fromDate = ($fromDate == "") ? NepaliToEnglishDate(FYStart()) : $fromDate; @@ -699,6 +699,7 @@ class myaccounts + @@ -776,6 +777,22 @@ class myaccounts
--> + + + 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 + @@ -1119,6 +1137,15 @@ class myaccounts } } + diff --git a/account/application/views/accounts/ledger/partywise.php b/account/application/views/accounts/ledger/partywise.php index f35d302..671fb55 100644 --- a/account/application/views/accounts/ledger/partywise.php +++ b/account/application/views/accounts/ledger/partywise.php @@ -40,7 +40,7 @@ myaccounts->showLedger($account_id, $fromDate, $toDate); + $this->myaccounts->showLedger($account_id, $fromDate, $toDate, $fiscalStart, $fiscalEnd); } ?> @@ -42,4 +42,5 @@ - \ No newline at end of file + + diff --git a/account/pdf/ledgers/ledger_29.wpdf b/account/pdf/ledgers/ledger_29.wpdf index 69fdce4..68176c4 100644 Binary files a/account/pdf/ledgers/ledger_29.wpdf and b/account/pdf/ledgers/ledger_29.wpdf differ