Table
RetailTransactionCustomerAccountDepositTrans
Holds customer account deposit lines taken at a point of sale. Each row is identified by channel, store, register, transaction number and line number. It records the amount, the customer account, the receipt, the shift and the statement it relates to.
- Table name
RetailTransactionCustomerAccountDepositTrans- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
transactionLineIdx- Replacement key
None- Key fields
Channel, store, terminal, transactionId, lineNum- Model
Foundation
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelRetail channel the transaction belongs to, pointing to the channel record. | Int64RefRecId | No | RetailChannelTable.RecId | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity |
storeNumber of the store where the transaction took place. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity |
terminalNumber of the POS register that handled the transaction. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity |
transactionIdNumber of the retail transaction that this line belongs to. | String (44)RetailTransactionId | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
lineNumLine number of the deposit within the transaction. | RealLineNum | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
amountAmount of the deposit. | RealAmount | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
businessDateDate of the deposit. | DateTransDate | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
commentPurpose not clear from the metadata.low confidence | String (60) | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
counterCounter value stored with the line.low confidence | IntegerRetailCounter | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
custAccountCustomer account that the deposit is made to; it points to an income/expense account record for the store. | String (38)RetailAsyncCustAccount | No | RetailIncomeExpenseAccountTable.accountNum | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailTransactionCustomerAccountDepositTransBIEntity | |
OriginNumber of the location where the record originated. | String (50)RetailConnDistributionLocationId | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
receiptIdNumber printed on the receipt for this transaction. | String (18)RetailReceiptId | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | RetailTransactionCustomerAccountDepositTransBIEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
replicatedYes/No flag showing whether the record has been replicated. | EnumRetailReplicatedNoYes (enum) | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
replicationCounterFromOriginCounter used to track replication of the record from where it was created. | IntegerRetailReplicationCounter | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
shiftIdentifier of the work shift in which the deposit was taken. | StringRetailShiftId | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
shiftDateDate of the work shift, linked to the work shift record. | DateRetailShiftDate | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
staffID of the operator who handled the transaction. | String (25)RetailStaffId | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
statementCodeCode of the statement that the line is assigned to. | String (25)RetailStatementCode | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
statementIdNumber of the statement that includes this line, pointing to the statement record. | String (20)RetailStatementId | No | RetailStatementTable.statementId | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity |
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 | |
transactionStatusStatus of the entry, for example voided, posted, concluded or on hold. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
transDateDate of the transaction. | DateTransDate | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity | |
transTimeTime of the transaction. | TimeRetailTransTime | No | RetailTransactionCustomerAccountDepositTransEntityRetailTransactionCustomerAccountDepositTransBIEntity |
Indexes (3)
transactionLineIdxPrimary indexChannel,store,terminal,transactionId,lineNumUnique, alternate key.
LocationIdxOrigin,replicationCounterFromOriginNot unique.
CustStatusStoreTerminalTransactionIdIdxcustAccount,transactionStatus,store,terminal,transactionIdNot unique.
Relations (7)
Each relation joins RetailTransactionCustomerAccountDepositTrans to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailTransactionCustomerAccountDepositTrans records → zero or one RetailChannelTable record
RetailIncomeExpenseAccountTable→RetailIncomeExpenseAccountTableJoin on
store = RetailIncomeExpenseAccountTable.storeId,custAccount = RetailIncomeExpenseAccountTable.accountNumMany RetailTransactionCustomerAccountDepositTrans records → exactly one RetailIncomeExpenseAccountTable record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdMany RetailTransactionCustomerAccountDepositTrans records → exactly one RetailStatementTable record
RetailStoreTable→RetailStoreTableJoin on
store = RetailStoreTable.StoreNumberMany RetailTransactionCustomerAccountDepositTrans records → exactly one RetailStoreTable record
RetailStoreWorkShiftTable→RetailStoreWorkShiftTableJoin on
shiftDate = RetailStoreWorkShiftTable.shiftDateMany RetailTransactionCustomerAccountDepositTrans records → zero or one RetailStoreWorkShiftTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminal = RetailTerminalTable.terminalIdMany RetailTransactionCustomerAccountDepositTrans records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
transactionId = RetailTransactionTable.transactionId,store = RetailTransactionTable.store,terminal = RetailTransactionTable.terminalMany RetailTransactionCustomerAccountDepositTrans records → zero or one RetailTransactionTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailTransactionCustomerAccountDepositTrans; use one of them in Power BI, Power Platform or a data management project.
RetailTransactionCustomerAccountDepositTransEntity· 22 fields from this tableRetailTransactionCustomerAccountDepositTransBIEntity· 24 fields from this table
Need help with RetailTransactionCustomerAccountDepositTrans in a report, an integration or a migration? Talk to Dr Dynamics.