rohitcube / pe

0 stars 0 forks source link

updatebuget vs deletebudget #35

Open rohitcube opened 9 months ago

rohitcube commented 9 months ago

Screenshot 2023-11-17 at 5.27.19 PM.png

Confused about the use of these functions. Is deletebudget really necessary, considering the budget is a standalone variable that does not affect anything else. Isn't it the same as updating the budget to zero?

nus-pe-bot commented 9 months ago

Team's Response

This was designed as such intentionally as the viewBudget function would only function with a budget present. If the user sets their budget as 0 to mean ignore the budget, the viewBudget would still trigger. Furthermore, knowing whether a budget is set by the user allows us to in the future trigger warnings automatically when the user is spending more than their budget.

Items for the Tester to Verify

:question: Issue response

Team chose [response.NotInScope]

Reason for disagreement: [replace this with your explanation]