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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelThe retail channel the transaction belongs to. Points to the channel record.Int64
RefRecId
NoRetailChannelTable.RecIdRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
storeIdStore where the transaction took place.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
terminalIdRegister (POS terminal) where the transaction took place.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
transactionIdNumber of the retail transaction the line belongs to.String (44)
RetailTransactionId
NoRetailTransactionTable.transactionIdRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
lineNumLine number within the transaction.Real
LineNum
NoRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
amountCurAmount of the line in the transaction currency.Real
AmountCur
NoRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailTransactionOrderInvoiceTransBIEntity
invoiceIdNumber of the invoice linked to the line.String (50)
InvoiceId
NoRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
NoRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailTransactionOrderInvoiceTransBIEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
replicationCounterFromOriginCounter used to track replication of the record from its origin location.Integer
RetailReplicationCounter
NoRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
salesIdSales order linked to the line.String (20)
SalesId
NoSalesTable.SalesIdRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
salesOrderInvoiceTypeShows whether the line refers to a sales order or a sales invoice.Enum
RetailSalesOrderInvoiceType (enum)
NoRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
statementIdStatement the line belongs to.String (20)
RetailStatementId
NoRetailStatementTable.statementIdRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
transactionStatusStatus of the entry, such as voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoRetailTransactionOrderInvoiceTransEntityRetailTransactionOrderInvoiceTransBIEntity

Indexes (3)

Relations (6)

Each relation joins RetailTransactionOrderInvoiceTrans to another table on the fields shown.

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailTransactionOrderInvoiceTrans records → zero or one RetailChannelTable record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Many RetailTransactionOrderInvoiceTrans records → exactly one RetailStatementTable record

  • RetailStoreTable → RetailStoreTable

    Join on storeId = RetailStoreTable.StoreNumber

    Many RetailTransactionOrderInvoiceTrans records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminalId = RetailTerminalTable.terminalId

    Many RetailTransactionOrderInvoiceTrans records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on terminalId = RetailTransactionTable.terminal, storeId = RetailTransactionTable.store, transactionId = RetailTransactionTable.transactionId, Channel = RetailTransactionTable.Channel

    Many RetailTransactionOrderInvoiceTrans records → zero or one RetailTransactionTable record

  • SalesTable → SalesTable

    Join on salesId = SalesTable.SalesId

    Many 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.

Need help with RetailTransactionOrderInvoiceTrans in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk