RetailLoyaltyManager::CalculateEarnedPointsBySchemeLine Method [AX 2012]

Calculates the earned points by applying the given earning rule.

client server private static RetailLoyaltyRewardPointAmountQty CalculateEarnedPointsBySchemeLine(
    SalesTable _salesTable, 
    RetailLoyaltyEarnSchemeLine _earnSchemeLine, 
    RetailLoyaltyRewardPoint _rewardPoint, 
    RetailLoyaltyRewardPointEntryType _entryType)

Run On

Called

Parameters

_salesTable
Type: SalesTable Table
The sales table.
_earnSchemeLine
Type: RetailLoyaltyEarnSchemeLine Table
The earning rule.
_rewardPoint
Type: RetailLoyaltyRewardPoint Table
The reward point to earn.
_entryType
Type: RetailLoyaltyRewardPointEntryType Enumeration
The entry type of the rewardn point.

Return Value

Type: RetailLoyaltyRewardPointAmountQty Extended Data Type
The calculation result.
Show: