mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for upcoming filters
This commit is contained in:
parent
6f9969fc07
commit
ce77fb4270
@ -131,7 +131,7 @@ class InvoiceFilters extends QueryFilters
|
|||||||
*/
|
*/
|
||||||
public function upcoming(): Builder
|
public function upcoming(): Builder
|
||||||
{
|
{
|
||||||
return $this->builder
|
return $this->builder->whereIn('status_id', [Invoice::STATUS_PARTIAL, Invoice::STATUS_SENT])
|
||||||
->where(function ($query) {
|
->where(function ($query) {
|
||||||
$query->whereNull('due_date')
|
$query->whereNull('due_date')
|
||||||
->orWhere('due_date', '>', now());
|
->orWhere('due_date', '>', now());
|
||||||
|
Loading…
Reference in New Issue
Block a user