added multi-select filters everywhere
This commit is contained in:
@ -14,8 +14,8 @@ class Reconciliations extends ModelFilter
|
||||
*/
|
||||
public $relations = [];
|
||||
|
||||
public function account($account)
|
||||
public function accounts($accounts)
|
||||
{
|
||||
return $this->where('account_id', $account);
|
||||
return $this->whereIn('account_id', (array) $accounts);
|
||||
}
|
||||
}
|
@ -14,19 +14,19 @@ class Transactions extends ModelFilter
|
||||
*/
|
||||
public $relations = [];
|
||||
|
||||
public function account($account_id)
|
||||
public function accounts($accounts)
|
||||
{
|
||||
return $this->where('account_id', $account_id);
|
||||
return $this->whereIn('account_id', (array) $accounts);
|
||||
}
|
||||
|
||||
public function category($category_id)
|
||||
public function categories($categories)
|
||||
{
|
||||
// No category for bills/invoices
|
||||
if (in_array($this->getModel()->getTable(), ['bill_payments', 'invoice_payments'])) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
return $this->where('category_id', $category_id);
|
||||
return $this->whereIn('category_id', (array) $categories);
|
||||
}
|
||||
|
||||
public function date($date)
|
||||
|
Reference in New Issue
Block a user