mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add "uninvoiced" Task Filter
Allow to filter Tasks for those that are not yet invoiced
This commit is contained in:
parent
e078b9637b
commit
1a135c32a4
@ -60,6 +60,7 @@ class TaskFilters extends QueryFilters
|
|||||||
* Statuses we need to handle
|
* Statuses we need to handle
|
||||||
* - all
|
* - all
|
||||||
* - invoiced
|
* - invoiced
|
||||||
|
* - uninvoiced
|
||||||
*
|
*
|
||||||
* @param string $value The invoice status as seen by the client
|
* @param string $value The invoice status as seen by the client
|
||||||
* @return Builder
|
* @return Builder
|
||||||
@ -80,6 +81,10 @@ class TaskFilters extends QueryFilters
|
|||||||
$this->builder->whereNotNull('invoice_id');
|
$this->builder->whereNotNull('invoice_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array('uninvoiced', $status_parameters)) {
|
||||||
|
$this->builder->whereNull('invoice_id');
|
||||||
|
}
|
||||||
|
|
||||||
return $this->builder;
|
return $this->builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user