Table

RetailLoyaltyConflictCardPointTrans

Loyalty transaction

Holds loyalty reward point entries such as earn, redeem, return earned, adjust and refund. Each entry has a card number, a loyalty program, a tier, a reward point type and an amount of points. It also links to the point transaction and the store, register and customer account. The table has no defined key.

Table name
RetailLoyaltyConflictCardPointTrans
Module
Commerce customers
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (29)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AffiliationPoints to the loyalty program the entry belongs to.Int64
RefRecId
NoRetailAffiliation.RecIdNone
CardNumberThe loyalty card the points relate to.String (30)
RetailLoyaltyCardNumber
NoRetailLoyaltyCard.CardNumberNone
ChannelPoints to the retail channel where the transaction took place.Int64
RefRecId
NoRetailChannelTable.RecIdNone
CommentA short free-text note on the entry.String (60)
RetailCommentEx5
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustAccountThe customer account linked to the entry.String (20)
CustAccount
NoCustTable.AccountNumNone
CustAccountDataAreaIdThe company (legal entity) of the customer account.String
DataAreaId
NoCustTable.dataAreaIdNone
EntryDateThe date the points entry was made.Date
RetailLoyaltyRewardPointEntryDate
NoNone
EntryTimeThe time the points entry was made.Time
RetailLoyaltyRewardPointEntryTime
NoNone
EntryTypeThe kind of points entry: earn, redeem, return earned, adjust or refund.Enum
RetailLoyaltyRewardPointEntryType (enum)
NoNone
ExpirationDateThe date the points expire.Date
RetailLoyaltyRewardPointExpirationDate
NoNone
IsMigratedYes/No flag showing whether the record has been migrated.Enum
NoYes (enum)
NoNone
LoyaltyTierPoints to the loyalty tier linked to the entry.Int64
RefRecId
NoRetailLoyaltyTier.RecIdNone
loyaltyTransDataAreaIdThe company (legal entity) of the related loyalty reward point transaction.String
DataAreaId
NoRetailTransactionLoyaltyRewardPointTrans.dataAreaIdRetailTransactionTable.dataAreaIdNone
LoyaltyTransLineNumThe line number of the related loyalty reward point transaction.Real
LineNum
NoRetailTransactionLoyaltyRewardPointTrans.LineNumNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReceiptIdThe receipt number linked to the entry.String (18)
RetailReceiptId
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RewardPointPoints to the loyalty reward point definition used for the entry.Int64
RefRecId
NoRetailLoyaltyRewardPoint.RecIdNone
RewardPointAmountQtyThe number of reward points in the entry.Real
RetailLoyaltyRewardPointAmountQty
NoNone
StaffIdThe ID of the operator linked to the entry.String (25)
RetailStaffId
NoNone
storeIdThe store number where the transaction took place.String
RetailStoreId
NoRetailStoreTable.StoreNumberNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
terminalIdThe POS register number where the transaction took place.String
RetailTerminalId
NoRetailTerminalTable.terminalIdNone
transactionIdThe number of the retail transaction that holds the loyalty point line.String (44)
RetailTransactionId
NoRetailTransactionLoyaltyRewardPointTrans.transactionIdRetailTransactionTable.transactionIdNone

Indexes (3)

Relations (10)

Each relation joins RetailLoyaltyConflictCardPointTrans to another table on the fields shown.

  • CustTable → CustTable

    Join on CustAccountDataAreaId = CustTable.dataAreaId, CustAccount = CustTable.AccountNum

    Many RetailLoyaltyConflictCardPointTrans records → zero or one CustTable record

  • RetailAffiliation → RetailAffiliation

    Join on Affiliation = RetailAffiliation.RecId

    Many RetailLoyaltyConflictCardPointTrans records → zero or one RetailAffiliation record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailLoyaltyConflictCardPointTrans records → zero or one RetailChannelTable record

  • RetailLoyaltyCard → RetailLoyaltyCard

    Join on CardNumber = RetailLoyaltyCard.CardNumber

    Many RetailLoyaltyConflictCardPointTrans records → zero or one RetailLoyaltyCard record

  • RetailLoyaltyRewardPoint → RetailLoyaltyRewardPoint

    Join on RewardPoint = RetailLoyaltyRewardPoint.RecId

    Many RetailLoyaltyConflictCardPointTrans records → zero or one RetailLoyaltyRewardPoint record

  • RetailLoyaltyTier → RetailLoyaltyTier

    Join on LoyaltyTier = RetailLoyaltyTier.RecId

    Many RetailLoyaltyConflictCardPointTrans records → zero or one RetailLoyaltyTier record

  • RetailStoreTable → RetailStoreTable

    Join on storeId = RetailStoreTable.StoreNumber

    Many RetailLoyaltyConflictCardPointTrans records → zero or one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminalId = RetailTerminalTable.terminalId

    Many RetailLoyaltyConflictCardPointTrans records → zero or one RetailTerminalTable record

  • RetailTransactionLoyaltyRewardPointTrans → RetailTransactionLoyaltyRewardPointTrans

    Join on loyaltyTransDataAreaId = RetailTransactionLoyaltyRewardPointTrans.dataAreaId, transactionId = RetailTransactionLoyaltyRewardPointTrans.transactionId, terminalId = RetailTransactionLoyaltyRewardPointTrans.terminalId, storeId = RetailTransactionLoyaltyRewardPointTrans.storeId, LoyaltyTransLineNum = RetailTransactionLoyaltyRewardPointTrans.LineNum, Channel = RetailTransactionLoyaltyRewardPointTrans.Channel

    Zero or one RetailLoyaltyConflictCardPointTrans record → zero or one RetailTransactionLoyaltyRewardPointTrans record

  • RetailTransactionTable → RetailTransactionTable

    Join on loyaltyTransDataAreaId = RetailTransactionTable.dataAreaId, Channel = RetailTransactionTable.Channel, transactionId = RetailTransactionTable.transactionId, terminalId = RetailTransactionTable.terminal, storeId = RetailTransactionTable.store

    Zero or one RetailLoyaltyConflictCardPointTrans record → zero or one RetailTransactionTable record

Get this data out

No public entity reads from RetailLoyaltyConflictCardPointTrans. Its data is only reachable through the application, a custom entity or a database export.

Need help with RetailLoyaltyConflictCardPointTrans in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk