Table

RetailSalesAgreementSalesTrans

Sales agreement transaction

Links a retail sales transaction line to a sales agreement line. The key is channel, store, register, transaction number and line number. It points to the agreement line, the channel and the sales transaction line.

Table name
RetailSalesAgreementSalesTrans
Module
Commerce transactions and orders
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
transactionLineIdx
Replacement key
transactionLineIdx
Key fields
Channel, Store, Terminal, TransactionId, LineNum
Model
Foundation

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelPoints to the retail channel of the sales transaction.Int64
RefRecId
NoRetailChannelTable.RecIdRetailSalesAgreementSalesTransEntity
StoreNumber of the store where the transaction took place. Part of the key to the sales transaction line.String
RetailStoreId
NoRetailTransactionSalesTrans.storeRetailSalesAgreementSalesTransEntity
TerminalNumber of the register where the transaction took place. Part of the key to the sales transaction line.String
RetailTerminalId
NoRetailTransactionSalesTrans.terminalIdRetailSalesAgreementSalesTransEntity
TransactionIdNumber that identifies the retail transaction. Part of the key to the sales transaction line.String (44)
RetailTransactionId
NoRetailTransactionSalesTrans.transactionIdRetailSalesAgreementSalesTransEntity
LineNumLine number within the retail transaction.Real
LineNum
NoRetailTransactionSalesTrans.lineNumRetailSalesAgreementSalesTransEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
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
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReplicationCounterFromOriginCounter value used for replication of the record from its origin.Integer
RetailReplicationCounter
NoNone
SalesAgreementLineRecordIdPoints to the sales agreement line linked to this transaction line.Int64
RefRecId
NoAgreementLine.RecIdRetailSalesAgreementSalesTransEntity
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

Indexes (3)

Relations (3)

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

  • RetailTransactionSalesTrans → RetailTransactionSalesTrans

    Join on Channel = RetailTransactionSalesTrans.Channel, Store = RetailTransactionSalesTrans.store, Terminal = RetailTransactionSalesTrans.terminalId, TransactionId = RetailTransactionSalesTrans.transactionId, LineNum = RetailTransactionSalesTrans.lineNum, DataAreaId = RetailTransactionSalesTrans.DataAreaId

    Zero or one RetailSalesAgreementSalesTrans record → zero or one RetailTransactionSalesTrans record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailSalesAgreementSalesTrans records → zero or one RetailChannelTable record

  • SalesAgreementLine → AgreementLine

    Join on SalesAgreementLineRecordId = AgreementLine.RecId

    Many RetailSalesAgreementSalesTrans records → zero or one AgreementLine record

Get this data out

Tables are not exposed directly. These public entities read from RetailSalesAgreementSalesTrans; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk