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 descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreIdStore number for the shift.String
RetailStoreId
YesRetailStoreTable.StoreNumberNone
TerminalIdRegister number for the shift.String
RetailTerminalId
YesRetailTerminalTable.terminalIdNone
BatchIDID of the shift. With store and register it points to one shift.Int64
RetailPosBatchID
YesRetailPosBatchTable.BatchIDNone
TaxCodeSales tax code that the amounts relate to.String
TaxCode
YesTaxTable.TaxCodeNone
TaxRateTax rate that applies to the amounts.Real
RetailTaxRate
NoNone
ChannelRecord ID of the retail channel.Int64
RefRecId
NoRetailChannelTable.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
NetAmountNet amount excluding tax for this tax code and rate.Real
RetailNetAmount
NoNone
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
ReplicationCounterCounter used to track replication of the record.Integer
RetailReplicationCounter
NoNone
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 tax code and rate.Real
Amount
NoNone

Indexes (1)

Relations (5)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailPosBatchTaxTrans records → zero or one RetailChannelTable record

  • RetailPosBatchTable → RetailPosBatchTable

    Join on BatchID = RetailPosBatchTable.BatchID, TerminalId = RetailPosBatchTable.TerminalId, StoreId = RetailPosBatchTable.StoreId

    Many RetailPosBatchTaxTrans records → exactly one RetailPosBatchTable record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailPosBatchTaxTrans records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailPosBatchTaxTrans records → exactly one RetailTerminalTable record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

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

Email sales@drdynamics.co.uk