Skip to content

Commit

Permalink
Display $client surname for recurring invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
giacy86 committed Apr 25, 2022
1 parent bc669ef commit d371524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function default_select()
{
$this->db->select("SQL_CALC_FOUND_ROWS ip_invoices.*,
ip_clients.client_name,
ip_clients.client_surname,
ip_invoices_recurring.*,
IF(recur_end_date > date(NOW()) OR recur_end_date = '0000-00-00', 'active', 'inactive') AS recur_status", false);
}
Expand Down
2 changes: 1 addition & 1 deletion application/modules/invoices/views/index_recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</a>
</td>
<td>
<?php echo anchor('clients/view/' . $invoice->client_id, htmlsc($invoice->client_name)); ?>
<?php echo anchor('clients/view/' . $invoice->client_id, format_client($invoice)); ?>
</td>
<td>
<?php echo date_from_mysql($invoice->recur_start_date); ?>
Expand Down

0 comments on commit d371524

Please sign in to comment.