Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative Rollover option -- incorrect budget amount #90

Open
ScottAbbey opened this issue Jan 16, 2024 · 0 comments
Open

Negative Rollover option -- incorrect budget amount #90

ScottAbbey opened this issue Jan 16, 2024 · 0 comments

Comments

@ScottAbbey
Copy link

When using the negative rollover option, it carries over the overspent amount in the available-to-budget calculation, but it should ignore that amount instead.

Example with current code:

January

Name Amount
Funds for month 100
Overspent in prev month
Budgeted for month -100
To be budgeted for month
Budgeted in the future
Category Budgeted Spent Available
Food 50 -55 -5
Rent 50 -50

February

Name Amount
Funds for month 100
Overspent in prev month -5
Budgeted for month -100
To be budgeted for month -5
Budgeted in the future
Category Budgeted Spent Available
Food 50 -50 -5
Rent 50 -50

Notice that the total amount available for the two months was 200, and 200 was budgeted, but the system says you have over-budgeted by 5.

Instead, it should look like this when negative rollover is used:

February

Name Amount
Funds for month 100
Overspent in prev month
Budgeted for month -100
To be budgeted for month
Budgeted in the future
Category Budgeted Spent Available
Food 50 -50 -5
Rent 50 -50

Since the overspent amount from the previous month is left on the accounts as a negative available amount, we can't deduct that from the available amount to budget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant