AY2425S1-CS2113-W14-2 / tp

PlanPal Desktop CLI Application
https://ay2425s1-cs2113-w14-2.github.io/tp/
0 stars 5 forks source link

[PE-D][Tester D] Budget command for expense manager mode does not catch an invalid month #190

Closed nus-pe-bot closed 3 weeks ago

nus-pe-bot commented 3 weeks ago

image.png

The budget 1000 /month: 10000 command still runs even though 10000 is an invalid month

Suggestion

Perhaps there can be a way to check for invalid input months such as negative numbers or numbers more than 12?


Labels: type.FunctionalityBug severity.Low original: chewycj/ped#8

C2linaung commented 3 weeks ago

valid flaw.

Currently, the month value accepts any value since we gave users the control over what they want to input. mainly because, we wanted allow them to choose to add months by words.

To do by v2.1: Accept only a specific format using the date time formatter. This would prevent the months from invalid types.

Additional note if got time, add in functionality to see what months have budgets set alr.