Fixes #601
This commit is contained in:
parent
e3e497bb8c
commit
c91b15590c
1 changed files with 1 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ class InvoiceRepository extends BaseRepository
|
|||
->where('invoices.is_deleted', '=', false)
|
||||
->where('clients.deleted_at', '=', null)
|
||||
->where('invoices.is_recurring', '=', false)
|
||||
->where('invoices.invoice_status_id', '>=', INVOICE_STATUS_SENT)
|
||||
->select(
|
||||
DB::raw('COALESCE(clients.currency_id, accounts.currency_id) currency_id'),
|
||||
DB::raw('COALESCE(clients.country_id, accounts.country_id) country_id'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue