Table
RetailTransactionOrderInvoiceTrans
Transaction order invoice transaction
Holds lines that link a retail transaction to a sales order or a sales invoice. Each line is identified by channel, store, register, transaction number and line number. It also points to the statement the line was included in.
- Table name
RetailTransactionOrderInvoiceTrans- 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, storeId, terminalId, transactionId, lineNum- Model
Foundation
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelThe retail channel the transaction belongs to. Points to the channel record. | Int64RefRecId | No | RetailChannelTable.RecId | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity |
storeIdStore where the transaction took place. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity |
terminalIdRegister (POS terminal) where the transaction took place. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity |
transactionIdNumber of the retail transaction the line belongs to. | String (44)RetailTransactionId | No | RetailTransactionTable.transactionId | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity |
lineNumLine number within the transaction. | RealLineNum | No | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity | |
amountCurAmount of the line in the transaction currency. | RealAmountCur | No | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailTransactionOrderInvoiceTransBIEntity | |
invoiceIdNumber of the invoice linked to the line. | String (50)InvoiceId | No | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity | |
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 | RetailTransactionOrderInvoiceTransBIEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
replicationCounterFromOriginCounter used to track replication of the record from its origin location. | IntegerRetailReplicationCounter | No | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity | |
salesIdSales order linked to the line. | String (20)SalesId | No | SalesTable.SalesId | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity |
salesOrderInvoiceTypeShows whether the line refers to a sales order or a sales invoice. | EnumRetailSalesOrderInvoiceType (enum) | No | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity | |
statementIdStatement the line belongs to. | String (20)RetailStatementId | No | RetailStatementTable.statementId | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity |
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, such as voided, posted, concluded or on hold. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | RetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity |
Indexes (3)
transactionLineIdxPrimary indexChannel,storeId,terminalId,transactionId,lineNumUnique, alternate key.
LocationIdxOrigin,replicationCounterFromOriginNot unique.
statementIdxNot unique.
Relations (6)
Each relation joins RetailTransactionOrderInvoiceTrans to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailTransactionOrderInvoiceTrans records → zero or one RetailChannelTable record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdMany RetailTransactionOrderInvoiceTrans records → exactly one RetailStatementTable record
RetailStoreTable→RetailStoreTableJoin on
storeId = RetailStoreTable.StoreNumberMany RetailTransactionOrderInvoiceTrans records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminalId = RetailTerminalTable.terminalIdMany RetailTransactionOrderInvoiceTrans records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
terminalId = RetailTransactionTable.terminal,storeId = RetailTransactionTable.store,transactionId = RetailTransactionTable.transactionId,Channel = RetailTransactionTable.ChannelMany RetailTransactionOrderInvoiceTrans records → zero or one RetailTransactionTable record
SalesTable→SalesTableJoin on
salesId = SalesTable.SalesIdMany RetailTransactionOrderInvoiceTrans records → exactly one SalesTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailTransactionOrderInvoiceTrans; use one of them in Power BI, Power Platform or a data management project.
RetailTransactionOrderInvoiceTransEntity· 13 fields from this tableRetailTransactionOrderInvoiceTransBIEntity· 15 fields from this table
Need help with RetailTransactionOrderInvoiceTrans in a report, an integration or a migration? Talk to Dr Dynamics.