fixed #206
This commit is contained in:
parent
36b7f7aa6f
commit
d6540a3c8f
@ -21,6 +21,11 @@ class Transactions extends ModelFilter
|
|||||||
|
|
||||||
public function category($category_id)
|
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);
|
return $this->where('category_id', $category_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user