Adjustment for credit balance calculations

This commit is contained in:
David Bomba 2023-01-10 10:48:03 +11:00
parent 064b9c4e67
commit 10c316792b

View File

@ -95,7 +95,6 @@ class ClientService
{
$credits = Credit::withTrashed()->where('client_id', $this->client->id)
->where('is_deleted', false)
->where('balance', '>', 0)
->where(function ($query) {
$query->whereDate('due_date', '<=', now()->format('Y-m-d'))
->orWhereNull('due_date');