mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 19:34:52 +00:00
small UI update on tax summary
This commit is contained in:
@@ -17,7 +17,7 @@ $sql_tax = mysqli_query($mysqli,"SELECT * FROM taxes WHERE company_id = $session
|
|||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card card-dark">
|
||||||
<div class="card-header py-2">
|
<div class="card-header py-2">
|
||||||
<h3 class="card-title mt-2"><i class="fa fa-fw fa-balance-scale"></i> Tax Summary</h3>
|
<h3 class="card-title mt-2"><i class="fa fa-fw fa-balance-scale"></i> Collected Tax Summary</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print"></i> Print</button>
|
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print"></i> Print</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -42,17 +42,13 @@ $sql_tax = mysqli_query($mysqli,"SELECT * FROM taxes WHERE company_id = $session
|
|||||||
<table class="table table-sm">
|
<table class="table table-sm">
|
||||||
<thead class="text-dark">
|
<thead class="text-dark">
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th>Tax</th>
|
||||||
<th class="text-right">Jan-Mar</th>
|
<th class="text-right">Jan-Mar</th>
|
||||||
<th class="text-right">Apr-Jun</th>
|
<th class="text-right">Apr-Jun</th>
|
||||||
<th class="text-right">Jul-Sep</th>
|
<th class="text-right">Jul-Sep</th>
|
||||||
<th class="text-right">Oct-Dec</th>
|
<th class="text-right">Oct-Dec</th>
|
||||||
<th class="text-right">Total</th>
|
<th class="text-right">Total</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<th><br><br>Tax</th>
|
|
||||||
<th colspan="5"></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
@@ -232,22 +228,6 @@ $sql_tax = mysqli_query($mysqli,"SELECT * FROM taxes WHERE company_id = $session
|
|||||||
|
|
||||||
<th class="text-right">$<?php echo number_format($total_expenses_for_all_four_quarters,2); ?></th>
|
<th class="text-right">$<?php echo number_format($total_expenses_for_all_four_quarters,2); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<?php
|
|
||||||
$net_profit_quarter_one = $payment_total_amount_for_quarter_one - $expense_total_amount_for_quarter_one;
|
|
||||||
$net_profit_quarter_two = $payment_total_amount_for_quarter_two - $expense_total_amount_for_quarter_two;
|
|
||||||
$net_profit_quarter_three = $payment_total_amount_for_quarter_three - $expense_total_amount_for_quarter_three;
|
|
||||||
$net_profit_quarter_four = $payment_total_amount_for_quarter_four - $expense_total_amount_for_quarter_four;
|
|
||||||
$net_profit_year = $total_payments_for_all_four_quarters - $total_expenses_for_all_four_quarters;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<th>Net Profit</th>
|
|
||||||
<th class="text-right">$<?php echo number_format($net_profit_quarter_one,2); ?></th>
|
|
||||||
<th class="text-right">$<?php echo number_format($net_profit_quarter_two,2); ?></th>
|
|
||||||
<th class="text-right">$<?php echo number_format($net_profit_quarter_three,2); ?></th>
|
|
||||||
<th class="text-right">$<?php echo number_format($net_profit_quarter_four,2); ?></th>
|
|
||||||
<th class="text-right">$<?php echo number_format($net_profit_year,2); ?></th>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user