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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AffiliationPoints to the loyalty program the entry belongs to. | Int64RefRecId | No | RetailAffiliation.RecId | None |
CardNumberThe loyalty card the points relate to. | String (30)RetailLoyaltyCardNumber | No | RetailLoyaltyCard.CardNumber | None |
ChannelPoints to the retail channel where the transaction took place. | Int64RefRecId | No | RetailChannelTable.RecId | None |
CommentA short free-text note on the entry. | String (60)RetailCommentEx5 | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustAccountThe customer account linked to the entry. | String (20)CustAccount | No | CustTable.AccountNum | None |
CustAccountDataAreaIdThe company (legal entity) of the customer account. | StringDataAreaId | No | CustTable.dataAreaId | None |
EntryDateThe date the points entry was made. | DateRetailLoyaltyRewardPointEntryDate | No | None | |
EntryTimeThe time the points entry was made. | TimeRetailLoyaltyRewardPointEntryTime | No | None | |
EntryTypeThe kind of points entry: earn, redeem, return earned, adjust or refund. | EnumRetailLoyaltyRewardPointEntryType (enum) | No | None | |
ExpirationDateThe date the points expire. | DateRetailLoyaltyRewardPointExpirationDate | No | None | |
IsMigratedYes/No flag showing whether the record has been migrated. | EnumNoYes (enum) | No | None | |
LoyaltyTierPoints to the loyalty tier linked to the entry. | Int64RefRecId | No | RetailLoyaltyTier.RecId | None |
loyaltyTransDataAreaIdThe company (legal entity) of the related loyalty reward point transaction. | StringDataAreaId | No | RetailTransactionLoyaltyRewardPointTrans.dataAreaIdRetailTransactionTable.dataAreaId | None |
LoyaltyTransLineNumThe line number of the related loyalty reward point transaction. | RealLineNum | No | RetailTransactionLoyaltyRewardPointTrans.LineNum | None |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReceiptIdThe receipt number linked to the entry. | String (18)RetailReceiptId | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RewardPointPoints to the loyalty reward point definition used for the entry. | Int64RefRecId | No | RetailLoyaltyRewardPoint.RecId | None |
RewardPointAmountQtyThe number of reward points in the entry. | RealRetailLoyaltyRewardPointAmountQty | No | None | |
StaffIdThe ID of the operator linked to the entry. | String (25)RetailStaffId | No | None | |
storeIdThe store number where the transaction took place. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
terminalIdThe POS register number where the transaction took place. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | None |
transactionIdThe number of the retail transaction that holds the loyalty point line. | String (44)RetailTransactionId | No | RetailTransactionLoyaltyRewardPointTrans.transactionIdRetailTransactionTable.transactionId | None |
Indexes (3)
AffiliationIdxNot unique.
CardNumberNot unique.
TransactionLineIdxLoyaltyTransLineNum,Channel,storeId,terminalId,transactionId,loyaltyTransDataAreaIdNot unique.
Relations (10)
Each relation joins RetailLoyaltyConflictCardPointTrans to another table on the fields shown.
CustTable→CustTableJoin on
CustAccountDataAreaId = CustTable.dataAreaId,CustAccount = CustTable.AccountNumMany RetailLoyaltyConflictCardPointTrans records → zero or one CustTable record
RetailAffiliation→RetailAffiliationJoin on
Affiliation = RetailAffiliation.RecIdMany RetailLoyaltyConflictCardPointTrans records → zero or one RetailAffiliation record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailLoyaltyConflictCardPointTrans records → zero or one RetailChannelTable record
RetailLoyaltyCard→RetailLoyaltyCardJoin on
CardNumber = RetailLoyaltyCard.CardNumberMany RetailLoyaltyConflictCardPointTrans records → zero or one RetailLoyaltyCard record
RetailLoyaltyRewardPoint→RetailLoyaltyRewardPointJoin on
RewardPoint = RetailLoyaltyRewardPoint.RecIdMany RetailLoyaltyConflictCardPointTrans records → zero or one RetailLoyaltyRewardPoint record
RetailLoyaltyTier→RetailLoyaltyTierJoin on
LoyaltyTier = RetailLoyaltyTier.RecIdMany RetailLoyaltyConflictCardPointTrans records → zero or one RetailLoyaltyTier record
RetailStoreTable→RetailStoreTableJoin on
storeId = RetailStoreTable.StoreNumberMany RetailLoyaltyConflictCardPointTrans records → zero or one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminalId = RetailTerminalTable.terminalIdMany RetailLoyaltyConflictCardPointTrans records → zero or one RetailTerminalTable record
RetailTransactionLoyaltyRewardPointTrans→RetailTransactionLoyaltyRewardPointTransJoin on
loyaltyTransDataAreaId = RetailTransactionLoyaltyRewardPointTrans.dataAreaId,transactionId = RetailTransactionLoyaltyRewardPointTrans.transactionId,terminalId = RetailTransactionLoyaltyRewardPointTrans.terminalId,storeId = RetailTransactionLoyaltyRewardPointTrans.storeId,LoyaltyTransLineNum = RetailTransactionLoyaltyRewardPointTrans.LineNum,Channel = RetailTransactionLoyaltyRewardPointTrans.ChannelZero or one RetailLoyaltyConflictCardPointTrans record → zero or one RetailTransactionLoyaltyRewardPointTrans record
RetailTransactionTable→RetailTransactionTableJoin on
loyaltyTransDataAreaId = RetailTransactionTable.dataAreaId,Channel = RetailTransactionTable.Channel,transactionId = RetailTransactionTable.transactionId,terminalId = RetailTransactionTable.terminal,storeId = RetailTransactionTable.storeZero 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.