Data entity
RetailTransactionOrderInvoiceTransEntity
Holds order and invoice lines recorded on retail transactions. Each row links a transaction line to a sales order or invoice and carries an amount in transaction currency, a statement number and an entry status. It is keyed by operating unit, store, register, transaction number and line number, and joins to the channel and store tables.
- Entity name
RetailTransactionOrderInvoiceTransEntity- Public entity name
TransactionOrderInvoiceTrans- OData collection
TransactionOrderInvoiceTrans- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
OMOperatingUnit_PartyNumber, storeId, terminalId, transactionId, lineNum- Staging table
RetailTransactionOrderInvoiceTransStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/TransactionOrderInvoiceTrans- Dataverse virtual table
mserp_retailtransactionorderinvoicetransentity. 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
RetailTransactionOrderInvoiceTrans· rootRetailChannelTable· OuterJoin toRetailTransactionOrderInvoiceTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailOnlineChannelTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTable
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
amountCurAmount of the line in the transaction currency. | RealAmountCur | No | Yes | RetailTransactionOrderInvoiceTrans.amountCur | |
ChannelThe retail channel the transaction belongs to. Points to the channel record. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionOrderInvoiceTrans.Channel |
invoiceIdNumber of the invoice linked to the line. | String (50)InvoiceId | No | Yes | RetailTransactionOrderInvoiceTrans.invoiceId | |
lineNumLine number within the transaction. | RealLineNum | No | Yes | RetailTransactionOrderInvoiceTrans.lineNum | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | Yes | RetailTransactionOrderInvoiceTrans.Origin | |
replicationCounterFromOriginCounter used to track replication of the record from its origin location. | IntegerRetailReplicationCounter | No | Yes | RetailTransactionOrderInvoiceTrans.replicationCounterFromOrigin | |
salesIdSales order linked to the line. | String (20)SalesId | No | Yes | SalesTable.SalesId | RetailTransactionOrderInvoiceTrans.salesId |
salesOrderInvoiceTypeShows whether the line refers to a sales order or a sales invoice. | Enum
| No | Yes | RetailTransactionOrderInvoiceTrans.salesOrderInvoiceType | |
statementIdStatement the line belongs to. | String (20)RetailStatementId | No | Yes | RetailStatementTable.statementId | RetailTransactionOrderInvoiceTrans.statementId |
storeIdStore where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionOrderInvoiceTrans.storeId |
terminalIdRegister (POS terminal) where the transaction took place. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionOrderInvoiceTrans.terminalId |
transactionIdNumber of the retail transaction the line belongs to. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.transactionId | RetailTransactionOrderInvoiceTrans.transactionId |
transactionStatusStatus of the entry, such as voided, posted, concluded or on hold. | EnumRetailTransEntryStatus
| No | Yes | RetailTransactionOrderInvoiceTrans.transactionStatus | |
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 RetailTransactionOrderInvoiceTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
salesId→SalesTable.SalesId(key of SalesTable)Many RetailTransactionOrderInvoiceTrans records → exactly one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
statementId→RetailStatementTable.statementId(key of RetailStatementTable)Many RetailTransactionOrderInvoiceTrans records → exactly one RetailStatementTable record
RetailStatementTable details: see RetailEodStatementAggregationEntity
storeId→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionOrderInvoiceTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
terminalId→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionOrderInvoiceTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
transactionId→RetailTransactionTable.transactionId(key of RetailTransactionTable)Join on all of:
transactionId=RetailTransactionTable.transactionId,terminalId=RetailTransactionTable.terminal,storeId=RetailTransactionTable.store,Channel=RetailTransactionTable.ChannelMany RetailTransactionOrderInvoiceTrans 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 RetailTransactionOrderInvoiceTransEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.