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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
entryIdUnique number that identifies the credit memo. | String (30)RetailCreditVoucherId | No | RetailCreditMemoEntity | |
amountThe value of the credit memo. | RealAmount | No | RetailCreditMemoEntity | |
appliedShows whether the credit memo has been applied. | EnumNoYes (enum) | No | RetailCreditMemoEntity | |
appliedAmountThe amount that was applied from the credit memo. | RealRetailappliedAmount | No | RetailCreditMemoEntity | |
appliedByLineNumLine number of the transaction line where the memo was applied. | RealLineNum | No | None | |
appliedByReceiptIdReceipt number of the sale where the memo was applied. | String (18)RetailReceiptId | No | None | |
appliedByStaffIdID of the operator who applied the credit memo. | String (25)RetailStaffId | No | None | |
appliedByTerminalIdThe register where the credit memo was applied. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | None |
appliedByTransactionIdThe transaction in which the credit memo was applied. | String (44)RetailTransactionId | No | None | |
appliedDateDate on which the credit memo was applied. | DateRetailappliedDate | No | None | |
appliedInStoreIdThe store where the credit memo was applied. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | None |
appliedTimeTime of day at which the credit memo was applied. | TimeRetailappliedTime | No | None | |
createdByLineNumLine number of the transaction line that created the memo. | RealLineNum | No | None | |
createdByReceipIdReceipt number of the sale that created the memo. | String (18)RetailReceiptId | No | None | |
createdByStaffIdID of the operator who created the credit memo. | String (25)RetailStaffId | No | None | |
createdByTerminalIdThe register where the credit memo was created. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | None |
createdByTransactionIdThe transaction that created the credit memo. | String (44)RetailTransactionId | No | None | |
createdInStoreIdThe store where the credit memo was created. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | None |
currencyCodeCurrency code linked to the currency record. | String (3)CurrencyCode | No | Currency.CurrencyCode | RetailCreditMemoEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
entryTypeIdThe POS data entry type of this record. | String (20)RetailDataEntryTypeId | No | RetailDataEntryTypeTable.entryTypeId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
replicationCounterCounter value used to track replication of the record. | IntegerRetailReplicationCounter | No | None | |
reservedShows whether the credit memo is reserved. | EnumNoYes (enum) | No | None | |
reservedByStoreIdThe store that reserved the credit memo. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | None |
reservedByTerminalIdThe register that reserved the credit memo. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | None |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
transDateDate of the credit memo transaction. | DateRetailtransDate | No | None | |
transTimeTime of day of the credit memo transaction. | TimeRetailTransTime | No | None | |
voidedShows whether the credit memo has been voided. | EnumRetailVoidedNoYes (enum) | No | RetailCreditMemoEntity |
Indexes (3)
typeEntryIdxPrimary indexUnique, alternate key.
typeAppliedIdxNot unique.
replicationIdxNot unique.
Relations (10)
Each relation joins RetailCreditVoucherTable to another table on the fields shown.
AppliedRetailTransactionTable→RetailTransactionTableJoin on
appliedByTransactionId = RetailTransactionTable.transactionId,appliedByTerminalId = RetailTransactionTable.terminal,appliedInStoreId = RetailTransactionTable.storeMany RetailCreditVoucherTable records → zero or one RetailTransactionTable record
CreatedRetailTransactionTable→RetailTransactionTableJoin on
createdByTransactionId = RetailTransactionTable.transactionId,createdByTerminalId = RetailTransactionTable.terminal,createdInStoreId = RetailTransactionTable.storeMany RetailCreditVoucherTable records → zero or one RetailTransactionTable record
Currency→CurrencyJoin on
currencyCode = Currency.CurrencyCodeMany RetailCreditVoucherTable records → exactly one Currency record
RetailDataEntryTypeTable→RetailDataEntryTypeTableJoin on
entryTypeId = RetailDataEntryTypeTable.entryTypeIdMany RetailCreditVoucherTable records → exactly one RetailDataEntryTypeTable record
RetailStoreTable→RetailStoreTableJoin on
reservedByStoreId = RetailStoreTable.StoreNumberMany RetailCreditVoucherTable records → exactly one RetailStoreTable record
RetailStoreTable1→RetailStoreTableJoin on
appliedInStoreId = RetailStoreTable.StoreNumberMany RetailCreditVoucherTable records → exactly one RetailStoreTable record
RetailStoreTable2→RetailStoreTableJoin on
createdInStoreId = RetailStoreTable.StoreNumberMany RetailCreditVoucherTable records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
appliedByTerminalId = RetailTerminalTable.terminalIdMany RetailCreditVoucherTable records → exactly one RetailTerminalTable record
RetailTerminalTable1→RetailTerminalTableJoin on
createdByTerminalId = RetailTerminalTable.terminalIdMany RetailCreditVoucherTable records → exactly one RetailTerminalTable record
RetailTerminalTable2→RetailTerminalTableJoin on
reservedByTerminalId = RetailTerminalTable.terminalIdMany 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.
RetailCreditMemoEntity· 6 fields from this table
Need help with RetailCreditVoucherTable in a report, an integration or a migration? Talk to Dr Dynamics.