Table

RetailTransactionTaxTrans

Tax transactions

Holds tax amounts for retail sales lines. Each row is identified by channel, register, store, transaction, sales line number and tax code. It links to the store, register, channel, transaction and tax code. Several retail tax entities, including BI and auditable versions, use it.

Table name
RetailTransactionTaxTrans
Module
Commerce transactions and orders
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
TaxTransIdx
Replacement key
None
Key fields
Channel, TerminalId, StoreId, TransactionId, SaleLineNum, TaxCode
Model
Foundation

Fields (19)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelPoints to the retail channel.Int64
RefRecId
NoRetailChannelTable.RecIdRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more
TerminalIdNumber of the register.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more
StoreIdNumber of the store.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityRetailTransactionTaxTransBIEntityand 1 more
TransactionIdNumber of the retail transaction.String (44)
RetailTransactionId
YesRetailTransactionTable.transactionIdRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more
SaleLineNumLine number of the sales transaction.Real
RetailTransactionSalesLineNum
YesRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more
TaxCodeSales tax code applied.String
TaxCode
YesTaxTable.TaxCodeRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more
AmountTax amount for the sales line.Real
Amount
NoRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailTransactionTaxTransBIEntityRetailTransactionTaxTransCDREntity
IsExemptYes/no flag showing whether the line is tax exempt.Enum
TaxExemptTax
NoYes (enum)
NoRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more
IsIncludedInPriceYes/no flag showing whether the tax is included in the price.Enum
NoYes (enum)
NoRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more
OriginLocation number the record came from.String (50)
RetailConnDistributionLocationId
NoRetailTransactionTaxTransEntityRetailTransactionTaxTransBIEntityRetailTransactionTaxTransCDREntity
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
NoRetailTransactionTaxTransBIEntityRetailTransactionTaxTransCDREntity
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 from the origin.Integer
RetailReplicationCounter
NoRetailTransactionTaxTransEntityRetailTransactionTaxTransBIEntityRetailTransactionTaxTransCDREntity
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
TaxBaseAmountAmount the tax is based on.Real
TaxBaseCur
NoRetailTransactionTaxTransEntityRetailTransactionTaxTransBIEntityRetailTransactionTaxTransCDREntity
TaxPercentageTax rate value.Real
TaxValue
NoRetailTransactionTaxLineEntityRetailTransactionTaxTransEntityRetailTransactionAuditableTaxLineEntityand 2 more

Indexes (3)

Relations (5)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailTransactionTaxTrans records → zero or one RetailChannelTable record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailTransactionTaxTrans records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailTransactionTaxTrans records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on TerminalId = RetailTransactionTable.terminal, StoreId = RetailTransactionTable.store, TransactionId = RetailTransactionTable.transactionId, Channel = RetailTransactionTable.Channel

    Many RetailTransactionTaxTrans records → exactly one RetailTransactionTable record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many RetailTransactionTaxTrans records → exactly one TaxTable record

Get this data out

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

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

Email sales@drdynamics.co.uk