fixes for upcoming

This commit is contained in:
David Bomba 2023-12-09 11:03:31 +11:00
parent 6727f602a1
commit 1f2d608742

View File

@ -153,10 +153,10 @@ class InvoiceFilters extends QueryFilters
$query->whereNull('due_date')
->orWhere(function ($q) {
$q->where('due_date', '>=', now()->startOfDay()->subSecond())->where('partial', 0);
$q->where('due_date', '>=', now()->startOfDay()->subSecond())->where('partial', 0)->company();
})
->orWhere(function ($q) {
$q->where('partial_due_date', '>=', now()->startOfDay()->subSecond())->where('partial', '>', 0);
$q->where('partial_due_date', '>=', now()->startOfDay()->subSecond())->where('partial', '>', 0)->company();
});
})