lihka1202 / pe

0 stars 0 forks source link

Budget Calculator keeping track of expenses even after they are removed #4

Open lihka1202 opened 1 year ago

lihka1202 commented 1 year ago
> delete 1
Unable to execute the operation without transaction data! 
Please add transactions first!
> setbudget 50
Monthly Budget Goal set to $50.00!
> add -out food $25
Done! Added: out for food, -$25.00, in category miscellaneous on 14/04/2023
You have spent $-42.00/$50.00 for Apr 2023, Keep it up!
> view -all
+====================================================================================================+
|Here is your financial report!                                                                      |
+------+---------------------------------------------+--------------+---------------------+----------+
|Index |Description                                  |Amount        |Category             |Date      |
|000001|food                                         |-$25.00       |miscellaneous        |14/04/2023|
+------+---------------------------------------------+--------------+---------------------+----------+
|Viewing all entries from the start of time                                                          |
|Total Inflow: $0.00                                                                                 |
|Total Outflow: $25.00                                                                               |
|Remaining value: -$25.00                                                                            |
+====================================================================================================+

In this program I have deleted all the entries, set a new budget of 50. However, when I add in a new expense of 25, the expenditure report states that "You have spent $-42.00/$50.00 for Apr 2023, Keep it up!". This couldn't be possible as I had deleted all records and restarted, which means that the budget tracker is unable to remove expenses after they have been removed from the list. This could be a higher level issue, but I've kept it at medium

nus-pe-script commented 1 year ago

[IMPORTANT!: Please do not edit or reply to this comment using the GitHub UI. You can respond to it using CATcher during the next phase of the PE]

Team's Response

We are unable to duplicate this issue of obtaining a negative amount of expenditure to begin with. Our attempt to recreate the bug does not work as well.

image.png

Items for the Tester to Verify

:question: Issue response

Team chose [response.CannotReproduce]

Reason for disagreement: [replace this with your reason]