diff --git a/account/application/controllers/Welcome.php b/account/application/controllers/Welcome.php index 9824f58..6e2f7e6 100644 --- a/account/application/controllers/Welcome.php +++ b/account/application/controllers/Welcome.php @@ -241,5 +241,8 @@ class Welcome extends CI_Controller if ($query->num_rows() == 0) { $this->db->query("ALTER TABLE tbl_accounts ADD COLUMN account_bank VARCHAR(50)"); } + + $this->db->query("ALTER TABLE tbl_translations MODIFY COLUMN nepali VARCHAR(255) COLLATE utf8_unicode_ci"); + } } diff --git a/account/application/controllers/accounts/Ledger.php b/account/application/controllers/accounts/Ledger.php index c4f77f5..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']; @@ -75,15 +77,19 @@ class Ledger extends CI_Controller loadView("accounts/daybook", $data); break; case 'bank_book': + $data['fiscalStart'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_from); + $data['fiscalEnd'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_to); $data['pageTitle'] = "Bank Book"; loadView("accounts/ledger_bankbook", $data); break; case 'cash_book': + $data['fiscalStart'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_from); + $data['fiscalEnd'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_to); $data['pageTitle'] = "Cash Book"; loadView("accounts/ledger_cashbook", $data); break; case 'receiveables': - $data['pageTitle'] = "Accounts Receiveables"; + $data['pageTitle'] = "Accounts Receivables"; loadView("accounts/ledger_receiveables", $data); break; case 'payables': diff --git a/account/application/controllers/accounts/Reports.php b/account/application/controllers/accounts/Reports.php index f6003ca..41df1a9 100644 --- a/account/application/controllers/accounts/Reports.php +++ b/account/application/controllers/accounts/Reports.php @@ -116,7 +116,7 @@ class Reports extends CI_Controller break; case 'balance_by_ledger': $accategory_id = 0; - $data['pageTitle'] = "Account Balances By Group"; + $data['pageTitle'] = "Account Balances By Ledgers"; if (isset($_GET['group'])) { $accategory_id = ($_GET['group']) ? $_GET['group'] : 0; } 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/controllers/inventory/Stocks.php b/account/application/controllers/inventory/Stocks.php index 0df951c..2bbf4fc 100644 --- a/account/application/controllers/inventory/Stocks.php +++ b/account/application/controllers/inventory/Stocks.php @@ -57,6 +57,8 @@ class Stocks extends CI_Controller loadView("inventory/stocks/add", $data); break; case 'summary': + $data['fiscalStart'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_from); + $data['fiscalEnd'] = NepaliDate($this->session->userdata['FiscalYear']->fiscalyear_to); $data['StockRecords'] = $this->MStocks->getStockSummary(); // pre($data['StockRecords']); loadView("inventory/stocks/summary", $data); diff --git a/account/application/helpers/bibhelper_helper.php b/account/application/helpers/bibhelper_helper.php index f7d9e56..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 = "") -