Bug 683 - Incorrect undo operation for clients
Summary: Incorrect undo operation for clients
Status: CONFIRMED
Alias: None
Product: CS3343 Summer storage management system for CSSAUG
Classification: Unclassified
Component: Client-end (show other bugs)
Version: 3.0
Hardware: PC Mac OS
: --- enhancement
Assignee: xingchsha2
URL:
Depends on:
Blocks:
 
Reported: 2022-10-30 22:18 HKT by ZHOU Yu
Modified: 2022-10-30 22:18 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ZHOU Yu 2022-10-30 22:18:29 HKT
Describe the bug:
After clients has submitted a rentable request, admin is supposed to handle payment in person and confirm payment using the management system interface. However, when summarizing records, the system lists the records with admin's email rather than clients', which is regarded as a output error.

Steps to reproduce the bug:
1. pull down the latest version of the program from github.
2. go the xBox/src/app folder, switch to the "Main.java" file.
3. run the "Main.java" file.
4. register and login client account, request rentables on the client-end interface.
5. register and login admin account, confirm payment on the admin-end interface. Click record summary button.
6. switch back to client interface, click undo button.

Expected result:
Since the admin has confirmed payment and this transaction has been done, the client should not have the ability to undo the previous requests. After clicking the undo button, the console should inform the client that nothing can be undo.

Actual result:
The client successfully commits undo with no alert messages.

Environment:
OS: MacOS Catalina 10.15.7 
IDE: Eclipse 2022-09
Version: 3.0
OpenJDK 17