Bug 393

Summary: Incorrect return values when calculating the required spending for upgrade membership
Product: online shop management system Reporter: nokyinng3-c
Component: Membership systemAssignee: shinglam7-c
Status: RESOLVED FIXED    
Severity: enhancement CC: potleung4-c
Priority: ---    
Version: 1.0.0   
Hardware: PC   
OS: Windows   

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.