This commit is contained in:
denisdulici 2018-02-07 15:28:22 +03:00
parent 36b7f7aa6f
commit d6540a3c8f

View File

@ -21,6 +21,11 @@ class Transactions extends ModelFilter
public function category($category_id)
{
// No category for bills/invoices
if (in_array($this->getModel()->getTable(), ['bill_payments', 'invoice_payments'])) {
return $this;
}
return $this->where('category_id', $category_id);
}
}