mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
add vendor id filter
This commit is contained in:
parent
7cc7c2e546
commit
5790dc8a7b
@ -218,6 +218,15 @@ abstract class QueryFilters
|
||||
return $this->builder->where('client_id', $this->decodePrimaryKey($client_id));
|
||||
}
|
||||
|
||||
public function vendor_id(string $vendor_id = '') :Builder
|
||||
{
|
||||
if (strlen($vendor_id) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
return $this->builder->where('vendor_id', $this->decodePrimaryKey($vendor_id));
|
||||
}
|
||||
|
||||
public function filter_deleted_clients($value)
|
||||
{
|
||||
if ($value == 'true') {
|
||||
|
Loading…
Reference in New Issue
Block a user