Table
RetailTransactionChargeTaxTrans
Retail charge tax transactions
Holds tax lines for charges (markups) on retail transactions. Each row is identified by channel, store, register, transaction, sales line, markup line and sales tax code. It links to the charge line and the transaction.
- Table name
RetailTransactionChargeTaxTrans- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
ChargeTaxTransIdx- Replacement key
ChargeTaxTransIdx- Key fields
Channel, StoreId, TerminalId, TransactionId, SaleLineNum, MarkupLineNum, TaxCode- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelRetail channel of the transaction, pointing to the channel record. | Int64RetailChannelRecId | No | RetailChannelTable.RecId | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity |
StoreIdNumber of the store, matched with the charge and transaction records. | StringRetailStoreId | Yes | RetailTransactionMarkupTrans.storeRetailTransactionTable.store | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity |
TerminalIdNumber of the POS register, matched with the charge and transaction records. | StringRetailTerminalId | Yes | RetailTransactionMarkupTrans.terminalIdRetailTransactionTable.terminal | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity |
TransactionIdNumber of the retail transaction. | String (44)RetailTransactionId | Yes | RetailTransactionMarkupTrans.transactionIdRetailTransactionTable.transactionId | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity |
SaleLineNumLine number of the sales line the charge belongs to. | RealRetailTransactionSalesLineNum | Yes | RetailTransactionMarkupTrans.saleLineNum | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity |
MarkupLineNumLine number of the charge (markup) line. | RealRetailTransactionMarkupLineNum | Yes | RetailTransactionMarkupTrans.markupLineNum | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity |
TaxCodeSales tax code applied. | StringTaxCode | Yes | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity | |
AmountTax amount for the charge. | RealRetailTaxAmount | No | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailTransactionChargeTaxTransBIEntity | |
IsExemptYes or no flag showing whether the tax is exempt. | EnumRetailIsExemptTaxNoYes (enum) | No | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity | |
IsIncludedInPriceYes or no flag showing whether the tax is included in the price. | EnumRetailIsTaxIncludedInPriceNoYes (enum) | No | RetailTransactionChargeTaxTransEntityRetailTransactionChargeTaxTransBIEntity | |
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 | RetailTransactionChargeTaxTransBIEntity | |
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 to track replication of the record. | IntegerRetailReplicationCounter | No | RetailTransactionChargeTaxTransBIEntity | |
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)
ChargeTaxTransIdxPrimary indexReplacement keyChannel,StoreId,TerminalId,TransactionId,SaleLineNum,MarkupLineNum,TaxCodeUnique, alternate key.
Relations (3)
Each relation joins RetailTransactionChargeTaxTrans to another table on the fields shown.
RetailTransactionMarkupTrans→RetailTransactionMarkupTransJoin on
Channel = RetailTransactionMarkupTrans.Channel,StoreId = RetailTransactionMarkupTrans.store,TerminalId = RetailTransactionMarkupTrans.terminalId,TransactionId = RetailTransactionMarkupTrans.transactionId,SaleLineNum = RetailTransactionMarkupTrans.saleLineNum,MarkupLineNum = RetailTransactionMarkupTrans.markupLineNumCardinality not set in the metadata.
RetailTransactionTable→RetailTransactionTableJoin on
Channel = RetailTransactionTable.Channel,StoreId = RetailTransactionTable.store,TerminalId = RetailTransactionTable.terminal,TransactionId = RetailTransactionTable.transactionIdCardinality not set in the metadata.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailTransactionChargeTaxTrans records → zero or one RetailChannelTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailTransactionChargeTaxTrans; use one of them in Power BI, Power Platform or a data management project.
RetailTransactionChargeTaxTransEntity· 10 fields from this tableRetailTransactionChargeTaxTransBIEntity· 13 fields from this table
Need help with RetailTransactionChargeTaxTrans in a report, an integration or a migration? Talk to Dr Dynamics.