Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Calculates the used, issued, expired, or active points based on the specified table and status type.
Syntax
client server public static RetailLoyaltyRewardPointAmountQty calcPoints(
Common _common,
RefRecId _rewardPoint,
RetailLoyaltyPointStatusTypeBase _statusType,
[date _calculateDate])
Run On
Called
Parameters
- _common
Type: Common Table
The range of reward point calculation. It can be a RetailAffiliation record or a RetailLoyaltyCard record.
- _rewardPoint
Type: RefRecId Extended Data Type
The recId value of the reward point.
- _statusType
Type: RetailLoyaltyPointStatusTypeBase Enumeration
The value of the status type.
- _calculateDate
Type: date
The calculation date which could be the channel local date.
Return Value
Type: RetailLoyaltyRewardPointAmountQty Extended Data Type
The calculated loyalty points.
Remarks
The function calculates the used, issued, expired, or active points.
Depending on the table and baseEnum (Used; Issued; Expired; Active)