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 descriptionType / EDT / enumMandatoryReferencesIn public entities
statementIdNumber of the statement the line belongs to.String (20)
RetailStatementId
NoRetailStatementTable.statementIdNone
lineNumLine number within the statement.Real
LineNum
NoNone
addedToDrawerAmount added to the cash drawer.Real
RetailAddedToDrawerAmount
NoNone
bankedAmountAmount banked.Real
RetailBankedAmount
NoNone
bankedAmountMSTAmount banked, in accounting currency.Real
RetailBankedAmountMST
NoNone
bankedAmountStoreAmount banked, in the store amount.low confidenceReal
RetailBankedAmountStore
NoNone
cardFeeAmountFee amount charged for the card.Real
RetailCardFeeAmount
NoNone
cardTypeIdID of the card type, pointing to the card types table.String
RetailCardTypeId
NoRetailTenderTypeCardTable.cardTypeIdNone
CashLaterReturnedAmountCur_RUReturned amount, used for Russia.low confidenceReal
AmountCur
NoNone
CashLaterReturnedAmountMST_RUReturned amount in accounting currency, used for Russia.Real
AmountMST
NoNone
CashLaterReturnedAmountStore_RUReturned amount for the store, used for Russia (in accounting currency).low confidenceReal
AmountMST
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
countingRequiredYes/no flag showing whether counting is required.Enum
RetailCountingRequired
NoYes (enum)
NoNone
currencyCurrency code, pointing to the currency table.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionSet of default financial dimension values for the line.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdNone
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
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
TransDate
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
storeExchRateExchange rate used for the store.Real
ExchRate
NoNone
storeIdNumber of the store, pointing to the stores table.String
RetailStoreId
NoRetailStoreTable.StoreNumberNone
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
tenderDeclarationYes/no flag for a tender declaration.Enum
RetailTenderDeclaration
NoYes (enum)
NoNone
tenderTypeIdID of the payment method used.String
RetailTenderTypeId
NoRetailTenderTypeTable.tenderTypeIdNone
terminalIdNumber of the POS register.String
RetailTerminalId
NoRetailTerminalTable.terminalIdNone
transAmountTransaction amount.Real
RetailTransAmountCur
NoNone
transAmountMSTTransaction 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 (3)

Relations (8)

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

  • Currency → Currency

    Join on currency = Currency.CurrencyCode

    Many RetailStatementLine records → exactly one Currency record

  • DimensionAttributeValueSet → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many RetailStatementLine records → exactly one DimensionAttributeValueSet record

  • RetailCashDeclaration → RetailCashDeclaration

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

    Many RetailStatementLine records → zero or one RetailCashDeclaration record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Many RetailStatementLine records → exactly one RetailStatementTable record

  • RetailStoreTable → RetailStoreTable

    Join on storeId = RetailStoreTable.StoreNumber

    Many RetailStatementLine records → exactly one RetailStoreTable record

  • RetailTenderTypeCardTable → RetailTenderTypeCardTable

    Join on cardTypeId = RetailTenderTypeCardTable.cardTypeId

    Many RetailStatementLine records → exactly one RetailTenderTypeCardTable record

  • RetailTenderTypeTable → RetailTenderTypeTable

    Join on tenderTypeId = RetailTenderTypeTable.tenderTypeId

    Many RetailStatementLine records → exactly one RetailTenderTypeTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminalId = RetailTerminalTable.terminalId

    Many 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.

Email sales@drdynamics.co.uk