This commit is contained in:
Raju Shrestha
2024-08-08 18:24:25 +05:45
parent 9f5ba32db2
commit c30c5ddcb2
16 changed files with 233 additions and 239 deletions

View File

@ -91,6 +91,9 @@ $PL = $IncomesTotal - $ExpensesTotal;
box-shadow: inset 0 0 0 transparent;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.table.table-head-fixed thead tr:nth-child(1) th{
padding-left: 6px;;
}
</style>
@ -104,7 +107,7 @@ $PL = $IncomesTotal - $ExpensesTotal;
<div class="card card-primary card-outline ">
<div class="card-header">
<h3 class="card-title">Receipts And Payments <?php //echo $pageTitle;
<h3 class="card-title mt-1">Receipts And Payments <?php //echo $pageTitle;
?> </h3>
<div class="card-tools">
@ -156,7 +159,10 @@ $PL = $IncomesTotal - $ExpensesTotal;
</div>
</div>
<div class="dropdown-divider"></div>
<button type="submit" class="btn btn-primary mr-2 text-center">Search Now</button>
<div class="form-group p-2 pb-0">
<button type="button" class="btn btn-info btn-sm " onclick="resetForm()">Reset</button>
<button type="submit" class="btn btn-primary mr-2 btn-sm text-center">Search </button>
</div>
</div>
</div>
<div class="btn-group">
@ -172,7 +178,7 @@ $PL = $IncomesTotal - $ExpensesTotal;
<a href="#" class="dropdown-item">View calendar</a>
</div> -->
</div>
<button type="button" class="btn btn-warning btn-sm" onclick="resetForm()">Reset</button>
<!-- <button type="button" class="btn btn-warning btn-sm" onclick="resetForm()">Reset</button> -->
<!-- <button class="btn btn-secondary toggle-collapse btn-sm" id="toggleShowAll">Toggle Collapse</button> -->
@ -259,10 +265,10 @@ $PL = $IncomesTotal - $ExpensesTotal;
<tr>
<th class="" width="35%"><?php myLang("Receipts"); ?></th>
<th class="text-right" width="15%"></th>
<th class="text-right" width="15%"><?php myLang("Amount"); ?></th>
<th class="text-right pr-2" width="15%"><?php myLang("Amount"); ?></th>
<th class="" width="35%"><?php echo myLang("Payments"); ?></th>
<th class="text-right" width="15%"></th>
<th class="text-right" width="15%"><?php myLang("Amount"); ?></th>
<th class="text-right pr-2" width="15%"><?php myLang("Amount"); ?></th>
</tr>
</thead>
<tbody>
@ -282,15 +288,15 @@ $PL = $IncomesTotal - $ExpensesTotal;
<?php elseif ($Incomes['account'] == "CATEGORY TOTAL") : ?>
<tr>
<td class="" width="70%"><b><?php echo $Incomes['category']; ?></b></td>
<td class="text-right" width="15%"><?php echo myCurrency($Incomes['amount']); ?></td>
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Incomes['amount']); ?></td>
<td width="15%"></td>
</tr>
<?php else : ?>
<?php $total1 += $Incomes['amount']; ?>
<tr>
<td class="" width="70%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $Incomes['account']; ?></td>
<td class="pr-2" width="70%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $Incomes['account']; ?></td>
<td width="15%"></td>
<td class="text-right" width="15%"><?php echo myCurrency($Incomes['amount']); ?></td>
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Incomes['amount']); ?></td>
</tr>
<?php endif; ?>
@ -313,8 +319,8 @@ $PL = $IncomesTotal - $ExpensesTotal;
</tr-->
<?php elseif ($Expenses['account'] == "CATEGORY TOTAL") : ?>
<tr>
<td class="" width="70%"><b><?php echo $Expenses['category']; ?></b></td>
<td class="text-right" width="15%"><?php echo myCurrency($Expenses['amount']); ?></td>
<td class="pr-2" width="70%"><b><?php echo $Expenses['category']; ?></b></td>
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Expenses['amount']); ?></td>
<td width="15%"></td>
</tr>
@ -324,7 +330,7 @@ $PL = $IncomesTotal - $ExpensesTotal;
<tr>
<td class="" width="70%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $Expenses['account']; ?></td>
<td width="15%"></td>
<td class="text-right" width="15%"><?php echo myCurrency($Expenses['amount']); ?></td>
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Expenses['amount']); ?></td>
</tr>
@ -340,9 +346,9 @@ $PL = $IncomesTotal - $ExpensesTotal;
<?php $balance_fi = $total1 - $total; ?>
<?php if ($balance_fi < 0) : $total1 += $balance_fi; ?>
<tr>
<th><?php echo myLang("Closing Balance"); ?></th>
<th class="pl-2"><?php echo myLang("Closing Balance"); ?></th>
<th></th>
<td><span class="text-red"><?php echo myCurrency($balance_fi); ?></span></td>
<td><span class="text-red pr-2"><?php echo myCurrency($balance_fi); ?></span></td>
<th></th>
<th></th>
<td></td>
@ -352,20 +358,20 @@ $PL = $IncomesTotal - $ExpensesTotal;
<th></th>
<th></th>
<td></td>
<th><?php echo myLang("Closing Balance"); ?></th>
<th class="pl-2"><?php echo myLang("Closing Balance"); ?></th>
<th></th>
<td><?php echo myCurrency($balance_fi); ?></td>
<td class="pr-2"><?php echo myCurrency($balance_fi); ?></td>
</tr>
<?php endif; ?>
<tr>
<th>Total</th>
<th class="pl-2">Total</th>
<th></th>
<td><?php echo myCurrency($total1); ?></td>
<th>Total</th>
<td class="pr-2"><?php echo myCurrency($total1); ?></td>
<th class="pl-2">Total</th>
<th></th>
<td><?php echo myCurrency($total); ?></td>
<td class="pr-2"><?php echo myCurrency($total); ?></td>
</tr>
</tbody>