mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Add group filter
This commit is contained in:
parent
cf1e819a11
commit
db6349fa15
@ -106,6 +106,15 @@ class ClientFilters extends QueryFilters
|
|||||||
return $this->builder->where('number', $number);
|
return $this->builder->where('number', $number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function group(string $group_id = ''): Builder
|
||||||
|
{
|
||||||
|
if (strlen($group_id) == 0) {
|
||||||
|
return $this->builder;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->builder->where('group_settings_id', $group_id);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter based on search text.
|
* Filter based on search text.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user