changes
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
$drWidth = 250;
|
||||
$crWidth = 250;
|
||||
$balanceWidth = 250;
|
||||
|
||||
$AccountCategories = $this->myaccounts->getChildAccountCategories();
|
||||
?>
|
||||
<style>
|
||||
@ -34,9 +36,11 @@ $AccountCategories = $this->myaccounts->getChildAccountCategories();
|
||||
<?php
|
||||
$drTotal = 0;
|
||||
$crTotal = 0;
|
||||
$balanceTotal = 0;
|
||||
foreach ($AccountCategories as $AccountCategory) :
|
||||
$drTotal += $AccountCategory->dr;
|
||||
$crTotal += $AccountCategory->cr;
|
||||
$balanceTotal += $AccountCategory->Balance
|
||||
?>
|
||||
<!-- <?php //print_r($AccountCategory);die; ?> -->
|
||||
<tr>
|
||||
@ -46,7 +50,7 @@ $AccountCategories = $this->myaccounts->getChildAccountCategories();
|
||||
</a>
|
||||
</td>
|
||||
<td width="<?php echo $drWidth; ?>"><?php echo myCurrency($AccountCategory->dr); ?></td>
|
||||
<td width="<?php echo $crWidth; ?>"><?php echo myCurrency($AccountCategory->cr); ?></td>
|
||||
<td width="<?php echo $crWidth; ?>"><?php echo myCurrency(abs($AccountCategory->cr)); ?></td>
|
||||
<td class="text-right"><?php echo myCurrency($AccountCategory->Balance); ?></td>
|
||||
<td class="text-center"><a href="<?php echo site_url("accounts/reports/balance_by_ledger") . "?group=" . $AccountCategory->accategory_id; ?>" class="btn btn-info btn-xs"><i class="fas fa-eye"></i> </a></td>
|
||||
</tr>
|
||||
@ -56,8 +60,8 @@ $AccountCategories = $this->myaccounts->getChildAccountCategories();
|
||||
<tr>
|
||||
<th>Total</th>
|
||||
<td width="<?php echo $drWidth; ?>"><?php echo myCurrency($drTotal); ?></td>
|
||||
<td width="<?php echo $crWidth; ?>"><?php echo myCurrency($crTotal); ?></td>
|
||||
<td ></td>
|
||||
<td width="<?php echo $crWidth; ?>"><?php echo myCurrency(abs($crTotal)); ?></td>
|
||||
<td class="text-right"><?php echo myCurrency($balanceTotal); ?></td>
|
||||
<td ></td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
Reference in New Issue
Block a user