Table
RetailPosBatchTaxTrans
Shift tax transactions
Holds tax totals for a POS shift. There is one record per store, register, shift, sales tax code and tax rate. It shows the tax and net amounts for that combination. It links to the shift, store, register, channel and sales tax code.
- Table name
RetailPosBatchTaxTrans- Module
Commerce transactions and orders- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
StoreTerminalBatchTaxCodeIdx- Replacement key
None- Key fields
StoreId, TerminalId, BatchID, TaxCode, TaxRate- Model
Foundation
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreIdStore number for the shift. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | None |
TerminalIdRegister number for the shift. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | None |
BatchIDID of the shift. With store and register it points to one shift. | Int64RetailPosBatchID | Yes | RetailPosBatchTable.BatchID | None |
TaxCodeSales tax code that the amounts relate to. | StringTaxCode | Yes | TaxTable.TaxCode | None |
TaxRateTax rate that applies to the amounts. | RealRetailTaxRate | No | None | |
ChannelRecord ID of the retail channel. | Int64RefRecId | No | RetailChannelTable.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
NetAmountNet amount excluding tax for this tax code and rate. | RealRetailNetAmount | No | None | |
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 | |
ReplicationCounterCounter used to track replication of the record. | IntegerRetailReplicationCounter | No | None | |
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 | |
TaxAmountTax amount for the tax code and rate. | RealAmount | No | None |
Indexes (1)
StoreTerminalBatchTaxCodeIdxPrimary indexStoreId,TerminalId,BatchID,TaxCode,TaxRateUnique, alternate key.
Relations (5)
Each relation joins RetailPosBatchTaxTrans to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailPosBatchTaxTrans records → zero or one RetailChannelTable record
RetailPosBatchTable→RetailPosBatchTableJoin on
BatchID = RetailPosBatchTable.BatchID,TerminalId = RetailPosBatchTable.TerminalId,StoreId = RetailPosBatchTable.StoreIdMany RetailPosBatchTaxTrans records → exactly one RetailPosBatchTable record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailPosBatchTaxTrans records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailPosBatchTaxTrans records → exactly one RetailTerminalTable record
TaxTable→TaxTableJoin on
TaxCode = TaxTable.TaxCodeMany RetailPosBatchTaxTrans records → exactly one TaxTable record
Get this data out
No public entity reads from RetailPosBatchTaxTrans. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailPosBatchTaxTrans in a report, an integration or a migration? Talk to Dr Dynamics.