Bug 682

Summary: Email recording error regarding Admin "confirm payment" operation
Product: CS3343 Summer storage management system for CSSAUG Reporter: ZHOU Yu <yzhou442-c>
Component: Admin-endAssignee: ZHOU Yu <yzhou442-c>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: 3.0   
Hardware: PC   
OS: Mac OS   
Attachments: email recoding error

Description ZHOU Yu 2022-10-30 22:00:08 HKT
Created attachment 115 [details]
email recoding error

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.

Expected result:
On the admin-end interface, all the records should be listed with correct corresponding clients' email.

Actual result:
As in the snapshot, the rentable's email is misrecorded as the admin's email.

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