mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Chart updates'
This commit is contained in:
parent
bf2475d0ee
commit
52cac9ddea
@ -128,6 +128,7 @@ trait ChartQueries
|
|||||||
return DB::select(DB::raw("
|
return DB::select(DB::raw("
|
||||||
SELECT
|
SELECT
|
||||||
sum(invoices.paid_to_date) as paid_to_date,
|
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
|
IFNULL(JSON_EXTRACT( settings, '$.currency_id' ), :company_currency) AS currency_id
|
||||||
FROM clients
|
FROM clients
|
||||||
JOIN invoices
|
JOIN invoices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user