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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
statementIdNumber of the statement the line belongs to. | String (20)RetailStatementId | Yes | RetailStatementTable.statementId | RetailStatementTransBIEntity |
lineNumLine number, which together with the statement number identifies the record. | RealLineNum | No | RetailStatementTransBIEntity | |
addedToDrawerAmount added to the cash drawer. | RealRetailAddedToDrawerAmount | No | RetailStatementTransBIEntity | |
bankedAmountAmount that was banked. | RealRetailBankedAmount | No | RetailStatementTransBIEntity | |
bankedAmountMSTBanked amount in the accounting currency. | RealRetailBankedAmountMST | No | RetailStatementTransBIEntity | |
bankedAmountStoreBanked amount in the store's currency. | RealRetailBankedAmountStore | No | RetailStatementTransBIEntity | |
cardFeeAmountFee charged for card payments. | RealRetailCardFeeAmount | No | RetailStatementTransBIEntity | |
cardTypeIdCard type, pointing to the card types set up for payment methods. | StringRetailCardTypeId | No | RetailTenderTypeCardTable.cardTypeId | RetailStatementTransBIEntity |
CashLaterReturnedAmountCur_RUReturned amount, used for Russia.low confidence | RealAmountCur | No | RetailStatementTransBIEntity | |
changeTenderAmount given back to customers as change. | RealRetailChangeTenderAmount | No | RetailStatementTransBIEntity | |
countedAmountAmount counted for the line. | RealRetailCountedAmountCur | No | RetailStatementTransBIEntity | |
countedAmountMSTCounted amount in the accounting currency. | RealRetailCountedAmountMST | No | RetailStatementTransBIEntity | |
countedAmountStoreCounted amount in the store's currency. | RealRetailCountedAmountStore | No | RetailStatementTransBIEntity | |
currencyCurrency code of the line, pointing to the currency table. | String (3)CurrencyCode | No | Currency.CurrencyCode | RetailStatementTransBIEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailStatementTransBIEntity | |
DefaultDimensionFinancial dimension set linked to the line. | Int64DimensionDefault | No | DimensionAttributeValueSet.RecId | RetailStatementTransBIEntity |
differenceAmountDifference between the expected and counted amounts. | RealRetailDifferenceAmountCur | No | RetailStatementTransBIEntity | |
differenceAmountMSTDifference amount in the accounting currency. | RealRetailDifferenceAmountMST | No | RetailStatementTransBIEntity | |
differenceAmountStoreDifference amount in the store's currency. | RealRetailDifferenceAmountStore | No | RetailStatementTransBIEntity | |
inDrawerAtEndOfDayAmount left in the drawer at the end of the day. | RealRetailInDrawerAtEndOfDay | No | RetailStatementTransBIEntity | |
orderInvoiceAmountAmount for orders and invoices on the line. | RealRetailOrderInvoiceAmountCur | No | RetailStatementTransBIEntity | |
orderInvoiceAmountMSTOrder and invoice amount in the accounting currency. | RealRetailOrderInvoiceAmountMST | No | RetailStatementTransBIEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
postedDateDate the line was posted. | DateRetailPostedDate | No | RetailStatementTransBIEntity | |
realExchRateExchange rate used for the line. | RealExchRate | No | RetailStatementTransBIEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | RetailStatementTransBIEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
removedFromDrawerAmount taken out of the cash drawer. | RealRetailRemovedFromDrawerAmount | No | RetailStatementTransBIEntity | |
replicationCounterCounter used to track replication of the record. | IntegerRetailReplicationCounter | No | RetailStatementTransBIEntity | |
safeAmountAmount held in the safe. | RealRetailSafeAmount | No | RetailStatementTransBIEntity | |
safeAmountMSTSafe amount in the accounting currency. | RealRetailSafeAmountMST | No | RetailStatementTransBIEntity | |
safeAmountStoreSafe amount in the store's currency. | RealRetailSafeAmountStore | No | RetailStatementTransBIEntity | |
staffIdID of the operator linked to the line. | String (25)RetailStaffId | No | RetailStatementTransBIEntity | |
statementCodeCode of the statement. | String (25)RetailStatementCode | No | RetailStatementTransBIEntity | |
storeExchRateExchange rate used for the store currency. | RealExchRate | No | RetailStatementTransBIEntity | |
storeIdNumber of the store, pointing to the store record. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailStatementTransBIEntity |
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 | |
tenderTypeIdPayment method, pointing to the payment method record. | StringRetailTenderTypeId | No | RetailTenderTypeTable.tenderTypeId | RetailStatementTransBIEntity |
terminalIdNumber of the POS register, pointing to the register record. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailStatementTransBIEntity |
transAmountTransaction amount of the line. | RealRetailTransAmountCur | No | RetailStatementTransBIEntity | |
transAmountInMSTTransaction amount in the accounting currency. | RealRetailTransAmountInMST | No | RetailStatementTransBIEntity | |
transAmountStoreTransaction amount in the store's currency. | RealRetailTransAmountStore | No | RetailStatementTransBIEntity | |
uniqueShiftIdUnique ID of the shift. | String (21)RetailUniqueShiftId | No | RetailStatementTransBIEntity |
Indexes (1)
statementLineIdxPrimary indexUnique, alternate key.
Relations (8)
Each relation joins RetailStatementTrans to another table on the fields shown.
Currency→CurrencyJoin on
currency = Currency.CurrencyCodeMany RetailStatementTrans records → exactly one Currency record
DimensionAttributeValueSet→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany RetailStatementTrans records → exactly one DimensionAttributeValueSet record
RetailCashDeclaration→RetailCashDeclarationJoin on
statementId = RetailCashDeclaration.statementId,lineNum = RetailCashDeclaration.lineNumMany RetailStatementTrans records → zero or one RetailCashDeclaration record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdOne or more RetailStatementTrans records → exactly one RetailStatementTable record
RetailStoreTable→RetailStoreTableJoin on
storeId = RetailStoreTable.StoreNumberMany RetailStatementTrans records → exactly one RetailStoreTable record
RetailTenderTypeCardTable→RetailTenderTypeCardTableJoin on
cardTypeId = RetailTenderTypeCardTable.cardTypeIdMany RetailStatementTrans records → exactly one RetailTenderTypeCardTable record
RetailTenderTypeTable→RetailTenderTypeTableJoin on
tenderTypeId = RetailTenderTypeTable.tenderTypeIdMany RetailStatementTrans records → exactly one RetailTenderTypeTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminalId = RetailTerminalTable.terminalIdMany 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.
RetailStatementTransBIEntity· 40 fields from this table
Need help with RetailStatementTrans in a report, an integration or a migration? Talk to Dr Dynamics.