Added Recurring grand total to the bottom of Recurring income by client

This commit is contained in:
johnnyq 2023-01-09 15:10:23 -05:00
parent cdbe930f95
commit 607915f0f1
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,7 @@ $sql_clients = mysqli_query($mysqli,"SELECT * FROM clients WHERE company_id = $s
$recurring_yearly_total = $row['recurring_yearly_total'] / 12;
$recurring_monthly = $recurring_monthly_total + $recurring_yearly_total;
$recurring_total = $recurring_total + $recurring_monthly;
if($recurring_monthly > 0){
@ -53,6 +54,10 @@ $sql_clients = mysqli_query($mysqli,"SELECT * FROM clients WHERE company_id = $s
}
}
?>
<tr>
<th>Total</th>
<td class="text-right"><?php echo numfmt_format_currency($currency_format, $recurring_total, $session_company_currency); ?></td>
</tr>
</tbody>
</table>
</div>