Query cleanup

This commit is contained in:
David Bomba 2022-01-21 17:07:50 +11:00
parent 4ed115143f
commit 9715caeff0

View File

@ -103,7 +103,6 @@ trait ChartQueries
return DB::select( DB::raw(" return DB::select( DB::raw("
SELECT SELECT
-- sum(invoices.balance) as balance,
sum(invoices.amount) as total, sum(invoices.amount) as total,
invoices.date, invoices.date,
IFNULL(CAST(JSON_EXTRACT( settings, '$.currency_id' ) AS SIGNED), :company_currency) AS currency_id IFNULL(CAST(JSON_EXTRACT( settings, '$.currency_id' ) AS SIGNED), :company_currency) AS currency_id