Skip to content

Commit

Permalink
fixed #206
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Feb 7, 2018
1 parent 36b7f7a commit d6540a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Filters/Banking/Transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public function account($account_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);
}
}

0 comments on commit d6540a3

Please sign in to comment.