mirror of https://github.com/itflow-org/itflow
Merge branch '0.1.8.4' of https://github.com/twetech/itflow into 0.1.8.4
This commit is contained in:
commit
466fbc03ca
|
|
@ -66,7 +66,7 @@ validateAccountantRole();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="client_overview.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a></td>
|
<td><a href="client_statement.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a></td>
|
||||||
<td class="text-right"><?php echo numfmt_format_currency($currency_format, $balance, $session_company_currency); ?></td>
|
<td class="text-right"><?php echo numfmt_format_currency($currency_format, $balance, $session_company_currency); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,16 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
$processed_clients = []; // Array to keep track of processed client IDs
|
||||||
|
|
||||||
while ($row = mysqli_fetch_assoc($result_client_balance_report)) {
|
while ($row = mysqli_fetch_assoc($result_client_balance_report)) {
|
||||||
$client_id = intval($row['client_id']);
|
$client_id = intval($row['client_id']);
|
||||||
|
// Skip this row if we've already processed this client ID
|
||||||
|
if (in_array($client_id, $processed_clients)) {
|
||||||
|
continue; // Skip to the next iteration of the loop
|
||||||
|
} // Add the client ID to the array of processed clients
|
||||||
|
$processed_clients[] = $client_id;
|
||||||
|
|
||||||
$client_name = nullable_htmlentities($row['client_name']);
|
$client_name = nullable_htmlentities($row['client_name']);
|
||||||
$balance = floatval($row['balance']);
|
$balance = floatval($row['balance']);
|
||||||
$billing_contact_phone = formatPhoneNumber($row['billing_contact_phone']);
|
$billing_contact_phone = formatPhoneNumber($row['billing_contact_phone']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue