1
0
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:
David Bomba 2023-06-03 09:23:52 +10:00
parent cf1e819a11
commit db6349fa15

View File

@ -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.
* *