mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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));
|
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)
|
public function filter_deleted_clients($value)
|
||||||
{
|
{
|
||||||
if ($value == 'true') {
|
if ($value == 'true') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user