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.
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.
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.