Open PetrichorPrecipice opened 10 months ago
This is the same as the reported bug about overtime integer overflow.
[The team marked this bug as a duplicate of the following bug]
Wrong error message when adding an amount with very big numbers
Amount is a positive integer but still gives error saying that amount must be a positive integer.
The only restriction when amount is a positive integer. While as a tech people we know that integer is limited to 2**32, as non tech people there is no upper boundary to what integer is. Hence, the user can still put in a very large number to the salary. This occurrence is not uncommon considering that there are still currencies that uses many 0s in their money nominal, for example IDR (Indonesian Rupiah).
I think the correct error message should be "Number of overtime hours should not be above 72 or below 0"
[original: nus-cs2103-AY2324S1/pe-interim#1068] [original labels: type.FunctionalityBug severity.Medium]
[This is the team's response to the above 'original' bug]
The case of integer overflow is unlikely when entering overtime hours. The justification that "currencies that uses many 0s in their money nominal, for example IDR (Indonesian Rupiah)" is also not applicable because this command only has overtime hours as a parameter, not salary.
The bug was reproduced and did not "crash the app, corrupt the data, or make it unusable". As such, per the CS2103T website, this bug is rejected.
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: [replace this with your explanation]
Entering the following command: