Table

RetailStatementTrans

Statement journal transactions

Holds the lines of a retail statement. Each line is identified by the statement number and a line number. It records amounts by payment method, register and shift, such as counted, banked, safe and difference amounts, in several currencies. It links to the statement, store, register, payment method and card type.

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

Fields (44)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
statementIdNumber of the statement the line belongs to.String (20)
RetailStatementId
YesRetailStatementTable.statementIdRetailStatementTransBIEntity
lineNumLine number, which together with the statement number identifies the record.Real
LineNum
NoRetailStatementTransBIEntity
addedToDrawerAmount added to the cash drawer.Real
RetailAddedToDrawerAmount
NoRetailStatementTransBIEntity
bankedAmountAmount that was banked.Real
RetailBankedAmount
NoRetailStatementTransBIEntity
bankedAmountMSTBanked amount in the accounting currency.Real
RetailBankedAmountMST
NoRetailStatementTransBIEntity
bankedAmountStoreBanked amount in the store's currency.Real
RetailBankedAmountStore
NoRetailStatementTransBIEntity
cardFeeAmountFee charged for card payments.Real
RetailCardFeeAmount
NoRetailStatementTransBIEntity
cardTypeIdCard type, pointing to the card types set up for payment methods.String
RetailCardTypeId
NoRetailTenderTypeCardTable.cardTypeIdRetailStatementTransBIEntity
CashLaterReturnedAmountCur_RUReturned amount, used for Russia.low confidenceReal
AmountCur
NoRetailStatementTransBIEntity
changeTenderAmount given back to customers as change.Real
RetailChangeTenderAmount
NoRetailStatementTransBIEntity
countedAmountAmount counted for the line.Real
RetailCountedAmountCur
NoRetailStatementTransBIEntity
countedAmountMSTCounted amount in the accounting currency.Real
RetailCountedAmountMST
NoRetailStatementTransBIEntity
countedAmountStoreCounted amount in the store's currency.Real
RetailCountedAmountStore
NoRetailStatementTransBIEntity
currencyCurrency code of the line, pointing to the currency table.String (3)
CurrencyCode
NoCurrency.CurrencyCodeRetailStatementTransBIEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailStatementTransBIEntity
DefaultDimensionFinancial dimension set linked to the line.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdRetailStatementTransBIEntity
differenceAmountDifference between the expected and counted amounts.Real
RetailDifferenceAmountCur
NoRetailStatementTransBIEntity
differenceAmountMSTDifference amount in the accounting currency.Real
RetailDifferenceAmountMST
NoRetailStatementTransBIEntity
differenceAmountStoreDifference amount in the store's currency.Real
RetailDifferenceAmountStore
NoRetailStatementTransBIEntity
inDrawerAtEndOfDayAmount left in the drawer at the end of the day.Real
RetailInDrawerAtEndOfDay
NoRetailStatementTransBIEntity
orderInvoiceAmountAmount for orders and invoices on the line.Real
RetailOrderInvoiceAmountCur
NoRetailStatementTransBIEntity
orderInvoiceAmountMSTOrder and invoice amount in the accounting currency.Real
RetailOrderInvoiceAmountMST
NoRetailStatementTransBIEntity
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
NoRetailStatementTransBIEntity
realExchRateExchange rate used for the line.Real
ExchRate
NoRetailStatementTransBIEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailStatementTransBIEntity
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
NoRetailStatementTransBIEntity
replicationCounterCounter used to track replication of the record.Integer
RetailReplicationCounter
NoRetailStatementTransBIEntity
safeAmountAmount held in the safe.Real
RetailSafeAmount
NoRetailStatementTransBIEntity
safeAmountMSTSafe amount in the accounting currency.Real
RetailSafeAmountMST
NoRetailStatementTransBIEntity
safeAmountStoreSafe amount in the store's currency.Real
RetailSafeAmountStore
NoRetailStatementTransBIEntity
staffIdID of the operator linked to the line.String (25)
RetailStaffId
NoRetailStatementTransBIEntity
statementCodeCode of the statement.String (25)
RetailStatementCode
NoRetailStatementTransBIEntity
storeExchRateExchange rate used for the store currency.Real
ExchRate
NoRetailStatementTransBIEntity
storeIdNumber of the store, pointing to the store record.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailStatementTransBIEntity
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
tenderTypeIdPayment method, pointing to the payment method record.String
RetailTenderTypeId
NoRetailTenderTypeTable.tenderTypeIdRetailStatementTransBIEntity
terminalIdNumber of the POS register, pointing to the register record.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailStatementTransBIEntity
transAmountTransaction amount of the line.Real
RetailTransAmountCur
NoRetailStatementTransBIEntity
transAmountInMSTTransaction amount in the accounting currency.Real
RetailTransAmountInMST
NoRetailStatementTransBIEntity
transAmountStoreTransaction amount in the store's currency.Real
RetailTransAmountStore
NoRetailStatementTransBIEntity
uniqueShiftIdUnique ID of the shift.String (21)
RetailUniqueShiftId
NoRetailStatementTransBIEntity

Indexes (1)

Relations (8)

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

  • Currency → Currency

    Join on currency = Currency.CurrencyCode

    Many RetailStatementTrans records → exactly one Currency record

  • DimensionAttributeValueSet → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many RetailStatementTrans records → exactly one DimensionAttributeValueSet record

  • RetailCashDeclaration → RetailCashDeclaration

    Join on statementId = RetailCashDeclaration.statementId, lineNum = RetailCashDeclaration.lineNum

    Many RetailStatementTrans records → zero or one RetailCashDeclaration record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    One or more RetailStatementTrans records → exactly one RetailStatementTable record

  • RetailStoreTable → RetailStoreTable

    Join on storeId = RetailStoreTable.StoreNumber

    Many RetailStatementTrans records → exactly one RetailStoreTable record

  • RetailTenderTypeCardTable → RetailTenderTypeCardTable

    Join on cardTypeId = RetailTenderTypeCardTable.cardTypeId

    Many RetailStatementTrans records → exactly one RetailTenderTypeCardTable record

  • RetailTenderTypeTable → RetailTenderTypeTable

    Join on tenderTypeId = RetailTenderTypeTable.tenderTypeId

    Many RetailStatementTrans records → exactly one RetailTenderTypeTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminalId = RetailTerminalTable.terminalId

    Many RetailStatementTrans records → exactly one RetailTerminalTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailStatementTrans; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk