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 = "") -
- "> +
+ ">
- " class="form-control select2 " class="form-control" id="" > account_name; @@ -90,6 +91,9 @@ class myaccounts $fields['amount_in_words'] = trim($CI->numbertoword->nepali_word($crTotal)); else $fields['amount_in_words'] = trim($CI->numbertoword->english_word($crTotal)); + + // $fields['narration_' . $i] = $VoucherDetail->narration; + $file = APPPATH . "/../pdf/e_voucher1.pdf"; $pdf = new FPDM($file); //pre($pdf->getContent($file,"PDF")); @@ -205,12 +209,12 @@ class myaccounts $balance = getBalance($Account->account_id); $BalanceTotal += $balance; // pre($Account); - $html .= "" . $Account->account_name . "" . $Account->Category->accategory_name . "" . (($balance >= 0) ? myCurrency($balance) : "") . "" . (($balance < 0) ? myCurrency(abs($balance)) : "") . ""; + $html .= "" . $Account->account_name . "" . $Account->Category->accategory_name . "" . (($balance >= 0) ? myCurrency($balance) : "") . "" . (($balance < 0) ? myCurrency(abs($balance)) : "") . "". myCurrency($balance) .""; endforeach; $html .= ""; - if ($full == "") { - $html .= "Total" . myCurrency($BalanceTotal) . "" . myCurrency($BalanceTotal) . ""; - } + // if ($full == "") { + $html .= "Total" . (($BalanceTotal > 0) ? myCurrency(abs($BalanceTotal )) : "") . "" . (($BalanceTotal < 0) ? myCurrency(abs($BalanceTotal )) : "") . "" . myCurrency($BalanceTotal) . ""; + // } $html .= "\n"; $html .= "
@@ -660,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; @@ -695,6 +699,7 @@ class myaccounts + @@ -772,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(); @@ -997,9 +1018,12 @@ class myaccounts - + - + session->userdata());die; ?> + session->userdata('LoggedUser') != 'admin'): ?> + + @@ -1034,6 +1058,7 @@ class myaccounts + @@ -1112,6 +1137,15 @@ class myaccounts } } + @@ -1204,7 +1238,7 @@ class myaccounts - Narration: narration; ?> + Narration: narration; ?> @@ -1344,7 +1378,7 @@ class myaccounts - diff --git a/account/application/views/accounts/accountheads/edit.php b/account/application/views/accounts/accountheads/edit.php index 3af678c..ecc0d59 100644 --- a/account/application/views/accounts/accountheads/edit.php +++ b/account/application/views/accounts/accountheads/edit.php @@ -34,7 +34,7 @@
- accategory_id, "", false, "status=1"); ?> + accategory_id, "", false, "status=1", $required=true); ?>
@@ -80,76 +80,152 @@ $category_name = getFieldfromValue("tbl_accategories", "accategory_name", "accategory_id", $TableData->accategory_id); ?> -
- - +
+
+ +
+
+ + + +
+
+ +
+
+
+
+
Contact Details:
+
+ + + +
+
+ +
+ +
+ + +
+
+ +
+ +
+ + +
+ + +
+ +
+ +
+ + + +
+ + +
+ +
+ +
+ +
+
+
Tax Information:
+
+
+
+ +
+
+ + + +
+ + +
+ +
+
Mailing Details:
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+
+ +
+
Contact Details:
+
+ + + +
+
+ +
+ +
+ + +
+
+ +
+ +
+ + +
+ + +
+ +
+ +
+ + + +
+ + +
+ +
+ +
+ +
+
+
Account Details:
+
@@ -179,12 +255,14 @@
- -
- + + + +
@@ -224,28 +302,28 @@ \ No newline at end of file diff --git a/account/application/views/accounts/balances/bycategory.php b/account/application/views/accounts/balances/bycategory.php index 94771f3..d72619f 100644 --- a/account/application/views/accounts/balances/bycategory.php +++ b/account/application/views/accounts/balances/bycategory.php @@ -26,9 +26,17 @@ function displayCategoryTree($tree) { echo ''; foreach ($tree as $category) { + // print_r($category);die; echo ''; echo ''; - echo ''; + echo ''; echo ''; echo ''; echo ''; diff --git a/account/application/views/accounts/balances/bygroup.php b/account/application/views/accounts/balances/bygroup.php index 7f57528..a71ea30 100644 --- a/account/application/views/accounts/balances/bygroup.php +++ b/account/application/views/accounts/balances/bygroup.php @@ -1,6 +1,8 @@ myaccounts->getChildAccountCategories(); ?> +
+
+
+ +
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+ + +
+ diff --git a/account/application/views/accounts/balancesheet_new.php b/account/application/views/accounts/balancesheet_new.php index e6afeda..f3005c4 100644 --- a/account/application/views/accounts/balancesheet_new.php +++ b/account/application/views/accounts/balancesheet_new.php @@ -103,40 +103,40 @@ $BIBAccounts = new BIBAccounts();
- +
- +
-
+
- + > - +
> - +
> - +
-
- - +
+ +
@@ -144,6 +144,8 @@ $BIBAccounts = new BIBAccounts(); + - - + + - + +

Cash Flow

+ ?>
@@ -97,40 +110,40 @@ $PL = $IncomesTotal - $ExpensesTotal;
- +
- +
-
+
- + > - +
> - +
> - +
-
- - +
+ +
@@ -145,6 +158,8 @@ $PL = $IncomesTotal - $ExpensesTotal; View calendar
--> + + @@ -214,7 +229,7 @@ $PL = $IncomesTotal - $ExpensesTotal; --> - +
-
+ - + - + - + + +
' . $category['accategory_id'] . '' . $category['accategory_name'] . '' + . ($category['parent_category_id'] == 0 + ? "" + : "") + . $category['accategory_name'] + . "" + . ($category['parent_category_id'] == 0 ? "" : "") + . '' . myCurrency($category['dr']) . '' . myCurrency($category['cr']) . '
     
@@ -272,17 +291,18 @@ $PL = $IncomesTotal - $ExpensesTotal; --> - + - + + - +       - + @@ -335,22 +355,79 @@ $PL = $IncomesTotal - $ExpensesTotal;
- - - \ No newline at end of file + + + \ No newline at end of file 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); } ?>