RetailLoyaltyCardRewardPointTrans::calcPoints Method

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.
  • _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)

See Also

Reference

RetailLoyaltyCardRewardPointTrans Table