mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
used PHP number_format() function to make amounts more readable
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo "$account_name"; ?></a></td>
|
||||
<td><?php echo $account_name; ?></a></td>
|
||||
<?php
|
||||
$sql2 = mysqli_query($mysqli,"SELECT SUM(invoice_payment_amount) AS total_payments FROM invoice_payments WHERE account_id = $account_id");
|
||||
$row2 = mysqli_fetch_array($sql2);
|
||||
@@ -37,12 +37,10 @@
|
||||
$row3 = mysqli_fetch_array($sql3);
|
||||
|
||||
$balance = $opening_balance + $row2['total_payments'] - $row3['total_expenses'];
|
||||
if($balance == ''){
|
||||
$balance = '0.00';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right text-monospace">$<?php echo $balance; ?></td>
|
||||
<td class="text-right text-monospace">$<?php echo number_format($balance,2); ?></td>
|
||||
<td>
|
||||
<div class="dropdown dropleft text-center">
|
||||
<button class="btn btn-secondary btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
|
||||
Reference in New Issue
Block a user