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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelPoints to the retail channel (by system record ID).Int64
RefRecId
NoRetailChannelTable.RecIdRetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity
StoreNumber of the store where the transaction was made.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity
TerminalNumber of the POS register where the transaction was made.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity
TransactionIdNumber of the retail transaction that the adjustment belongs to.String (44)
RetailTransactionId
YesRetailTransactionFiscalTrans.TransactionIdRetailTransactionSalesTrans.TransactionIdRetailTransactionTable.transactionIdRetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity
FiscalTransLineNumLine number of the fiscal transaction line the adjustment is linked to.Real
LineNum
YesRetailTransactionFiscalTrans.LineNumRetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity
FiscalTransRecordGuidGUID of the fiscal transaction record the adjustment is linked to.Guid
SysGuid
NoRetailTransactionFiscalTrans.RecordGuidRetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity
SalesTransLineNumLine number of the sales transaction line that is adjusted.Real
LineNum
YesRetailTransactionSalesTrans.LineNumRetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ExcludeYes/No flag that keeps the sales line out of sales reports.Enum
NoYesId
NoYes (enum)
NoRetailFiscalTransSalesTransAdjustmentEntityRetailFiscalTransSalesLineAdjustmentEntity
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 used when the record is replicated from its origin.Integer
RetailReplicationCounter
NoRetailFiscalTransSalesTransAdjustmentEntity
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 (1)

Relations (6)

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

  • RetailTransactionSalesTrans → RetailTransactionSalesTrans

    Join on Channel = RetailTransactionSalesTrans.Channel, Store = RetailTransactionSalesTrans.store, Terminal = RetailTransactionSalesTrans.TerminalId, TransactionId = RetailTransactionSalesTrans.TransactionId, SalesTransLineNum = RetailTransactionSalesTrans.LineNum

    Zero or one RetailFiscalTransSalesTransAdjustment record → exactly one RetailTransactionSalesTrans record

  • RetailStoreTable → RetailStoreTable

    Join on Store = RetailStoreTable.StoreNumber

    Many RetailFiscalTransSalesTransAdjustment records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on Terminal = RetailTerminalTable.terminalId

    Many RetailFiscalTransSalesTransAdjustment records → exactly one RetailTerminalTable record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailFiscalTransSalesTransAdjustment records → zero or one RetailChannelTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on TransactionId = RetailTransactionTable.transactionId, Store = RetailTransactionTable.store, Terminal = RetailTransactionTable.terminal, Channel = RetailTransactionTable.Channel

    Zero or one RetailFiscalTransSalesTransAdjustment record → exactly one RetailTransactionTable record

  • RetailTransactionFiscalTrans → RetailTransactionFiscalTrans

    Join on Channel = RetailTransactionFiscalTrans.Channel, Store = RetailTransactionFiscalTrans.store, Terminal = RetailTransactionFiscalTrans.Terminal, TransactionId = RetailTransactionFiscalTrans.TransactionId, FiscalTransLineNum = RetailTransactionFiscalTrans.LineNum, FiscalTransRecordGuid = RetailTransactionFiscalTrans.RecordGuid

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

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

Email sales@drdynamics.co.uk