RetailLoyaltyCollection::calculatePoints Method [AX 2012]
Calculates the loyalty points for item, product group, and tender types.
Syntax
client server public static void calculatePoints(
RetailReceiptId pReceiptId,
RetailCardNumber pCardNumber,
Total pTotalInclVAT,
TransDate pTransDate,
RetailTerminalId pTerminalId,
RetailTransactionId pTransactionId,
RetailStoreId pStoreId)
Run On
Called
Parameters
- pReceiptId
Type: RetailReceiptId Extended Data Type
A value for the StoreId field in the RetailLoyaltyMSRCardTrans table.
- pCardNumber
Type: RetailCardNumber Extended Data Type
A value for the CardNumber field in the RetailLoyaltyMSRCardTable table.
- pTotalInclVAT
Type: Total Extended Data Type
An amount that includes value-added tax.
- pTransDate
Type: TransDate Extended Data Type
A posting date.
- pTerminalId
Type: RetailTerminalId Extended Data Type
A value for the TerminalId field in the RetailLoyaltyMSRCardTrans table.
- pTransactionId
Type: RetailTransactionId Extended Data Type
A value for the TransactionId field in the RetailTransactionSalesTrans table.
A value for the TransactionId field in the RetailTransactionPaymentTrans table.
- pStoreId
Type: RetailStoreId Extended Data Type
A value for the Store field in the RetailTransactionSalesTrans table.