From f488c286bdfd659c412aa48cbb21f6b63660d0ec Mon Sep 17 00:00:00 2001 From: Sampanna Rimal Date: Wed, 21 Aug 2024 13:47:09 +0545 Subject: [PATCH] daterangefix and vouchertextremove --- .../controllers/accounts/Ledger.php | 2 ++ .../controllers/accounts/Vouchers.php | 2 ++ .../application/helpers/bibhelper_helper.php | 4 +-- account/application/libraries/Myaccounts.php | 31 ++++++++++++++++-- .../views/accounts/ledger/partywise.php | 2 +- .../views/accounts/vouchers/create.php | 2 +- .../views/accounts/vouchers/listvouchers.php | 5 +-- account/pdf/ledgers/ledger_29.wpdf | Bin 17710 -> 17709 bytes 8 files changed, 40 insertions(+), 8 deletions(-) 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 69fdce499f22bdc4efe7a8efa49d4f8713cb3172..68176c4c7c4f9cd60b05c17c7aa5c13875923afe 100644 GIT binary patch delta 653 zcmZ42#kjVMaY94Ashu5HaY<2XVlG$3oZdF=EHvqwyJJh}{@QZhDW;2rA`ad9di(yFedav#-I%tv-d|j4=-q+z0=Q)?@*2syf_Ppop2;|T(H_(18#@+wsU{&umr^tit^)-9*>dmSvR;U-viR@(`M;!}}NPN&A5lNX-Dvu&c~!!-`y7GN-L$-5EmYggylU)$gapitf5!YIuK-Yg0^wm0FI#$-^9sB+%$-Q_@))M!{@l`ig zRoyi``JqrER-8qRFGi$h@1Lbf$rnDa%}TY++7-F>aV>8!kA>{dNB*}OCmY^&G5Z;| zK3*^Nly=CRQ=hhPU-#Ga0_$mKv6>BYo8R7R_$D*?n^DDG5N`T9>^cm2Kj=HbG1 z+e+DIZ)<)Y`q}CCujBLVoqqnU*xcT!*ke*9+GH(q=kUB&dDp`(Et?NLYVa;|gc-j(X9@ zI#$z@_UW9PkZkTRVzyB;+|Y$>X7D+sc)ia>|7JW$`OtfYGo5wU{|iedU7WCGN2H7~U9 zfwnoJd*97U`DJlt9XC^RU)90ur`1KJo9E?+YQGM=d^St=wW-g>gD=mB*I(k9)3et% zWpe)4Ur&RU?QuG~Qm4N9^{sg3*bO#cn)tUBZ@4RcVP10juOF*(c}vRv>Q8vjrLsAO z$;*-5z|zpj)Wmf1TIV!TV+8{cP{>o@0y7NF4UH@&Yq(g|8ycWV85kOxm|%z*nHgb- n8JnA8h?!WLp@|uqW9l_DH#W8etDF4L#f8I?OI6j?-;E0Z2oV*H