Data entity
RetailTransactionIncomeExpenseTransEntity
Holds income and expense lines from retail transactions. Each record has an account type, account number, amount, business date, shift and statement details. The key includes the operating unit party number, store, register, transaction number and line number. It links to the retail channel and store.
- Entity name
RetailTransactionIncomeExpenseTransEntity- Public entity name
TransactionIncomeExpenseTrans- OData collection
TransactionIncomeExpenseTrans- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
OMOperatingUnit_PartyNumber, store, terminal, transactionId, lineNum- Staging table
RetailTransactionIncomeExpenseTransStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/TransactionIncomeExpenseTrans- Dataverse virtual table
mserp_retailtransactionincomeexpensetransentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailTransactionIncomeExpenseTrans· rootRetailChannelTable· OuterJoin toRetailTransactionIncomeExpenseTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailDirectSalesChannel· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTable
Fields (24)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
accountTypeShows whether the line is an income or an expense. | EnumRetailIncomeExpenseAccountType
| No | Yes | RetailTransactionIncomeExpenseTrans.accountType | |
amountAmount of the income or expense line. | RealAmount | No | Yes | RetailTransactionIncomeExpenseTrans.amount | |
businessDateBusiness date of the transaction. | DateRetailBusinessDate | No | Yes | RetailTransactionIncomeExpenseTrans.businessDate | |
ChannelRetail channel the transaction belongs to, pointing to the channel record. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionIncomeExpenseTrans.Channel |
counterCounter value stored with the line.low confidence | IntegerRetailCounter | No | Yes | RetailTransactionIncomeExpenseTrans.counter | |
incomeExepenseAccountNumber of the income or expense account used, pointing to the account record for the store. | StringRetailIncomeExepenseAccount | No | Yes | RetailIncomeExpenseAccountTable.accountNum | RetailTransactionIncomeExpenseTrans.incomeExepenseAccount |
lineNumLine number within the transaction. | RealLineNum | No | Yes | RetailTransactionIncomeExpenseTrans.lineNum | |
OriginNumber of the location where the record originated. | String (50)RetailConnDistributionLocationId | No | Yes | RetailTransactionIncomeExpenseTrans.Origin | |
receiptIdNumber printed on the receipt for this transaction. | String (18)RetailReceiptId | No | Yes | RetailTransactionIncomeExpenseTrans.receiptId | |
replicatedYes/No flag showing whether the record has been replicated. | EnumRetailReplicated
| No | Yes | RetailTransactionIncomeExpenseTrans.replicated | |
replicationCounterFromOriginCounter used to track replication of the record from where it was created. | IntegerRetailReplicationCounter | No | Yes | RetailTransactionIncomeExpenseTrans.replicationCounterFromOrigin | |
shiftIdentifier of the work shift of the transaction. | StringRetailShiftId | No | Yes | RetailTransactionIncomeExpenseTrans.shift | |
shiftDateDate of the work shift, linked to the work shift record. | DateRetailShiftDate | No | Yes | RetailTransactionIncomeExpenseTrans.shiftDate | |
staffID of the operator who handled the transaction. | String (25)RetailStaffId | No | Yes | RetailTransactionIncomeExpenseTrans.staff | |
statementCodeCode of the statement that the line is assigned to. | String (25)RetailStatementCode | No | Yes | RetailTransactionIncomeExpenseTrans.statementCode | |
statementIdNumber of the statement that includes this line, pointing to the statement record. | String (20)RetailStatementId | No | Yes | RetailStatementTable.statementId | RetailTransactionIncomeExpenseTrans.statementId |
storeNumber of the store where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionIncomeExpenseTrans.store |
terminalNumber of the POS register that handled the transaction. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionIncomeExpenseTrans.terminal |
transactionIdNumber of the retail transaction that this line belongs to. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.transactionId | RetailTransactionIncomeExpenseTrans.transactionId |
transactionStatusStatus of the entry, for example voided, posted, concluded or on hold. | EnumRetailTransEntryStatus
| No | Yes | RetailTransactionIncomeExpenseTrans.transactionStatus | |
transDateDate of the transaction. | DateTransDate | No | Yes | RetailTransactionIncomeExpenseTrans.transDate | |
transTimeTime of the transaction. | TimeRetailTransTime | No | Yes | RetailTransactionIncomeExpenseTrans.transTime | |
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber |
Foreign keys (7)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionIncomeExpenseTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
incomeExepenseAccount→RetailIncomeExpenseAccountTable.accountNum(key of RetailIncomeExpenseAccountTable)Join on all of:
incomeExepenseAccount=RetailIncomeExpenseAccountTable.accountNum,store=RetailIncomeExpenseAccountTable.storeIdMany RetailTransactionIncomeExpenseTrans records → exactly one RetailIncomeExpenseAccountTable record
RetailIncomeExpenseAccountTable details: see RetailIncomeExpenseAccountEntity
statementId→RetailStatementTable.statementId(key of RetailStatementTable)Many RetailTransactionIncomeExpenseTrans records → exactly one RetailStatementTable record
RetailStatementTable details: see RetailEodStatementAggregationEntity
store→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionIncomeExpenseTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
terminal→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionIncomeExpenseTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
transactionId→RetailTransactionTable.transactionId(key of RetailTransactionTable)Join on all of:
transactionId=RetailTransactionTable.transactionId,store=RetailTransactionTable.store,terminal=RetailTransactionTable.terminal,Channel=RetailTransactionTable.ChannelMany RetailTransactionIncomeExpenseTrans records → zero or one RetailTransactionTable record
RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity
RetailChannelTable_OMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Need help with RetailTransactionIncomeExpenseTransEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.