mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Merge pull request #6205 from turbo124/v5-develop
Fixes for client credits
This commit is contained in:
commit
a351b30539
@ -65,8 +65,10 @@ class ClientService
|
||||
return $this->client->credits()
|
||||
->where('is_deleted', false)
|
||||
->where('balance', '>', 0)
|
||||
->whereDate('due_date', '<=', now()->format('Y-m-d'))
|
||||
->orWhere('due_date', NULL)
|
||||
->where(function ($query){
|
||||
$query->whereDate('due_date', '<=', now()->format('Y-m-d'))
|
||||
->orWhereNull('due_date');
|
||||
})
|
||||
->orderBy('created_at','ASC');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user