RetailLoyaltyCollection::updateLoyaltyIssuedPoints Method [AX 2012]

Creates a record in the RetailLoyaltyMSRCardTrans table for issued points.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          client server public static container updateLoyaltyIssuedPoints(
            RetailTransactionId pTransactionId, 
            LineNum pLineNum, 
            RetailStoreId pStoreId, 
            RetailTerminalId pTerminalId, 
            RetailCardNumber pLoyaltyCardNo, 
            str pTransDate, 
            int pDateSequence, 
            RetailLoyaltyPoints pIssuedPoints, 
           [RetailReceiptId pReceiptId, 
            RetailStaffId pStaffId, 
            str pTime, 
            RefRecId custInvoiceJourRecId])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static container updateLoyaltyIssuedPoints(
            RetailTransactionId pTransactionId, 
            LineNum pLineNum, 
            RetailStoreId pStoreId, 
            RetailTerminalId pTerminalId, 
            RetailCardNumber pLoyaltyCardNo, 
            str pTransDate, 
            int pDateSequence, 
            RetailLoyaltyPoints pIssuedPoints, 
           [RetailReceiptId pReceiptId, 
            RetailStaffId pStaffId, 
            str pTime, 
            RefRecId custInvoiceJourRecId])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static container updateLoyaltyIssuedPoints(
            RetailTransactionId pTransactionId, 
            LineNum pLineNum, 
            RetailStoreId pStoreId, 
            RetailTerminalId pTerminalId, 
            RetailCardNumber pLoyaltyCardNo, 
            str pTransDate, 
            int pDateSequence, 
            RetailLoyaltyPoints pIssuedPoints, 
           [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.
pIssuedPoints
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.
custInvoiceJourRecId
Type: RefRecId Extended Data Type

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: