Table

RetailLoyaltyCardRewardPointDeduction

Reward point deduction

Links a reward point deduction to the loyalty transaction that it uses points from. Each record points to two loyalty transactions, the deduction and the source, and holds a points amount. It has no defined key.

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

Fields (7)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
RewardPointAmountQtyNumber of reward points involved.Real
RetailLoyaltyRewardPointAmountQty
NoNone
RewardPointDeductTransSystem record ID of the loyalty transaction that deducts the points.Int64
RefRecId
YesRetailLoyaltyCardRewardPointTrans.RecIdNone
RewardPointSourceTransSystem record ID of the loyalty transaction that the points come from.Int64
RefRecId
NoRetailLoyaltyCardRewardPointTrans.RecIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (2)

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

  • RewardPointDeductTrans → RetailLoyaltyCardRewardPointTrans

    Join on RewardPointDeductTrans = RetailLoyaltyCardRewardPointTrans.RecId

    One or more RetailLoyaltyCardRewardPointDeduction records → exactly one RetailLoyaltyCardRewardPointTrans record

  • RewardPointSourceTrans → RetailLoyaltyCardRewardPointTrans

    Join on RewardPointSourceTrans = RetailLoyaltyCardRewardPointTrans.RecId

    Many RetailLoyaltyCardRewardPointDeduction records → zero or one RetailLoyaltyCardRewardPointTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk