Table
RetailStatementLine
Statement line
Holds the lines of a retail statement, with counted, banked, safe, difference and transaction amounts per payment method. The key is the statement number and line number. Lines link to the store, register, currency, card type, payment method and statement.
- Table name
RetailStatementLine- Module
Commerce transactions and orders- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
statementLineIdx- Replacement key
None- Key fields
statementId, lineNum- Model
Foundation
Fields (47)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
statementIdNumber of the statement the line belongs to. | String (20)RetailStatementId | No | RetailStatementTable.statementId | None |
lineNumLine number within the statement. | RealLineNum | No | None | |
addedToDrawerAmount added to the cash drawer. | RealRetailAddedToDrawerAmount | No | None | |
bankedAmountAmount banked. | RealRetailBankedAmount | No | None | |
bankedAmountMSTAmount banked, in accounting currency. | RealRetailBankedAmountMST | No | None | |
bankedAmountStoreAmount banked, in the store amount.low confidence | RealRetailBankedAmountStore | No | None | |
cardFeeAmountFee amount charged for the card. | RealRetailCardFeeAmount | No | None | |
cardTypeIdID of the card type, pointing to the card types table. | StringRetailCardTypeId | No | RetailTenderTypeCardTable.cardTypeId | None |
CashLaterReturnedAmountCur_RUReturned amount, used for Russia.low confidence | RealAmountCur | No | None | |
CashLaterReturnedAmountMST_RUReturned amount in accounting currency, used for Russia. | RealAmountMST | No | None | |
CashLaterReturnedAmountStore_RUReturned amount for the store, used for Russia (in accounting currency).low confidence | RealAmountMST | No | None | |
changeTenderAmount given back as change. | RealRetailChangeTenderAmount | No | None | |
countedAmountAmount counted. | RealRetailCountedAmountCur | No | None | |
countedAmountMSTAmount counted, in accounting currency. | RealRetailCountedAmountMST | No | None | |
countedAmountStoreAmount counted, as a store amount.low confidence | RealRetailCountedAmountStore | No | None | |
countingRequiredYes/no flag showing whether counting is required. | EnumRetailCountingRequiredNoYes (enum) | No | None | |
currencyCurrency code, pointing to the currency table. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionSet of default financial dimension values for the line. | Int64DimensionDefault | No | DimensionAttributeValueSet.RecId | None |
differenceAmountDifference between the expected and counted amounts. | RealRetailDifferenceAmountCur | No | None | |
differenceAmountMSTDifference amount, in accounting currency. | RealRetailDifferenceAmountMST | No | None | |
differenceAmountStoreDifference amount, as a store amount.low confidence | RealRetailDifferenceAmountStore | No | None | |
orderInvoiceAmountAmount of orders or invoices. | RealRetailOrderInvoiceAmountCur | No | None | |
orderInvoiceAmountMSTOrder or invoice amount, in accounting currency. | RealRetailOrderInvoiceAmountMST | No | None | |
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. | DateTransDate | No | None | |
realExchRateExchange rate used for the line. | RealExchRate | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
removedFromDrawerAmount removed from the cash drawer. | RealRetailRemovedFromDrawerAmount | No | None | |
replicationCounterCounter used for data replication. | IntegerRetailReplicationCounter | No | None | |
safeAmountAmount held in the safe. | RealRetailSafeAmount | No | None | |
safeAmountMSTSafe amount, in accounting currency. | RealRetailSafeAmountMST | No | None | |
safeAmountStoreSafe amount, as a store amount.low confidence | RealRetailSafeAmountStore | No | None | |
staffIdID of the operator. | String (25)RetailStaffId | No | None | |
statementCodeCode of the statement. | String (25)RetailStatementCode | No | None | |
storeExchRateExchange rate used for the store. | RealExchRate | No | None | |
storeIdNumber of the store, pointing to the stores table. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | None |
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 | |
tenderDeclarationYes/no flag for a tender declaration. | EnumRetailTenderDeclarationNoYes (enum) | No | None | |
tenderTypeIdID of the payment method used. | StringRetailTenderTypeId | No | RetailTenderTypeTable.tenderTypeId | None |
terminalIdNumber of the POS register. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | None |
transAmountTransaction amount. | RealRetailTransAmountCur | No | None | |
transAmountMSTTransaction amount, in accounting currency. | RealRetailTransAmountInMST | No | None | |
transAmountStoreTransaction amount, as a store amount.low confidence | RealRetailTransAmountStore | No | None | |
uniqueShiftIdUnique ID of the shift. | String (21)RetailUniqueShiftId | No | None |
Indexes (3)
statementLineIdxPrimary indexUnique, alternate key.
lookupStatCalcIdxdataAreaId,replicationCounterNot unique.
PaymentMethodIdxstatementId,currency,tenderTypeId,cardTypeIdNot unique.
Relations (8)
Each relation joins RetailStatementLine to another table on the fields shown.
Currency→CurrencyJoin on
currency = Currency.CurrencyCodeMany RetailStatementLine records → exactly one Currency record
DimensionAttributeValueSet→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany RetailStatementLine records → exactly one DimensionAttributeValueSet record
RetailCashDeclaration→RetailCashDeclarationJoin on
lineNum = RetailCashDeclaration.lineNum,statementId = RetailCashDeclaration.statementIdMany RetailStatementLine records → zero or one RetailCashDeclaration record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdMany RetailStatementLine records → exactly one RetailStatementTable record
RetailStoreTable→RetailStoreTableJoin on
storeId = RetailStoreTable.StoreNumberMany RetailStatementLine records → exactly one RetailStoreTable record
RetailTenderTypeCardTable→RetailTenderTypeCardTableJoin on
cardTypeId = RetailTenderTypeCardTable.cardTypeIdMany RetailStatementLine records → exactly one RetailTenderTypeCardTable record
RetailTenderTypeTable→RetailTenderTypeTableJoin on
tenderTypeId = RetailTenderTypeTable.tenderTypeIdMany RetailStatementLine records → exactly one RetailTenderTypeTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminalId = RetailTerminalTable.terminalIdMany RetailStatementLine records → exactly one RetailTerminalTable record
Get this data out
No public entity reads from RetailStatementLine. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailStatementLine in a report, an integration or a migration? Talk to Dr Dynamics.