Table

RetailTransactionTaxTransGTE

GTE tax transaction

Holds tax amounts by tax component for each retail transaction line, for the generic tax engine. The key is channel, store, register, transaction, line number and tax component. It links to the transaction, channel, store and register.

Table name
RetailTransactionTaxTransGTE
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, StoreId, TerminalId, TransactionId, SaleLineNum, TaxComponent
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRetail channel the record belongs to.Int64
RetailChannelRecId
NoRetailChannelTable.RecIdRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
StoreIdStore where the transaction took place.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
TerminalIdRegister where the transaction took place.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
TransactionIdTransaction that the tax row belongs to.String (44)
RetailTransactionId
YesRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
SaleLineNumLine number of the sale line.Real
LineNum
YesRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
TaxComponentName of the tax component.String (60)
TaxComponent_IN
YesRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailTransactionTaxTransGTEBIEntity
IsIncludedInPriceShows whether the tax is included in the price.Enum
NoYes (enum)
NoRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
OriginLocation number that the record came from.String (50)
RetailConnDistributionLocationId
NoRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
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
NoRetailTransactionTaxTransGTEBIEntity
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 for replication from the origin location.Integer
RetailReplicationCounter
NoRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
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
TaxAmountTax amount for the component. The currency is not stated in the metadata.Real
Amount
NoRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
TaxBasisAmount the tax is based on. The currency is not stated in the metadata.Real
Amount
NoRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity
TaxPercentageTax rate value.Real
TaxValue
NoRetailTransactionGTETaxLineEntityRetailTransactionTaxTransGTEEntityRetailTransactionTaxTransGTEBIEntity

Indexes (2)

Relations (4)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailTransactionTaxTransGTE records → zero or one RetailChannelTable record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailTransactionTaxTransGTE records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailTransactionTaxTransGTE records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

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

    Many RetailTransactionTaxTransGTE records → exactly one RetailTransactionTable record

Get this data out

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

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

Email sales@drdynamics.co.uk