mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for queries
This commit is contained in:
parent
24ce983b6f
commit
f30468cc97
@ -237,7 +237,7 @@ class ProfitLoss
|
||||
sum(invoices.total_taxes) as total_taxes,
|
||||
(sum(invoices.total_taxes) / IFNULL(invoices.exchange_rate, 1)) AS net_converted_taxes,
|
||||
sum(invoices.amount - invoices.total_taxes) as net_amount,
|
||||
IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT( clients.settings, '$.currency_id' )) AS SIGNED), :company_currency) AS currency_id
|
||||
IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT( clients.settings, '$.currency_id' )) AS SIGNED), :company_currency) AS currency_id,
|
||||
(sum(invoices.amount - invoices.total_taxes) / IFNULL(invoices.exchange_rate, 1)) AS net_converted_amount
|
||||
FROM clients
|
||||
JOIN invoices
|
||||
|
Loading…
Reference in New Issue
Block a user