Table

RetailPosBatchLine

Holds lines for a POS shift (batch), with amounts per payment method. Amounts include counted, banked, safe, drawer and transaction values. Many are given in the transaction, accounting and store currencies. Each line links to a shift in the shift table by store, register and shift ID.

Table name
RetailPosBatchLine
Module
Commerce transactions and orders
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (41)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AddedToDrawerAmount added to the cash drawer.Real
RetailAddedToDrawerAmount
NoNone
BankedAmountAmount banked, in the line's currency.Real
RetailBankedAmount
NoNone
BankedAmountMSTAmount banked, in the accounting currency.Real
RetailBankedAmountMST
NoNone
BankedAmountStoreAmount banked, in the store's currency.Real
RetailBankedAmountStore
NoNone
BatchIdID of the shift that this line belongs to.Int64
RetailPosBatchID
YesRetailPosBatchTable.BatchIDNone
BatchTerminalIdNumber of the register used for the shift batch.String
RetailTerminalId
NoNone
CardFeeAmountFee amount charged for a card payment.Real
RetailCardFeeAmount
NoNone
CardTypeIdIdentifier of the card type used.String
RetailCardTypeId
NoNone
CashLaterReturnedAmountCur_RUReturned amount in the transaction currency. Used for Russia.low confidenceReal
AmountCur
NoNone
CashLaterReturnedAmountMST_RUReturned amount in the accounting currency. Used for Russia.low confidenceReal
AmountMST
NoNone
CashLaterReturnedAmountStore_RUReturned amount in the store's currency. Used for Russia.low confidenceReal
AmountMST
NoNone
ChangeTenderAmount of change given back to the customer.Real
RetailChangeTenderAmount
NoNone
CountedAmountAmount counted, in the line's currency.Real
RetailCountedAmountCur
NoNone
CountedAmountMSTAmount counted, in the accounting currency.Real
RetailCountedAmountMST
NoNone
CountedAmountStoreAmount counted, in the store's currency.Real
RetailCountedAmountStore
NoNone
CreatedOnChannelYes or No flag showing whether the record was created at the channel.Enum
RetailCreatedOnChannel
NoYes (enum)
NoNone
CurrencyCurrency code for the line.String (3)
CurrencyCode
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LineNumNumber that orders the line within the shift.Real
LineNum
NoNone
OrderInvoiceAmountOrder or invoice amount, in the line's currency.Real
RetailOrderInvoiceAmountCur
NoNone
OrderInvoiceAmountMSTOrder or invoice amount, in the accounting currency.Real
RetailOrderInvoiceAmountMST
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RealExchRateExchange rate used for the line.Real
ExchRate
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
RemovedFromDrawerAmount taken out of the cash drawer.Real
RetailRemovedFromDrawerAmount
NoNone
SafeAmountAmount placed in the safe, in the line's currency.Real
RetailSafeAmount
NoNone
SafeAmountMSTAmount placed in the safe, in the accounting currency.Real
RetailSafeAmountMST
NoNone
SafeAmountStoreAmount placed in the safe, in the store's currency.Real
RetailSafeAmountStore
NoNone
StaffIdIdentifier of the operator (staff member).String (25)
RetailStaffId
NoNone
StatementCodeCode of the statement.String (25)
RetailStatementCode
NoNone
StatementIdNumber of the statement.String (20)
RetailStatementId
NoNone
StoreExchRateExchange rate used for the store currency.Real
ExchRate
NoNone
StoreIdStore number. With register and shift ID it points to a shift.String
RetailStoreId
NoRetailPosBatchTable.StoreIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TenderTypeIdPayment method of the line.String
RetailTenderTypeId
NoNone
TerminalIdRegister number. With store and shift ID it points to a shift.String
RetailTerminalId
NoRetailPosBatchTable.TerminalIdNone
TransAmountTransaction amount, in the line's currency.Real
RetailTransAmountCur
NoNone
TransAmountMSTTransaction amount, in the accounting currency.Real
RetailTransAmountInMST
NoNone
TransAmountStoreTransaction amount, in the store's currency.Real
RetailTransAmountStore
NoNone
UniqueShiftIdUnique identifier of the shift.String (21)
RetailUniqueShiftId
NoNone

Indexes (2)

Relations (1)

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

  • RetailPosBatchTable → RetailPosBatchTable

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

    Many RetailPosBatchLine records → zero or one RetailPosBatchTable record

Get this data out

No public entity reads from RetailPosBatchLine. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk