From 52cac9ddea3b8e32c74016d8e0a74ec8da8247e9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 12 May 2023 09:37:35 +1000 Subject: [PATCH] Chart updates' --- app/Services/Chart/ChartQueries.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Services/Chart/ChartQueries.php b/app/Services/Chart/ChartQueries.php index 903c7fa126bf..b41360ff6320 100644 --- a/app/Services/Chart/ChartQueries.php +++ b/app/Services/Chart/ChartQueries.php @@ -128,6 +128,7 @@ trait ChartQueries return DB::select(DB::raw(" SELECT sum(invoices.paid_to_date) as paid_to_date, + sum(invoices.amount) as invoiced_amount, IFNULL(JSON_EXTRACT( settings, '$.currency_id' ), :company_currency) AS currency_id FROM clients JOIN invoices