Bug 390

Summary: Incorrect return values when calculating discount of the product
Product: online shop management system Reporter: Silvia <potleung4-c>
Component: UserAssignee: Silvia <potleung4-c>
Status: RESOLVED FIXED    
Severity: enhancement CC: potleung4-c
Priority: Normal    
Version: 1.0.0   
Hardware: PC   
OS: Windows   

Description Silvia 2020-11-05 23:24:04 HKT
If the user has a membership discount and the product discount, the system should calculate which discount is better and use that discount for the user to buy the product. However, the system always calculates the discount of the membership discount.
Comment 1 Silvia 2020-11-10 15:38:44 HKT
Step of the test:
1. Create a user with a silver membership.
2. Buying a product that has a discount better than the silver membership 
   discount.
3. Compare the product and the membership discount.
4. Using a better discount to calculate the final product price.
Comment 2 Silvia 2020-11-10 15:41:43 HKT
The bug fixed successfully. The bug was fixed by comparing the product and the membership discount, using which discount is smaller than another to calculate the product price.