Fixes for credit table filtering

This commit is contained in:
David Bomba 2021-12-12 07:55:35 +11:00
parent 86fb3af56b
commit 95f0926734

View File

@ -42,8 +42,8 @@ class CreditsTable extends Component
->where('is_deleted', 0)
->where(function ($query){
$query->whereDate('due_date', '>=', now())
->orWhereNull('due_date')
->orWhere('due_date', '=', '');
->orWhereNull('due_date');
//->orWhere('due_date', '=', '');
})
->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc')
->withTrashed()