Bug 393 - Incorrect return values when calculating the required spending for upgrade membership
Summary: Incorrect return values when calculating the required spending for upgrade me...
Status: RESOLVED FIXED
Alias: None
Product: online shop management system
Classification: Unclassified
Component: Membership system (show other bugs)
Version: 1.0.0
Hardware: PC Windows
: --- enhancement
Assignee: shinglam7-c
URL:
Depends on:
Blocks:
 
Reported: 2020-11-06 21:26 HKT by nokyinng3-c
Modified: 2020-11-26 10:14 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 nokyinng3-c 2020-11-06 21:26:20 HKT
When testing the function of calculating the required spending for upgrade membership, the expected result and actual result do not match.
The expected result is a positive double value, but the return value of the function of Membership.sepndingToUpgrade() is a negative double value if the accumulated spending of customers had already surpassed the upgrade threshold.