From fe8786f03fd5e7ada761f9ca1b74735d9293f7c9 Mon Sep 17 00:00:00 2001 From: Sampanna Rimal Date: Mon, 12 Aug 2024 16:21:46 +0545 Subject: [PATCH] changes --- .../controllers/accounts/Ledger.php | 2 +- .../application/helpers/bibhelper_helper.php | 4 +- account/application/libraries/Myaccounts.php | 8 +- .../views/accounts/accountheads/edit.php | 258 ++++++++++++------ .../views/accounts/balances/bycategory.php | 3 +- .../views/accounts/balances/bygroup.php | 10 +- .../views/accounts/ledger_bankbook.php | 6 +- .../views/accounts/ledger_cashbook.php | 6 +- .../setup/singleentryvoucher/list.php | 2 +- .../views/inventory/items/list.php | 4 +- .../application/views/translations/list.php | 4 +- 11 files changed, 195 insertions(+), 112 deletions(-) diff --git a/account/application/controllers/accounts/Ledger.php b/account/application/controllers/accounts/Ledger.php index c4f77f5..2f8005e 100644 --- a/account/application/controllers/accounts/Ledger.php +++ b/account/application/controllers/accounts/Ledger.php @@ -83,7 +83,7 @@ class Ledger extends CI_Controller 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/helpers/bibhelper_helper.php b/account/application/helpers/bibhelper_helper.php index f7d9e56..ecdbd98 100644 --- a/account/application/helpers/bibhelper_helper.php +++ b/account/application/helpers/bibhelper_helper.php @@ -95,14 +95,14 @@ function getFieldfromValue($tableName, $fieldName, $lookupField, $referenceValue return "N/A"; } } -function fillComboWithValue($fieldName, $displayName, $fieldID, $tableName, $displayField, $valueField, $default = "", $CSSclass = "", $multiple = false, $condition = "") +function fillComboWithValue($fieldName, $displayName, $fieldID, $tableName, $displayField, $valueField, $default = "", $CSSclass = "", $multiple = false, $condition = "", $required=false) { $ci = &get_instance(); ?> - " class="form-control select2 " class="form-control" id="" > 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 .= "
diff --git a/account/application/views/accounts/accountheads/edit.php b/account/application/views/accounts/accountheads/edit.php index 3af678c..4273530 100644 --- a/account/application/views/accounts/accountheads/edit.php +++ b/account/application/views/accounts/accountheads/edit.php @@ -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..be1f1b8 100644 --- a/account/application/views/accounts/balances/bycategory.php +++ b/account/application/views/accounts/balances/bycategory.php @@ -26,9 +26,10 @@ 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 2c93472..a71ea30 100644 --- a/account/application/views/accounts/balances/bygroup.php +++ b/account/application/views/accounts/balances/bygroup.php @@ -1,6 +1,8 @@ myaccounts->getChildAccountCategories(); ?>
' . $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']) . '