Table

RetailCreditVoucherTable

Credit memo table

Holds credit memos issued and used in retail. The key is the credit memo number. Each record shows where and when the memo was created, whether it was reserved, applied or voided, and which store, register, operator and transaction were involved.

Table name
RetailCreditVoucherTable
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 (33)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
entryIdUnique number that identifies the credit memo.String (30)
RetailCreditVoucherId
NoRetailCreditMemoEntity
amountThe value of the credit memo.Real
Amount
NoRetailCreditMemoEntity
appliedShows whether the credit memo has been applied.Enum
NoYes (enum)
NoRetailCreditMemoEntity
appliedAmountThe amount that was applied from the credit memo.Real
RetailappliedAmount
NoRetailCreditMemoEntity
appliedByLineNumLine number of the transaction line where the memo was applied.Real
LineNum
NoNone
appliedByReceiptIdReceipt number of the sale where the memo was applied.String (18)
RetailReceiptId
NoNone
appliedByStaffIdID of the operator who applied the credit memo.String (25)
RetailStaffId
NoNone
appliedByTerminalIdThe register where the credit memo was applied.String
RetailTerminalId
NoRetailTerminalTable.terminalIdNone
appliedByTransactionIdThe transaction in which the credit memo was applied.String (44)
RetailTransactionId
NoNone
appliedDateDate on which the credit memo was applied.Date
RetailappliedDate
NoNone
appliedInStoreIdThe store where the credit memo was applied.String
RetailStoreId
NoRetailStoreTable.StoreNumberNone
appliedTimeTime of day at which the credit memo was applied.Time
RetailappliedTime
NoNone
createdByLineNumLine number of the transaction line that created the memo.Real
LineNum
NoNone
createdByReceipIdReceipt number of the sale that created the memo.String (18)
RetailReceiptId
NoNone
createdByStaffIdID of the operator who created the credit memo.String (25)
RetailStaffId
NoNone
createdByTerminalIdThe register where the credit memo was created.String
RetailTerminalId
NoRetailTerminalTable.terminalIdNone
createdByTransactionIdThe transaction that created the credit memo.String (44)
RetailTransactionId
NoNone
createdInStoreIdThe store where the credit memo was created.String
RetailStoreId
NoRetailStoreTable.StoreNumberNone
currencyCodeCurrency code linked to the currency record.String (3)
CurrencyCode
NoCurrency.CurrencyCodeRetailCreditMemoEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
entryTypeIdThe POS data entry type of this record.String (20)
RetailDataEntryTypeId
NoRetailDataEntryTypeTable.entryTypeIdNone
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
replicationCounterCounter value used to track replication of the record.Integer
RetailReplicationCounter
NoNone
reservedShows whether the credit memo is reserved.Enum
NoYes (enum)
NoNone
reservedByStoreIdThe store that reserved the credit memo.String
RetailStoreId
NoRetailStoreTable.StoreNumberNone
reservedByTerminalIdThe register that reserved the credit memo.String
RetailTerminalId
NoRetailTerminalTable.terminalIdNone
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
transDateDate of the credit memo transaction.Date
RetailtransDate
NoNone
transTimeTime of day of the credit memo transaction.Time
RetailTransTime
NoNone
voidedShows whether the credit memo has been voided.Enum
RetailVoided
NoYes (enum)
NoRetailCreditMemoEntity

Indexes (3)

Relations (10)

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

  • AppliedRetailTransactionTable → RetailTransactionTable

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

    Many RetailCreditVoucherTable records → zero or one RetailTransactionTable record

  • CreatedRetailTransactionTable → RetailTransactionTable

    Join on createdByTransactionId = RetailTransactionTable.transactionId, createdByTerminalId = RetailTransactionTable.terminal, createdInStoreId = RetailTransactionTable.store

    Many RetailCreditVoucherTable records → zero or one RetailTransactionTable record

  • Currency → Currency

    Join on currencyCode = Currency.CurrencyCode

    Many RetailCreditVoucherTable records → exactly one Currency record

  • RetailDataEntryTypeTable → RetailDataEntryTypeTable

    Join on entryTypeId = RetailDataEntryTypeTable.entryTypeId

    Many RetailCreditVoucherTable records → exactly one RetailDataEntryTypeTable record

  • RetailStoreTable → RetailStoreTable

    Join on reservedByStoreId = RetailStoreTable.StoreNumber

    Many RetailCreditVoucherTable records → exactly one RetailStoreTable record

  • RetailStoreTable1 → RetailStoreTable

    Join on appliedInStoreId = RetailStoreTable.StoreNumber

    Many RetailCreditVoucherTable records → exactly one RetailStoreTable record

  • RetailStoreTable2 → RetailStoreTable

    Join on createdInStoreId = RetailStoreTable.StoreNumber

    Many RetailCreditVoucherTable records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on appliedByTerminalId = RetailTerminalTable.terminalId

    Many RetailCreditVoucherTable records → exactly one RetailTerminalTable record

  • RetailTerminalTable1 → RetailTerminalTable

    Join on createdByTerminalId = RetailTerminalTable.terminalId

    Many RetailCreditVoucherTable records → exactly one RetailTerminalTable record

  • RetailTerminalTable2 → RetailTerminalTable

    Join on reservedByTerminalId = RetailTerminalTable.terminalId

    Many RetailCreditVoucherTable records → exactly one RetailTerminalTable record

Get this data out

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

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

Email sales@drdynamics.co.uk