From 15b3e542a3cfdb761c3a6bd3d1e4405b95d8dc24 Mon Sep 17 00:00:00 2001 From: Raju Shrestha Date: Mon, 26 Aug 2024 13:04:47 +0545 Subject: [PATCH] edit balance sheet --- .../views/accounts/balancesheet_new.php | 440 ++++++++++-------- .../views/accounts/balancesheet_newbackup.php | 405 ++++++++++++++++ 2 files changed, 650 insertions(+), 195 deletions(-) create mode 100644 account/application/views/accounts/balancesheet_newbackup.php diff --git a/account/application/views/accounts/balancesheet_new.php b/account/application/views/accounts/balancesheet_new.php index 893727b..9ccdcca 100644 --- a/account/application/views/accounts/balancesheet_new.php +++ b/account/application/views/accounts/balancesheet_new.php @@ -3,13 +3,110 @@ $this->load->library("BIBAccounts"); $BIBAccounts = new BIBAccounts(); ?>
@@ -37,11 +134,7 @@ $BIBAccounts = new BIBAccounts();
- +
> @@ -70,14 +163,7 @@ $BIBAccounts = new BIBAccounts(); - - +
@@ -94,58 +180,7 @@ $BIBAccounts = new BIBAccounts(); - + @@ -156,32 +191,34 @@ $BIBAccounts = new BIBAccounts();
-
+
+ +
false, - 'showOB' => false, - 'showClosing' => true, - 'showPeriod' => false, - ); - ?> - - - - - - - - - - - - - + +
LiabilitiesAmountAssetsAmount
+ // echo $_POST['showClosing']; + $ReportOptions = array( + 'showZeroBalances' => false, + 'showOB' => false, + 'showClosing' => true, + 'showPeriod' => false, + ); + ?> + getAccountGroupsWithBalances(2); ?> + +
+
+ + + + + + + + + getAccountGroupsWithBalances(2); ?> -
ParticularsAmount
- closing_balance; ?> -
- - + getAccountGroupsWithBalances(5); ?> - getAccountGroupsWithBalances(5); ?> - closing_balance; ?> -
-
+ + +
+
+
+
+
+ + + + + + + + getAccountGroupsWithBalances(1); ?> -
ParticularsAmount
+ posting_side == "CR") ? $group->closing_balance : 0; ?> -
- - + + + + + +
+
+
+ getAccountGroupsWithBalances(4)); $TotalIncomes = $BIBAccounts->getAccountGroupsWithBalances(3)[0]->closing_balance; @@ -289,22 +342,15 @@ $BIBAccounts = new BIBAccounts(); $Side1Total += $PL; ?> - - + -
- - - -
Total Profit/Loss
-
-
- +
- + @@ -312,9 +358,9 @@ $BIBAccounts = new BIBAccounts();
Total AmountTotal Amount
- +
- + @@ -322,92 +368,96 @@ $BIBAccounts = new BIBAccounts();
Total AmountTotal Amount
- getAccountGroupsWithBalances($acgroup_id = null)); - ?> + +
+ + + + + +
+
- - - - - + + + + + - - - -load->library("BIBAccounts"); +$BIBAccounts = new BIBAccounts(); +?> + +
+
+
+
+
+

+
+
+ +
+ + +
+
+ + + +
+ + +
+ +
+ +
+ +
+
+
+
+
+
+
+ + +
+
+ false, + 'showOB' => false, + 'showClosing' => true, + 'showPeriod' => false, + ); + ?> + + + + + + + + + + + + + + + getAccountGroupsWithBalances(4)); + $TotalIncomes = $BIBAccounts->getAccountGroupsWithBalances(3)[0]->closing_balance; + $TotalExpenses = $BIBAccounts->getAccountGroupsWithBalances(4)[0]->closing_balance; + $PL = $TotalIncomes - $TotalExpenses; + $Side1Total += $PL; + ?> + + + + + + + + +
LiabilitiesAmountAssetsAmount
+ getAccountGroupsWithBalances(2); ?> + + + + + + + + + + + + closing_balance; + ?> + +
acgroup_name; ?>posting_side == "CR") ? $group->closing_balance : 0); ?>
+
+ getRootCategoriesWithBalances($group->acgroup_id); ?> + renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?> +
+
+ + + + getAccountGroupsWithBalances(5); ?> + + + + + + + + + + + closing_balance; + ?> + +
acgroup_name; ?>posting_side == "CR") ? $group->closing_balance : 0); ?>
+
+ getRootCategoriesWithBalances($group->acgroup_id); ?> + renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?> +
+
+
+ getAccountGroupsWithBalances(1); ?> + + + + + + + + + + + posting_side == "DR") ? $group->opening_balance : 0; + $totalOpeningCr += ($group->posting_side == "CR") ? $group->opening_balance : 0; + $totalThisYearDr += ($group->posting_side == "DR") ? $group->regular_balance : 0; + $totalThisYearCr += ($group->posting_side == "CR") ? $group->regular_balance : 0; + $totalClosingDr += ($group->posting_side == "DR") ? $group->closing_balance : 0; + $totalClosingCr += ($group->posting_side == "CR") ? $group->closing_balance : 0; + ?> + +
acgroup_name; ?>posting_side == "DR") ? $group->closing_balance : 0); ?>
+
+ getRootCategoriesWithBalances($group->acgroup_id); ?> + renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?> +
+
+
+ + + + + +
Total Profit/Loss
+
+
+ + + + + +
Total Amount + +
+
+ + + + + +
Total Amount + +
+
+ getAccountGroupsWithBalances($acgroup_id = null)); + ?> +
+
+
+
+
+
+
+ + + + + + +