nus-cs2103-AY1920S1 / pe-dev-response

0 stars 0 forks source link

Weird behaviour of addExpense command #15

Open nus-pe-bot opened 4 years ago

nus-pe-bot commented 4 years ago

Summary: Weird behaviour of addExpense command.

Steps to reproduce:

  1. Open the application, add expenses until budget is exceeded (starting with extremely large numbers but within the allowable range)
  2. Continue to add expenses (in this case: addExpense cat/Food n/Mala amt/1 d/2019 11 09 tg/food tg/indulgence)

Expected results: I should be notified that I am successful in adding the expense and that I have exceeded the budget.

Actual results: I am notified with an error that the budget amount should only contain numbers, and it should be only 2 decimal points at maximum. It should also not be bigger than 9999999.99, which is not the case since my expense is a legitimate number)

Screenshot of issue:

image.png


[original: nus-cs2103-AY1920S1/pe-interim#15]

rongrongrr commented 4 years ago

Team's Response

Bug occurred due to bug #526 as a result of the budget amount error. From the screenshots provided, it is deduced that before this, the user has added expenses such that the budget amount for the Food category has exceeded $9999999.99, triggering the bug as shown in #526.

While bug is accepted, the team feels that the severity of the bug should not be high as this only occurs in uncommon situations when the user added the expenses such that the budget amount exceeds $9999999.99.

Duplicate status (if any):

While it is not a direct duplicate, the bug is a follow up bug of #526.