Share via


RetailLoyaltyCollection::registerPoints Method [AX 2012]

Creates records in the RetailLoyaltyMSRCardTrans table for issued and used points.

Syntax

Note

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 void registerPoints(
            RetailLoyaltyPoints ptotalPoints, 
            RetailLoyaltyEntryTypeBase entryType, 
            RetailCardNumber pLoyaltyCardNo, 
            str pTransDate, 
            int pDateSequence, 
            RetailTerminalId pTerminalId, 
            RetailStoreId pStoreId, 
            RetailTransactionId pTransactionId, 
            LineNum pLineNum, 
            RetailReceiptId pReceiptId, 
            RetailStaffId pStaffId, 
           [str pTime, 
            RefRecId custInvoiceJourRecId])

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

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static void registerPoints(
            RetailLoyaltyPoints ptotalPoints, 
            RetailLoyaltyEntryTypeBase entryType, 
            RetailCardNumber pLoyaltyCardNo, 
            str pTransDate, 
            int pDateSequence, 
            RetailTerminalId pTerminalId, 
            RetailStoreId pStoreId, 
            RetailTransactionId pTransactionId, 
            LineNum pLineNum, 
            RetailReceiptId pReceiptId, 
            RetailStaffId pStaffId)

Run On

Called

Parameters

  • pTransDate
    Type: str
    A transaction date value for the DateOfIssue field in the RetailLoyaltyMSRCardTrans table.
  • pDateSequence
    Type: int
    A format for the date.
  • pLineNum
    Type: LineNum Extended Data Type
    A value for the LoyaltyPointTransLineNum field in the RetailLoyaltyMSRCardTrans table.
  • pTime
    Type: str

Remarks

This method calls the updateLoyaltyIssuedPoints method to create records in the RetailLoyaltyMSRCardTrans table for issued points and calls the updateLoyaltyUsedPoints method to create records in the RetailLoyaltyMSRCardTrans table for used points.

See Also

Reference

RetailLoyaltyCollection Class