Skip to content

Commit

Permalink
Merge pull request #771 from o-psi/add-links-in-reports-to-clients
Browse files Browse the repository at this point in the history
Add link to client in reports
  • Loading branch information
johnnyq authored Oct 16, 2023
2 parents fba1115 + cc9dc4e commit de91afe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion report_clients_with_balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
?>

<tr>
<td><?php echo $client_name; ?></td>
<td><a href="client_overview.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>
</tr>
<?php
Expand Down
2 changes: 1 addition & 1 deletion report_income_by_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
?>

<tr>
<td><?php echo $client_name; ?></td>
<td><a href="client_overview.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a></td>
<td class="text-right"><?php echo numfmt_format_currency($currency_format, $amount_paid, $session_company_currency); ?></td>
</tr>
<?php
Expand Down
4 changes: 2 additions & 2 deletions report_recurring_by_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
validateAccountantRole();

$sql = mysqli_query($mysqli, "
SELECT clients.client_name,
SELECT clients.client_id, clients.client_name,
SUM(CASE WHEN recurring.recurring_frequency = 'month' THEN recurring.recurring_amount
WHEN recurring.recurring_frequency = 'year' THEN recurring.recurring_amount / 12 END) AS recurring_monthly_total
FROM clients
Expand Down Expand Up @@ -45,7 +45,7 @@


<tr>
<td><?php echo $client_name; ?></td>
<td><a href="client_overview.php?client_id=<?php echo $client_id; ?>"><?php echo $client_name; ?></a></td>
<td class="text-right"><?php echo numfmt_format_currency($currency_format, $recurring_monthly_total, $session_company_currency); ?></td>
</tr>
<?php
Expand Down

0 comments on commit de91afe

Please sign in to comment.