RetailLoyaltyCollection::updateLoyaltyUsedPoints Method [AX 2012]

Creates a record in the RetailLoyaltyMSRCardTrans table for used points.

client server public static container updateLoyaltyUsedPoints(
    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
A value for the TransactionId field in the RetailLoyaltyMSRCardTrans table.
pLineNum
Type: LineNum Extended Data Type
A value for the LoyaltyPointTranslineNum field in the RetailLoyaltyMSRCardTrans table.
pStoreId
Type: RetailStoreId Extended Data Type
A value for the StoreId field in the RetailLoyaltyMSRCardTrans table.
pTerminalId
Type: RetailTerminalId Extended Data Type
A value for the TerminalId field in the RetailLoyaltyMSRCardTrans table.
pLoyaltyCardNo
Type: RetailCardNumber Extended Data Type
A value for the CardNumber field in the RetailLoyaltyMSRCardTable table.
pTransDate
Type: str
A transaction date for the DateOfIssue field in the RetailLoyaltyMSRCardTrans table.
pDateSequence
Type: int
A format for the date.
pUsedPoints
Type: RetailLoyaltyPoints Extended Data Type
A loyalty points value for the Points field in the RetailLoyaltyMSRCardTrans table.
pReceiptId
Type: RetailReceiptId Extended Data Type
A value for the ReceiptId field in the RetailLoyaltyMSRCardTrans table.
pStaffId
Type: RetailStaffId Extended Data Type
A value for the StaffId field in the RetailLoyaltyMSRCardTrans table.
pTime
Type: str
A time value for the TimeOfIssue field in the RetailLoyaltyMSRCardTrans table.

Return Value

Type: container
A container that contains a true value and a string message if the record is created in the RetailLoyaltyMSRCardTrans table successfully; otherwise, a false value with the appropriate string message.
Show: