charleshug / moneyapp

personal finance and budgeting web app
1 stars 0 forks source link

Navigating to Actual trxes from Budget view doesn't always correctly display trxes #7

Open charleshug opened 1 year ago

charleshug commented 1 year ago

On Budget page, clicking the $X.XX link from a subcategory's actual expenses navigates to Trxes page with set parameters. The displayed trxes sometimes include the monthly "budget" trx, and sometimes are blank when the dollar amount shown wasn't $0.

TrxController#index displays based on params which could use a filter against Account = "Budget" or Vendor = "Budget"

    case params[:trxes]
    when "expense"
      @trxes = @trxes.where.not(categories: Category.income ).or(Trx.where(lines: Line.where.not(categories: Category.income )))