AY2425S1-CS2113-T10-4 / tp

1 stars 4 forks source link

[PE-D][Tester D] Inaccurate total amount spent for categories #180

Closed nus-se-bot closed 3 weeks ago

nus-se-bot commented 3 weeks ago

image.png

image.png

Steps to reproduce:

  1. Add multiple expenses with amount that have more than 2dp. Set the same category for all the expenses.
  2. Set a budget for the category
  3. Run view-budget

Expected: Total spent for the category should be the sum of the rounded off values since in the UG it is stated that the amount is saved as 2dp Actual: Total spent for the category takes into account the extra decimal places


Labels: type.FunctionalityBug severity.Medium original: wx-03/ped#9

glenda-1506 commented 3 weeks ago

after rounding off, just save the data as rounded off to 2dp, and calculate using the 2dp value