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 · root
  • RetailChannelTable · OuterJoin to RetailTransactionOrderInvoiceTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable

Fields (15)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
amountCurAmount of the line in the transaction currency.Real
AmountCur
NoYesRetailTransactionOrderInvoiceTrans.amountCur
ChannelThe retail channel the transaction belongs to. Points to the channel record.Int64
RefRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionOrderInvoiceTrans.Channel
invoiceIdNumber of the invoice linked to the line.String (50)
InvoiceId
NoYesRetailTransactionOrderInvoiceTrans.invoiceId
lineNumLine number within the transaction.Real
LineNum
NoYesRetailTransactionOrderInvoiceTrans.lineNum
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
NoYesRetailTransactionOrderInvoiceTrans.Origin
replicationCounterFromOriginCounter used to track replication of the record from its origin location.Integer
RetailReplicationCounter
NoYesRetailTransactionOrderInvoiceTrans.replicationCounterFromOrigin
salesIdSales order linked to the line.String (20)
SalesId
NoYesSalesTable.SalesIdRetailTransactionOrderInvoiceTrans.salesId
salesOrderInvoiceTypeShows whether the line refers to a sales order or a sales invoice.Enum
RetailSalesOrderInvoiceType
  • SalesOrder 0
  • SalesInvoice 1
NoYesRetailTransactionOrderInvoiceTrans.salesOrderInvoiceType
statementIdStatement the line belongs to.String (20)
RetailStatementId
NoYesRetailStatementTable.statementIdRetailTransactionOrderInvoiceTrans.statementId
storeIdStore where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionOrderInvoiceTrans.storeId
terminalIdRegister (POS terminal) where the transaction took place.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionOrderInvoiceTrans.terminalId
transactionIdNumber of the retail transaction the line belongs to.String (44)
RetailTransactionId
NoYesRetailTransactionTable.transactionIdRetailTransactionOrderInvoiceTrans.transactionId
transactionStatusStatus of the entry, such as voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus
  • None 0
  • Voided 1
  • Posted 2
  • Concluded 3
  • Cancelled 4
  • OnHold 5
  • Training 6
  • PendingInvoice 7
  • CreatingOrder 8
NoYesRetailTransactionOrderInvoiceTrans.transactionStatus
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
YesYesDirPartyTable.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.

Need help with RetailTransactionOrderInvoiceTransEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk