Table
RetailFiscalTransSalesTransAdjustment
Sales transaction adjustment
Links a fiscal transaction line to a sales transaction line and records whether the sales line is excluded from sales reports. The key combines channel, store, register, transaction, the fiscal line and GUID, and the sales line. It points to the fiscal, sales and main transaction tables.
- Table name
RetailFiscalTransSalesTransAdjustment- Module
Commerce- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
IdIdx- Replacement key
None- Key fields
Channel, Store, Terminal, TransactionId, FiscalTransLineNum, FiscalTransRecordGuid, SalesTransLineNum- Model
Foundation
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelPoints to the retail channel (by system record ID). | Int64RefRecId | No | RetailChannelTable.RecId | RetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity |
StoreNumber of the store where the transaction was made. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity |
TerminalNumber of the POS register where the transaction was made. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity |
TransactionIdNumber of the retail transaction that the adjustment belongs to. | String (44)RetailTransactionId | Yes | RetailTransactionFiscalTrans.TransactionIdRetailTransactionSalesTrans.TransactionIdRetailTransactionTable.transactionId | RetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity |
FiscalTransLineNumLine number of the fiscal transaction line the adjustment is linked to. | RealLineNum | Yes | RetailTransactionFiscalTrans.LineNum | RetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity |
FiscalTransRecordGuidGUID of the fiscal transaction record the adjustment is linked to. | GuidSysGuid | No | RetailTransactionFiscalTrans.RecordGuid | RetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity |
SalesTransLineNumLine number of the sales transaction line that is adjusted. | RealLineNum | Yes | RetailTransactionSalesTrans.LineNum | RetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ExcludeYes/No flag that keeps the sales line out of sales reports. | EnumNoYesIdNoYes (enum) | No | RetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity | |
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 | None | |
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 when the record is replicated from its origin. | IntegerRetailReplicationCounter | No | RetailFiscalTransSalesTransAdjustmentEntity | |
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 |
Indexes (1)
IdIdxPrimary indexChannel,Store,Terminal,TransactionId,FiscalTransLineNum,FiscalTransRecordGuid,SalesTransLineNumUnique, alternate key.
Relations (6)
Each relation joins RetailFiscalTransSalesTransAdjustment to another table on the fields shown.
RetailTransactionSalesTrans→RetailTransactionSalesTransJoin on
Channel = RetailTransactionSalesTrans.Channel,Store = RetailTransactionSalesTrans.store,Terminal = RetailTransactionSalesTrans.TerminalId,TransactionId = RetailTransactionSalesTrans.TransactionId,SalesTransLineNum = RetailTransactionSalesTrans.LineNumZero or one RetailFiscalTransSalesTransAdjustment record → exactly one RetailTransactionSalesTrans record
RetailStoreTable→RetailStoreTableJoin on
Store = RetailStoreTable.StoreNumberMany RetailFiscalTransSalesTransAdjustment records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
Terminal = RetailTerminalTable.terminalIdMany RetailFiscalTransSalesTransAdjustment records → exactly one RetailTerminalTable record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailFiscalTransSalesTransAdjustment records → zero or one RetailChannelTable record
RetailTransactionTable→RetailTransactionTableJoin on
TransactionId = RetailTransactionTable.transactionId,Store = RetailTransactionTable.store,Terminal = RetailTransactionTable.terminal,Channel = RetailTransactionTable.ChannelZero or one RetailFiscalTransSalesTransAdjustment record → exactly one RetailTransactionTable record
RetailTransactionFiscalTrans→RetailTransactionFiscalTransJoin on
Channel = RetailTransactionFiscalTrans.Channel,Store = RetailTransactionFiscalTrans.store,Terminal = RetailTransactionFiscalTrans.Terminal,TransactionId = RetailTransactionFiscalTrans.TransactionId,FiscalTransLineNum = RetailTransactionFiscalTrans.LineNum,FiscalTransRecordGuid = RetailTransactionFiscalTrans.RecordGuidMany RetailFiscalTransSalesTransAdjustment records → exactly one RetailTransactionFiscalTrans record
Get this data out
Tables are not exposed directly. These public entities read from RetailFiscalTransSalesTransAdjustment; use one of them in Power BI, Power Platform or a data management project.
RetailFiscalTransSalesTransAdjustmentEntity· 9 fields from this tableRetailFiscalTransSalesLineAdjustmentEntity· 8 fields from this table
Need help with RetailFiscalTransSalesTransAdjustment in a report, an integration or a migration? Talk to Dr Dynamics.