Skip to content

Budgeting graph doesn't take real incomesΒ #69

@EniXoo

Description

@EniXoo

πŸ› Bug Report

πŸ“‹ Description

Hey there! I stumbled upon a bug while using this awesome project. Here's the scoop:

πŸ” Steps to Reproduce

  1. Create a fresh Bagels and an account
  2. Check Manager > Budgeting > Remaining β†’ It is 3500 by default
  3. Go back on Home and add a new income, for example 3499

πŸ€” Expected Behavior

Remaining should change based on incomes.

😡 Actual Behavior

When the sum of income is stricly inferior too 3500 (which is the default) it doesn't change, but it does when the incomes exceeds it.

πŸ› οΈ Debugging Details

Version: 0.3.9
Environment: Windows 11 > Ubuntu (WSL)
Code Reference:

def get_income_to_use(offset: int):

πŸ’‘ Additional Context

At line 231, we are checking if limit ( if > 100 β†’ current month incomes , last month incomes nor 0) is strictly inferior to fallback when we should check if it strictly inferior to threshold instead.

Thanks for checking this out! πŸš€

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions