Started using new php function for Currency formatting as this is best preactice, removed Client Access and removed certian user roles

This commit is contained in:
johnnyq
2022-02-17 17:41:30 -05:00
parent fcb55a9eed
commit f2f9f22545
11 changed files with 32 additions and 131 deletions

View File

@@ -122,10 +122,10 @@ $vendors_added = $row['vendors_added'];
<!-- small box -->
<a class="small-box bg-primary" href="payments.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
<div class="inner">
<h3><?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($total_income,2); ?></h3>
<h3><?php echo numfmt_format_currency($currency_format, $total_income, "$session_company_currency"); ?></h3>
<p>Income</p>
<hr>
<small>Receivables: <?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($receivables,2); ?></small>
<small>Receivables: <?php echo numfmt_format_currency($currency_format, $receivables, "$session_company_currency"); ?></h3></small>
</div>
<div class="icon">
<i class="fa fa-money-check"></i>
@@ -138,7 +138,7 @@ $vendors_added = $row['vendors_added'];
<!-- small box -->
<a class="small-box bg-danger" href="expenses.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
<div class="inner">
<h3><?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($total_expenses,2); ?></h3>
<h3><?php echo numfmt_format_currency($currency_format, $total_expenses, "$session_company_currency"); ?></h3>
<p>Expenses</p>
</div>
<div class="icon">
@@ -152,7 +152,7 @@ $vendors_added = $row['vendors_added'];
<!-- small box -->
<div class="small-box bg-success">
<div class="inner">
<h3><?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($profit,2); ?></h3>
<h3><?php echo numfmt_format_currency($currency_format, $profit, "$session_company_currency"); ?></h3>
<p>Profit</p>
</div>
<div class="icon">
@@ -166,7 +166,7 @@ $vendors_added = $row['vendors_added'];
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h3><?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($recurring_monthly_total,2); ?></h3>
<h3><?php echo numfmt_format_currency($currency_format, $recurring_monthly_total, "$session_company_currency"); ?></h3>
<p>Monthly Recurring</p>
</div>
<div class="icon">
@@ -180,7 +180,7 @@ $vendors_added = $row['vendors_added'];
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h3><?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($recurring_yearly_total,2); ?></h3>
<h3><?php echo numfmt_format_currency($currency_format, $recurring_yearly_total, "$session_company_currency"); ?></h3>
<p>Yearly Recurring</p>
</div>
<div class="icon">
@@ -359,7 +359,7 @@ $vendors_added = $row['vendors_added'];
$balance = '0.00';
}
?>
<td class="text-right"><?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($balance,2); ?></td>
<td class="text-right"><?php echo numfmt_format_currency($currency_format, $balance, "$session_company_currency"); ?></td>
</tr>
<?php
}
@@ -403,7 +403,7 @@ $vendors_added = $row['vendors_added'];
<td><?php echo $payment_date; ?></td>
<td><?php echo $client_name; ?></td>
<td><?php echo "$invoice_prefix$invoice_number"; ?></td>
<td class="text-right"><?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($payment_amount,2); ?></td>
<td class="text-right"><?php echo numfmt_format_currency($currency_format, $payment_amount, "$session_company_currency"); ?></td>
</tr>
<?php
}
@@ -446,7 +446,7 @@ $vendors_added = $row['vendors_added'];
<td><?php echo $expense_date; ?></td>
<td><?php echo $vendor_name; ?></td>
<td><?php echo $category_name; ?></td>
<td class="text-right"><?php echo get_currency_symbol($session_company_currency); ?> <?php echo number_format($expense_amount,2); ?></td>
<td class="text-right"><?php echo numfmt_format_currency($currency_format, $expense_amount, "$session_company_currency"); ?></td>
</tr>
<?php
}