mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
adding filter methods for projects, tasks and vendors
This commit is contained in:
parent
205a0669d8
commit
47d9ccf573
@ -127,6 +127,11 @@ class CreditFilters extends QueryFilters
|
||||
});
|
||||
}
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
*
|
||||
|
@ -146,6 +146,11 @@ class ExpenseFilters extends QueryFilters
|
||||
});
|
||||
}
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
*
|
||||
|
@ -80,6 +80,11 @@ class ProjectFilters extends QueryFilters
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
|
@ -132,6 +132,11 @@ class PurchaseOrderFilters extends QueryFilters
|
||||
});
|
||||
}
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
*
|
||||
|
@ -138,9 +138,9 @@ class QuoteFilters extends QueryFilters
|
||||
});
|
||||
}
|
||||
|
||||
public function number($number = '')
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', 'like', '%'.$number.'%');
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -84,6 +84,11 @@ class RecurringExpenseFilters extends QueryFilters
|
||||
});
|
||||
}
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
*
|
||||
|
@ -120,6 +120,11 @@ class RecurringInvoiceFilters extends QueryFilters
|
||||
});
|
||||
}
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
*
|
||||
|
@ -79,6 +79,11 @@ class RecurringQuoteFilters extends QueryFilters
|
||||
});
|
||||
}
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
*
|
||||
|
@ -123,6 +123,11 @@ class TaskFilters extends QueryFilters
|
||||
|
||||
return $this->builder->where('project_id', $this->decodePrimaryKey($project));
|
||||
}
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
|
@ -89,6 +89,12 @@ class VendorFilters extends QueryFilters
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public function number(string $number = ''):Builder
|
||||
{
|
||||
return $this->builder->where('number', $number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts the list based on $sort.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user