RetailTransactionServiceAX5::LoyaltyUsedPointsUpdate Method [AX 2012]
Method is used for creating the record in RetailLoyaltyMSRCardTrans table for Issued points.
Syntax
client server public static container LoyaltyUsedPointsUpdate(
RetailTransactionId _pTransactionId,
LineNum _pLineNum,
RetailStoreId _pStoreId,
RetailTerminalId _pTerminalId,
RetailCardNumber _pLoyaltyCardNo,
str _pTransDate,
[int _pDateSequence,
RetailLoyaltyPoints _pUsedPoints,
RetailReceiptId _pReceiptId,
RetailStaffId _pStaffId,
str _pTime])
Run On
Called
Parameters
- _pTransactionId
Type: RetailTransactionId Extended Data Type
ID of the RetailLoyaltyMSRCardTrans.transactionId field.
- _pLineNum
Type: LineNum Extended Data Type
ID of the RetailLoyaltyMSRCardTrans.loyaltyPointTranslineNum field.
- _pStoreId
Type: RetailStoreId Extended Data Type
ID of the RetailLoyaltyMSRCardTrans.storeId field.
- _pTerminalId
Type: RetailTerminalId Extended Data Type
ID of the RetailLoyaltyMSRCardTrans.terminalId field.
- _pLoyaltyCardNo
Type: RetailCardNumber Extended Data Type
ID of the RetailLoyaltyMSRCardTable.cardNumber field.
- _pTransDate
Type: str
Transaction date for the RetailLoyaltyMSRCardTrans.dateOfIssue field.
- _pDateSequence
Type: int
Format of the date.
- _pUsedPoints
Type: RetailLoyaltyPoints Extended Data Type
Loyalty points. of the RetailLoyaltyMSRCardTrans.points field.
- _pReceiptId
Type: RetailReceiptId Extended Data Type
ID of the RetailLoyaltyMSRCardTrans.receiptId field.
- _pStaffId
Type: RetailStaffId Extended Data Type
ID of the RetailLoyaltyMSRCardTrans.staffId field.
- _pTime
Type: str
Time value for the RetailLoyaltyMSRCardTrans.timeOfIssue field.
Return Value
Type: container
Container with the true and string message if the record is created in RetailLoyaltyMSRCardTrans table successfully; else false with appropriate string message.