TUDublin / code-and-docs-rachelrring

code-and-docs-rachelrring created by GitHub Classroom
0 stars 0 forks source link

Load saved Budget to budget planner #39

Closed rachelrring closed 7 months ago

rachelrring commented 7 months ago

When a user is logged in and they have saved a budget, it should prepopulate the form for the user

Process:

  1. check if user is logged in
  2. if user is logged in --> do they have a budget saved ?
  3. if they have a budget saved --> populate form fields and update total income and expenses
rachelrring commented 7 months ago

So far, this feature is finished so that a user's budget is loaded in to the form but all the values loaded in are yearly. The backend does not keep track of how the user enters their values [weekly, monthly, yearly].

I'm very happy with the progress of this issue and I will consider it dealt with unless I get more time to change the backend to store whether the values are weekly, monthly, or yearly because currently the values are saved in the DB are all yearly values.

Even if the values are put in as weekly or monthly, they are multiplied and stored as yearly values.

load saved budget

rachelrring commented 7 months ago

With #42 merge we can now reload a user's saved budget. which is good enough for now.