mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Adjustment for credit balance calculations
This commit is contained in:
parent
064b9c4e67
commit
10c316792b
@ -95,7 +95,6 @@ class ClientService
|
|||||||
{
|
{
|
||||||
$credits = Credit::withTrashed()->where('client_id', $this->client->id)
|
$credits = Credit::withTrashed()->where('client_id', $this->client->id)
|
||||||
->where('is_deleted', false)
|
->where('is_deleted', false)
|
||||||
->where('balance', '>', 0)
|
|
||||||
->where(function ($query) {
|
->where(function ($query) {
|
||||||
$query->whereDate('due_date', '<=', now()->format('Y-m-d'))
|
$query->whereDate('due_date', '<=', now()->format('Y-m-d'))
|
||||||
->orWhereNull('due_date');
|
->orWhereNull('due_date');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user