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