Table

RetailStatementTable

Statements

Holds retail statements, one row per statement number. It stores the statement period, method and type, posting status and errors, and many settings for calculation and posting, such as ledger accounts and parallel processing. It links to stores, staff, registers, batch jobs and statement lines.

Table name
RetailStatementTable
Module
Commerce transactions and orders
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
statementIdx
Replacement key
statementIdx
Key fields
statementId
Model
Foundation

Fields (78)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
statementIdNumber that identifies the statement.String (20)
RetailStatementId
YesNone
AggregateBeforePostingYes/No value linked to aggregating voucher transactions before posting.Enum
RetailRetailAggregateYesNo
NoYes (enum)
NoNone
AggregatedTransactionsBundleSizeMaximum number of transaction lines placed in one aggregated transaction.Integer
RetailEodAggregatedTransactionsBundleSize
NoNone
autosettleYes/No value for automatic settlement.Enum
RetailAutoSettle
NoYes (enum)
NoNone
bankDropCalculationHow the bank drop is worked out: sum or last.Enum
RetailBankDropCalculation
RetailBankDropCalculationBase (enum)
NoNone
calculatedDateDate when the statement was calculated.Date
TransDate
NoNone
CalculatedDateTimeDate and time of the last calculation.UtcDateTime
RetailStatementCalculatedDateTime
NoNone
CalculatedLinesNumber of lines created in the calculation.Integer
Integer
NoNone
calculatedTimeTime when the statement was calculated.Time
RetailTransTime
NoNone
closingMethodHow the statement period is closed: by date and time or by shift.Enum
RetailClosingMethod
RetailClosingMethodType (enum)
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
CreationVersionIndicatorLabel showing which version created the statement: V0 or V1.Enum
RetailStatementCreationVersionIndicator (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
debugModeYes/No value showing whether debug mode is on.Enum
RetailDebugMode
NoYes (enum)
NoNone
DefaultDimensionPoints to the set of financial dimension values for the statement.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdNone
DisableCountingRequiredYes/No value that turns off counting when posting in headquarters.Enum
NoYes (enum)
NoNone
DisableTransactionConsistencyCheckerYes/No value that turns off the check of transactions before posting.Enum
RetailTransactionConsistencyCheckerStatus
NoYes (enum)
NoNone
EnableParallelPaymentPostingForSalesYes/No value showing whether cash and carry payments are posted in parallel.Enum
RetailEodStatementPostSalesPaymentsInParallel
NoYes (enum)
NoNone
EodCodeVersionVersion of the end-of-day posting method: legacy or new.Enum
RetailEodCodeVersion (enum)
NoNone
GiftcardItemItem number used for gift cards.String (20)
ItemId
NoNone
IgnoreReturnLinkYes/No value that controls whether returns are unlinked from their original sales.Enum
RetailEodStatementIgnoreReturnLink
NoYes (enum)
NoNone
LastAttemptToClearPurpose not clear from the metadata.low confidenceUtcDateTimeNoNone
MaxNumberOfThreadsCustomerOrderUpper limit on how many parallel threads handle the customer orders of one statement.Integer
RetailEodMaxNumberOfCustomerOrderThreads
NoNone
MixMatchLedgerDimensionMain account used for mix and match discounts. It points to a dimension code combination.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoNone
MultiBuyLedgerDimensionMain account used for multi-buy discounts. It points to a dimension code combination.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
OfferLedgerDimensionMain account used for offer discounts. It points to a dimension code combination.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
oneStatementPerDayYes/No value showing whether only one statement is made per day.Enum
RetailOneStatementPerDay
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentStatusWhether payment posting has started or not.Enum
RetailStatementPaymentPostingStatus (enum)
NoNone
postedDateDate when the statement was posted.Date
TransDate
NoNone
postedTimeTime when the statement was posted.Time
RetailTransTime
NoNone
PostingBatchJobIdPoints to the batch job used to post the statement.Int64
RefRecId
NoBatchJob.RecIdNone
postingDatePosting date of the statement.Date
TransDate
NoNone
PostingErrorCodeResult code of the posting: none, error or success.Enum
RetailEodTransactionPostingErrorCode (enum)
NoNone
PostingErrorMessageText of the error message from posting.String (-1)
RetailEodTransactionPostingErrorMessage
NoNone
PostingErrorStatusPosting step at which the error happened.Enum
RetailEodTransactionPostingStatus (enum)
NoNone
PostingStatusCurrent step of the statement posting, from started to vouchers linked.Enum
RetailEodTransactionPostingStatus (enum)
NoNone
PrepaymentLedgerDimensionMain account used for prepayments. It points to a dimension code combination.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
PrePaymentLedgerJournalNameName of the ledger journal used for prepayments.String
RetailPrePaymentLedgerJournalNameId
NoNone
PrioritizeDimensionsFromPaymentMethodYes/No value showing whether payment journals take dimensions from the payment method rather than the store.Enum
RetailPrioritizeDimensionsFromPaymentMethod
NoYes (enum)
NoNone
ProcessGiftcardsAsPrepayments_RUYes/No value for handling gift card operations as prepayments, used for Russia.Enum
NoYesId
NoYes (enum)
NoNone
recalculateYes/No value showing whether the statement is to be recalculated.Enum
RetailRecalculate
NoYes (enum)
NoNone
RecalculateDimensionsOnPostingErrorYes/No value showing whether financial dimensions are worked out again after a posting error.Enum
RetailRecalculateDimensionsOnPostingError
NoYes (enum)
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
replicationCounterCounter value used for replication of the record.Integer
RetailReplicationCounter
NoNone
ReserveInventoryDuringStatementCalculationYes/No value showing whether inventory is reserved during statement calculation.Enum
RetailEodReserveInventoryDuringStatementCalculation
NoYes (enum)
NoNone
shiftDateDate of the shift that the statement covers.Date
RetailShiftDate
NoNone
shiftIdIdentifier of the shift that the statement covers.String
RetailShiftId
NoNone
SkipAggregationForReturnsYes/No value showing whether returns are kept out of aggregation, so each is posted on its own.Enum
RetailSkipAggregationForReturns
NoYes (enum)
NoNone
skipConfirmationYes/No value showing whether confirmation is skipped.Enum
RetailSkipConfirmation
NoYes (enum)
NoNone
staffOrTerminalStaff member or register that the statement is for.String (25)
RetailStaffOrTerminalFilter
NoRetailStaffTable.staffIdRetailTerminalTable.terminalIdNone
startAmountCalculationHow the start amount is worked out: sum or last.Enum
RetailStartAmountCalculation
RetailStartAmountCalculationBase (enum)
NoNone
statementDateDate of the statement.Date
TransDate
NoNone
statementMethodHow the statement is grouped: by operator ID, POS terminal, total or shift.Enum
RetailStatementMethod
RetailStaffTerminalTotal (enum)
NoNone
StatementTypeType of statement: complete, transactional or financial.Enum
RetailStatementTypeValue
RetailStatementType (enum)
NoNone
StmtAutoSettleCustomerDepositYes/No value showing whether customer deposits are settled against open customer transactions.Enum
RetailEodStatementAutoSettleCustomerDeposit
NoYes (enum)
NoNone
stmtCalcBatchEndTimeTime of day that marks the end of the business day.Time
TimeOfDay
NoNone
stmtCalcInfoLogStored messages from the statement calculation.Container
InfologData
NoNone
stmtPostInfoLogStored messages from the statement posting.Container
InfologData
NoNone
storeIdNumber of the store that the statement is for.String
RetailStoreId
YesRetailStoreTable.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
TaxOnGiftCardsYes/No value showing whether tax applies to gift cards.Enum
RetailTaxOnGiftCard
NoYes (enum)
NoNone
tenderDeclarationCalculationHow the tender declaration is worked out: last or sum.Enum
RetailTenderDeclarationCalculation
RetailTenderDeclarationCalculationBase (enum)
NoNone
ThresholdLedgerDimensionMain account used for threshold discounts. It points to a dimension code combination.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
transFromDateStart date of the transactions included.Date
RetailStartingDate
NoNone
transFromTimeStart time of the transactions included.Time
RetailStartingTime
NoNone
transToDateEnd date of the transactions included.Date
RetailEndingDate
NoNone
transToTimeEnd time of the transactions included.Time
RetailEndingTime
NoNone
UpdateGSTTransactionId_INYes/No value for updating the POS invoice number (GST transaction ID), used for India.Enum
NoYes (enum)
NoNone
UseChannelCashManagementReconciliationYes/No value showing whether cash management reconciliation from the point of sale is used for statement lines.Enum
RetailEodStatementUseChannelCashManagementReconciliation
NoYes (enum)
NoNone
UseFinancialDimensionFromReturnStoreYes or No option. When set to Yes, a return takes its financial dimensions from the return store and not from the original sale.Enum
RetailEodStatementPostReturnWithoutSaleFinancialDimension
NoYes (enum)
NoNone

Indexes (2)

Relations (13)

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

  • DimensionAttributeValueSet → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many RetailStatementTable records → exactly one DimensionAttributeValueSet record

  • RetailStaffTable → RetailStaffTable

    Join on staffOrTerminal = RetailStaffTable.staffId, statementMethod = RetailStaffTerminalTotal::Staff

    Many RetailStatementTable records → exactly one RetailStaffTable record

  • RetailStatementLine → RetailStatementLine

    Join on statementId = RetailStatementLine.statementId

    Many RetailStatementTable records → zero or one RetailStatementLine record

  • RetailStoreTable → RetailStoreTable

    Join on storeId = RetailStoreTable.StoreNumber

    One or more RetailStatementTable records → exactly one RetailStoreTable record

  • RetailStoreWorkShiftTable → RetailStoreWorkShiftTable

    Join on shiftDate = RetailStoreWorkShiftTable.shiftDate

    Many RetailStatementTable records → zero or one RetailStoreWorkShiftTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on staffOrTerminal = RetailTerminalTable.terminalId, statementMethod = RetailStaffTerminalTotal::Terminal

    Many RetailStatementTable records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on statementId = RetailTransactionTable.statementId

    Many RetailStatementTable records → zero or one RetailTransactionTable record

  • BatchJob → BatchJob

    Join on PostingBatchJobId = BatchJob.RecId

    Zero or one RetailStatementTable record → zero or one BatchJob record

  • PrepaymentLedgerDimension → DimensionAttributeValueCombination

    Join on PrepaymentLedgerDimension = DimensionAttributeValueCombination.RecId

    Many RetailStatementTable records → zero or one DimensionAttributeValueCombination record

  • ThresholdLedgerDimension → DimensionAttributeValueCombination

    Join on ThresholdLedgerDimension = DimensionAttributeValueCombination.RecId

    Many RetailStatementTable records → zero or one DimensionAttributeValueCombination record

  • MultiBuyLedgerDimension → DimensionAttributeValueCombination

    Join on MultiBuyLedgerDimension = DimensionAttributeValueCombination.RecId

    Many RetailStatementTable records → zero or one DimensionAttributeValueCombination record

  • MixMatchLedgerDimension → DimensionAttributeValueCombination

    Join on MixMatchLedgerDimension = DimensionAttributeValueCombination.RecId

    Many RetailStatementTable records → zero or one DimensionAttributeValueCombination record

  • OfferLedgerDimension → DimensionAttributeValueCombination

    Join on OfferLedgerDimension = DimensionAttributeValueCombination.RecId

    Many RetailStatementTable records → zero or one DimensionAttributeValueCombination record

Get this data out

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

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

Email sales@drdynamics.co.uk