Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to client in reports #771

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading