balancesheet

This commit is contained in:
Sampanna Rimal 2024-08-26 17:17:43 +05:45
parent 31e7f8de87
commit 497f567cba

View File

@ -191,7 +191,7 @@ $BIBAccounts = new BIBAccounts();
<!-- <button class="btn btn-secondary toggle-collapse mr-2" id="toggleShowAll">Toggle Collapse</button> -->
<div class="card card-primary card-outline">
<div class="card-body pl-2 pr-2">
<div class="card-body pl-2 ">
<div class="row">
<?php
@ -205,9 +205,9 @@ $BIBAccounts = new BIBAccounts();
?>
<?php $AccountGroups = $BIBAccounts->getAccountGroupsWithBalances(2); ?>
<?php $Side1Total = 0; ?>
<div class="col-6 p-0">
<div class="col-6 p-0 m-0 gy-0">
<div class="table-responsive">
<table class="table">
<table class="table mb-0 pb-0">
<thead>
<tr>
<th class="group-name pl-1">Particulars</th>
@ -281,9 +281,9 @@ $BIBAccounts = new BIBAccounts();
</table>
</div>
</div>
<div class="col-6 p-0">
<div class="col-6 p-0 m-0">
<div class="table-responsive">
<table class="table">
<table class="table mt-0 pt-0">
<thead>
<tr>
<th class="group-name pl-1">Particulars</th>
@ -305,7 +305,7 @@ $BIBAccounts = new BIBAccounts();
<?php foreach ($AccountGroups as $group) : ?>
<tr class="group-heading" data-toggle="collapse" data-target="#group_<?php echo $group->acgroup_id; ?>">
<td class="group-name"><b><?php echo $group->acgroup_name; ?></b></td>
<td class="group-total text-right pr-2"><?php echo myCurrency(($group->posting_side == "DR") ? $group->closing_balance : 0); ?></td>
<td class="group-total text-right "><?php echo myCurrency(($group->posting_side == "DR") ? $group->closing_balance : 0); ?></td>
</tr>
<tr>
<td colspan="7" class="group-details p-0">
@ -332,8 +332,6 @@ $BIBAccounts = new BIBAccounts();
</table>
</div>
</div>
<div class="col-12 p-0">
<table class="table">
<?php
// pre($BIBAccounts->getAccountGroupsWithBalances(4));
$TotalIncomes = $BIBAccounts->getAccountGroupsWithBalances(3)[0]->closing_balance;
@ -341,6 +339,61 @@ $BIBAccounts = new BIBAccounts();
$PL = $TotalIncomes - $TotalExpenses;
$Side1Total += $PL;
?>
<div class="col-6 p-0 m-0 gy-0">
<table class="table">
<tr>
<td><b> Profit/Loss</b></td>
<td class="cr closing-cr"><?php echo myCurrency($PL); ?></td>
</tr>
<tr>
<td colspan="2" class="p-0">
<table class="table">
<tr>
<th class="pl-1">Total Amount</th>
<th class="cr closing-cr">
<?php echo myCurrency($Side1Total); ?>
</th>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="col-6 p-0 m-0 gy-0">
<table class="table">
<tr>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
<tr>
<td colspan="2" class="p-0">
<table class="table">
<tr>
<th class="pl-1">Total Amount</th>
<th class="dr closing-dr">
<?php echo myCurrency($totalClosingDr); ?>
</th>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!-- <div class="col-12 p-0">
<table class="table">
<?php
// pre($BIBAccounts->getAccountGroupsWithBalances(4));
// $TotalIncomes = $BIBAccounts->getAccountGroupsWithBalances(3)[0]->closing_balance;
// $TotalExpenses = $BIBAccounts->getAccountGroupsWithBalances(4)[0]->closing_balance;
// $PL = $TotalIncomes - $TotalExpenses;
// $Side1Total += $PL;
?>
<tr>
<td>Total Profit/Loss</td>
<td class="cr closing-cr"><?php echo myCurrency($PL); ?></td>
@ -369,7 +422,7 @@ $BIBAccounts = new BIBAccounts();
</td>
</tr>
</table>
</div>
</div> -->