RetailLoyaltyManager::CheckThresholdAndCalculateEarnedPoints Method [AX 2012]
Checks the threshold of the earning rule, and calculates the earned points.
Syntax
client server private static RetailLoyaltyRewardPointAmountQty CheckThresholdAndCalculateEarnedPoints(
RetailLoyaltyEarnSchemeLine _earnSchemeLine,
RetailLoyaltyRewardPoint _rewardPoint,
RetailLoyaltyActivityAmountQty _activityAmountQty)
Run On
Called
Parameters
- _earnSchemeLine
Type: RetailLoyaltyEarnSchemeLine Table
The earning rule.
- _rewardPoint
Type: RetailLoyaltyRewardPoint Table
The reward point.
- _activityAmountQty
Type: RetailLoyaltyActivityAmountQty Extended Data Type
The amount or quantity of the loyalty activity.
Return Value
Type: RetailLoyaltyRewardPointAmountQty Extended Data Type
The calculation result.