Table

RetailCreditVoucherChannelTable

Credit memo channel transactions

Holds credit memo (credit voucher) records as seen by retail channels. The key is the credit memo number. Each record shows whether the memo was applied or reserved, and by which store, register, operator and transaction.

Table name
RetailCreditVoucherChannelTable
Module
Commerce payments
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
typeEntryIdx
Replacement key
None
Key fields
entryId
Model
Foundation

Fields (22)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
entryIdNumber of the credit memo. It identifies the record.String (30)
RetailCreditVoucherId
NoRetailCreditVoucherChannelTableEntity
appliedShows whether the credit memo has been applied (yes or no).Enum
NoYes (enum)
NoRetailCreditVoucherChannelTableEntity
appliedAmountAmount applied from the credit memo.Real
RetailappliedAmount
NoRetailCreditVoucherChannelTableEntity
appliedByLineNumLine number of the transaction line that applied the credit memo.Real
LineNum
NoRetailCreditVoucherChannelTableEntity
appliedByReceiptIdReceipt number of the sale that applied the credit memo.String (18)
RetailReceiptId
NoRetailCreditVoucherChannelTableEntity
appliedByStaffIdID of the operator who applied the credit memo.String (25)
RetailStaffId
NoRetailCreditVoucherChannelTableEntity
appliedByTerminalIdRegister where the credit memo was applied.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailCreditVoucherChannelTableEntity
appliedByTransactionIdRetail transaction that applied the credit memo.String (44)
RetailTransactionId
NoRetailCreditVoucherChannelTableEntity
appliedDateDate the credit memo was applied.Date
RetailappliedDate
NoRetailCreditVoucherChannelTableEntity
appliedInStoreIdStore where the credit memo was applied.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailCreditVoucherChannelTableEntity
appliedTimeTime of day the credit memo was applied.Time
RetailappliedTime
NoRetailCreditVoucherChannelTableEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
operationOperation done on the credit memo: none, offline unlock or redeem.Enum
RetailCreditVoucherOperation (enum)
NoRetailCreditVoucherChannelTableEntity
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
replicationCounterFromOriginCounter value used to track replication of the record from its origin.Integer
RetailReplicationCounter
NoRetailCreditVoucherChannelTableEntity
reservedShows whether the credit memo is reserved (yes or no).Enum
NoYes (enum)
NoRetailCreditVoucherChannelTableEntity
reservedByStoreIdStore that reserved the credit memo.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailCreditVoucherChannelTableEntity
reservedByTerminalIdRegister that reserved the credit memo.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailCreditVoucherChannelTableEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

  • typeEntryIdxPrimary index

    entryId

    Unique, alternate key.

  • typeAppliedIdx

    applied

    Not unique.

Relations (5)

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

  • AppliedRetailTransactionTable → RetailTransactionTable

    Join on appliedByTransactionId = RetailTransactionTable.transactionId, appliedByTerminalId = RetailTransactionTable.terminal, appliedInStoreId = RetailTransactionTable.store

    Many RetailCreditVoucherChannelTable records → zero or one RetailTransactionTable record

  • RetailStoreTable → RetailStoreTable

    Join on reservedByStoreId = RetailStoreTable.StoreNumber

    Many RetailCreditVoucherChannelTable records → exactly one RetailStoreTable record

  • RetailStoreTable1 → RetailStoreTable

    Join on appliedInStoreId = RetailStoreTable.StoreNumber

    Many RetailCreditVoucherChannelTable records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on appliedByTerminalId = RetailTerminalTable.terminalId

    Many RetailCreditVoucherChannelTable records → exactly one RetailTerminalTable record

  • RetailTerminalTable2 → RetailTerminalTable

    Join on reservedByTerminalId = RetailTerminalTable.terminalId

    Many RetailCreditVoucherChannelTable records → exactly one RetailTerminalTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailCreditVoucherChannelTable; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk