Bug 390 - Incorrect return values when calculating discount of the product
Summary: Incorrect return values when calculating discount of the product
Status: RESOLVED FIXED
Alias: None
Product: online shop management system
Classification: Unclassified
Component: User (show other bugs)
Version: 1.0.0
Hardware: PC Windows
: Normal enhancement
Assignee: Silvia
URL:
Depends on:
Blocks:
 
Reported: 2020-11-05 23:24 HKT by Silvia
Modified: 2020-11-10 15:41 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.