Table

RetailStatementTransHistory

Archived statement transactions

Archive of retail statement transaction lines. It holds counted, banked, safe, difference and transaction amounts per payment method, store and register. No key is listed in the metadata.

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

Fields (45)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
addedToDrawerAmount added to the cash drawer.Real
RetailAddedToDrawerAmount
NoNone
bankedAmountAmount banked.Real
RetailBankedAmount
NoNone
bankedAmountMSTAmount banked, in accounting currency.Real
RetailBankedAmountMST
NoNone
bankedAmountStoreAmount banked, as a store amount.low confidenceReal
RetailBankedAmountStore
NoNone
cardFeeAmountFee amount charged for the card.Real
RetailCardFeeAmount
NoNone
cardTypeIdID of the card type.String
RetailCardTypeId
NoNone
CashLaterReturnedAmountCur_RUReturned amount, used for Russia.low confidenceReal
AmountCur
NoNone
changeTenderAmount given back as change.Real
RetailChangeTenderAmount
NoNone
countedAmountAmount counted.Real
RetailCountedAmountCur
NoNone
countedAmountMSTAmount counted, in accounting currency.Real
RetailCountedAmountMST
NoNone
countedAmountStoreAmount counted, as a store amount.low confidenceReal
RetailCountedAmountStore
NoNone
currencyCurrency code of the transaction.String (3)
CurrencyCode
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionSet of default financial dimension values.Int64
DimensionDefault
NoNone
differenceAmountDifference between the expected and counted amounts.Real
RetailDifferenceAmountCur
NoNone
differenceAmountMSTDifference amount, in accounting currency.Real
RetailDifferenceAmountMST
NoNone
differenceAmountStoreDifference amount, as a store amount.low confidenceReal
RetailDifferenceAmountStore
NoNone
inDrawerAtEndOfDayAmount left in the drawer at the end of the day.Real
RetailInDrawerAtEndOfDay
NoNone
lineNumLine number within the statement.Real
LineNum
NoNone
orderInvoiceAmountAmount of orders or invoices.Real
RetailOrderInvoiceAmountCur
NoNone
orderInvoiceAmountMSTOrder or invoice amount, in 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
postedDateDate the line was posted.Date
RetailPostedDate
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 removed from the cash drawer.Real
RetailRemovedFromDrawerAmount
NoNone
replicationCounterCounter used for data replication.Integer
RetailReplicationCounter
NoNone
safeAmountAmount held in the safe.Real
RetailSafeAmount
NoNone
safeAmountMSTSafe amount, in accounting currency.Real
RetailSafeAmountMST
NoNone
safeAmountStoreSafe amount, as a store amount.low confidenceReal
RetailSafeAmountStore
NoNone
staffIdID of the operator.String (25)
RetailStaffId
NoNone
statementCodeCode of the statement.String (25)
RetailStatementCode
NoNone
statementIdNumber of the statement.String (20)
RetailStatementId
YesNone
storeExchRateExchange rate used for the store.Real
ExchRate
NoNone
storeIdNumber of the store.String
RetailStoreId
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
SysRowVersionNumberSystem row version number.low confidenceInt64
SysRowVersionNumber
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
tenderTypeIdID of the payment method used.String
RetailTenderTypeId
NoNone
terminalIdNumber of the POS register.String
RetailTerminalId
NoNone
transAmountTransaction amount.Real
RetailTransAmountCur
NoNone
transAmountInMSTTransaction amount, in accounting currency.Real
RetailTransAmountInMST
NoNone
transAmountStoreTransaction amount, as a store amount.low confidenceReal
RetailTransAmountStore
NoNone
uniqueShiftIdUnique ID of the shift.String (21)
RetailUniqueShiftId
NoNone

Indexes (2)

Get this data out

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

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

Email sales@drdynamics.co.uk