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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
statementIdNumber that identifies the statement. | String (20)RetailStatementId | Yes | None | |
AggregateBeforePostingYes/No value linked to aggregating voucher transactions before posting. | EnumRetailRetailAggregateYesNoNoYes (enum) | No | None | |
AggregatedTransactionsBundleSizeMaximum number of transaction lines placed in one aggregated transaction. | IntegerRetailEodAggregatedTransactionsBundleSize | No | None | |
autosettleYes/No value for automatic settlement. | EnumRetailAutoSettleNoYes (enum) | No | None | |
bankDropCalculationHow the bank drop is worked out: sum or last. | EnumRetailBankDropCalculationRetailBankDropCalculationBase (enum) | No | None | |
calculatedDateDate when the statement was calculated. | DateTransDate | No | None | |
CalculatedDateTimeDate and time of the last calculation. | UtcDateTimeRetailStatementCalculatedDateTime | No | None | |
CalculatedLinesNumber of lines created in the calculation. | IntegerInteger | No | None | |
calculatedTimeTime when the statement was calculated. | TimeRetailTransTime | No | None | |
closingMethodHow the statement period is closed: by date and time or by shift. | EnumRetailClosingMethodRetailClosingMethodType (enum) | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
CreationVersionIndicatorLabel showing which version created the statement: V0 or V1. | EnumRetailStatementCreationVersionIndicator (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
debugModeYes/No value showing whether debug mode is on. | EnumRetailDebugModeNoYes (enum) | No | None | |
DefaultDimensionPoints to the set of financial dimension values for the statement. | Int64DimensionDefault | No | DimensionAttributeValueSet.RecId | None |
DisableCountingRequiredYes/No value that turns off counting when posting in headquarters. | EnumNoYes (enum) | No | None | |
DisableTransactionConsistencyCheckerYes/No value that turns off the check of transactions before posting. | EnumRetailTransactionConsistencyCheckerStatusNoYes (enum) | No | None | |
EnableParallelPaymentPostingForSalesYes/No value showing whether cash and carry payments are posted in parallel. | EnumRetailEodStatementPostSalesPaymentsInParallelNoYes (enum) | No | None | |
EodCodeVersionVersion of the end-of-day posting method: legacy or new. | EnumRetailEodCodeVersion (enum) | No | None | |
GiftcardItemItem number used for gift cards. | String (20)ItemId | No | None | |
IgnoreReturnLinkYes/No value that controls whether returns are unlinked from their original sales. | EnumRetailEodStatementIgnoreReturnLinkNoYes (enum) | No | None | |
LastAttemptToClearPurpose not clear from the metadata.low confidence | UtcDateTime | No | None | |
MaxNumberOfThreadsCustomerOrderUpper limit on how many parallel threads handle the customer orders of one statement. | IntegerRetailEodMaxNumberOfCustomerOrderThreads | No | None | |
MixMatchLedgerDimensionMain account used for mix and match discounts. It points to a dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
MultiBuyLedgerDimensionMain account used for multi-buy discounts. It points to a dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
OfferLedgerDimensionMain account used for offer discounts. It points to a dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
oneStatementPerDayYes/No value showing whether only one statement is made per day. | EnumRetailOneStatementPerDayNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentStatusWhether payment posting has started or not. | EnumRetailStatementPaymentPostingStatus (enum) | No | None | |
postedDateDate when the statement was posted. | DateTransDate | No | None | |
postedTimeTime when the statement was posted. | TimeRetailTransTime | No | None | |
PostingBatchJobIdPoints to the batch job used to post the statement. | Int64RefRecId | No | BatchJob.RecId | None |
postingDatePosting date of the statement. | DateTransDate | No | None | |
PostingErrorCodeResult code of the posting: none, error or success. | EnumRetailEodTransactionPostingErrorCode (enum) | No | None | |
PostingErrorMessageText of the error message from posting. | String (-1)RetailEodTransactionPostingErrorMessage | No | None | |
PostingErrorStatusPosting step at which the error happened. | EnumRetailEodTransactionPostingStatus (enum) | No | None | |
PostingStatusCurrent step of the statement posting, from started to vouchers linked. | EnumRetailEodTransactionPostingStatus (enum) | No | None | |
PrepaymentLedgerDimensionMain account used for prepayments. It points to a dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
PrePaymentLedgerJournalNameName of the ledger journal used for prepayments. | StringRetailPrePaymentLedgerJournalNameId | No | None | |
PrioritizeDimensionsFromPaymentMethodYes/No value showing whether payment journals take dimensions from the payment method rather than the store. | EnumRetailPrioritizeDimensionsFromPaymentMethodNoYes (enum) | No | None | |
ProcessGiftcardsAsPrepayments_RUYes/No value for handling gift card operations as prepayments, used for Russia. | EnumNoYesIdNoYes (enum) | No | None | |
recalculateYes/No value showing whether the statement is to be recalculated. | EnumRetailRecalculateNoYes (enum) | No | None | |
RecalculateDimensionsOnPostingErrorYes/No value showing whether financial dimensions are worked out again after a posting error. | EnumRetailRecalculateDimensionsOnPostingErrorNoYes (enum) | 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 | |
replicationCounterCounter value used for replication of the record. | IntegerRetailReplicationCounter | No | None | |
ReserveInventoryDuringStatementCalculationYes/No value showing whether inventory is reserved during statement calculation. | EnumRetailEodReserveInventoryDuringStatementCalculationNoYes (enum) | No | None | |
shiftDateDate of the shift that the statement covers. | DateRetailShiftDate | No | None | |
shiftIdIdentifier of the shift that the statement covers. | StringRetailShiftId | No | None | |
SkipAggregationForReturnsYes/No value showing whether returns are kept out of aggregation, so each is posted on its own. | EnumRetailSkipAggregationForReturnsNoYes (enum) | No | None | |
skipConfirmationYes/No value showing whether confirmation is skipped. | EnumRetailSkipConfirmationNoYes (enum) | No | None | |
staffOrTerminalStaff member or register that the statement is for. | String (25)RetailStaffOrTerminalFilter | No | RetailStaffTable.staffIdRetailTerminalTable.terminalId | None |
startAmountCalculationHow the start amount is worked out: sum or last. | EnumRetailStartAmountCalculationRetailStartAmountCalculationBase (enum) | No | None | |
statementDateDate of the statement. | DateTransDate | No | None | |
statementMethodHow the statement is grouped: by operator ID, POS terminal, total or shift. | EnumRetailStatementMethodRetailStaffTerminalTotal (enum) | No | None | |
StatementTypeType of statement: complete, transactional or financial. | EnumRetailStatementTypeValueRetailStatementType (enum) | No | None | |
StmtAutoSettleCustomerDepositYes/No value showing whether customer deposits are settled against open customer transactions. | EnumRetailEodStatementAutoSettleCustomerDepositNoYes (enum) | No | None | |
stmtCalcBatchEndTimeTime of day that marks the end of the business day. | TimeTimeOfDay | No | None | |
stmtCalcInfoLogStored messages from the statement calculation. | ContainerInfologData | No | None | |
stmtPostInfoLogStored messages from the statement posting. | ContainerInfologData | No | None | |
storeIdNumber of the store that the statement is for. | StringRetailStoreId | Yes | 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 | |
TaxOnGiftCardsYes/No value showing whether tax applies to gift cards. | EnumRetailTaxOnGiftCardNoYes (enum) | No | None | |
tenderDeclarationCalculationHow the tender declaration is worked out: last or sum. | EnumRetailTenderDeclarationCalculationRetailTenderDeclarationCalculationBase (enum) | No | None | |
ThresholdLedgerDimensionMain account used for threshold discounts. It points to a dimension code combination. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
transFromDateStart date of the transactions included. | DateRetailStartingDate | No | None | |
transFromTimeStart time of the transactions included. | TimeRetailStartingTime | No | None | |
transToDateEnd date of the transactions included. | DateRetailEndingDate | No | None | |
transToTimeEnd time of the transactions included. | TimeRetailEndingTime | No | None | |
UpdateGSTTransactionId_INYes/No value for updating the POS invoice number (GST transaction ID), used for India. | EnumNoYes (enum) | No | None | |
UseChannelCashManagementReconciliationYes/No value showing whether cash management reconciliation from the point of sale is used for statement lines. | EnumRetailEodStatementUseChannelCashManagementReconciliationNoYes (enum) | No | None | |
UseFinancialDimensionFromReturnStoreYes or No option. When set to Yes, a return takes its financial dimensions from the return store and not from the original sale. | EnumRetailEodStatementPostReturnWithoutSaleFinancialDimensionNoYes (enum) | No | None |
Indexes (2)
statementIdxPrimary indexReplacement keyUnique, alternate key.
storeIdIdxNot unique.
Relations (13)
Each relation joins RetailStatementTable to another table on the fields shown.
DimensionAttributeValueSet→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany RetailStatementTable records → exactly one DimensionAttributeValueSet record
RetailStaffTable→RetailStaffTableJoin on
staffOrTerminal = RetailStaffTable.staffId,statementMethod = RetailStaffTerminalTotal::StaffMany RetailStatementTable records → exactly one RetailStaffTable record
RetailStatementLine→RetailStatementLineJoin on
statementId = RetailStatementLine.statementIdMany RetailStatementTable records → zero or one RetailStatementLine record
RetailStoreTable→RetailStoreTableJoin on
storeId = RetailStoreTable.StoreNumberOne or more RetailStatementTable records → exactly one RetailStoreTable record
RetailStoreWorkShiftTable→RetailStoreWorkShiftTableJoin on
shiftDate = RetailStoreWorkShiftTable.shiftDateMany RetailStatementTable records → zero or one RetailStoreWorkShiftTable record
RetailTerminalTable→RetailTerminalTableJoin on
staffOrTerminal = RetailTerminalTable.terminalId,statementMethod = RetailStaffTerminalTotal::TerminalMany RetailStatementTable records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
statementId = RetailTransactionTable.statementIdMany RetailStatementTable records → zero or one RetailTransactionTable record
BatchJob→BatchJobJoin on
PostingBatchJobId = BatchJob.RecIdZero or one RetailStatementTable record → zero or one BatchJob record
PrepaymentLedgerDimension→DimensionAttributeValueCombinationJoin on
PrepaymentLedgerDimension = DimensionAttributeValueCombination.RecIdMany RetailStatementTable records → zero or one DimensionAttributeValueCombination record
ThresholdLedgerDimension→DimensionAttributeValueCombinationJoin on
ThresholdLedgerDimension = DimensionAttributeValueCombination.RecIdMany RetailStatementTable records → zero or one DimensionAttributeValueCombination record
MultiBuyLedgerDimension→DimensionAttributeValueCombinationJoin on
MultiBuyLedgerDimension = DimensionAttributeValueCombination.RecIdMany RetailStatementTable records → zero or one DimensionAttributeValueCombination record
MixMatchLedgerDimension→DimensionAttributeValueCombinationJoin on
MixMatchLedgerDimension = DimensionAttributeValueCombination.RecIdMany RetailStatementTable records → zero or one DimensionAttributeValueCombination record
OfferLedgerDimension→DimensionAttributeValueCombinationJoin on
OfferLedgerDimension = DimensionAttributeValueCombination.RecIdMany 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.
RetailEodStatementAggregationEntity· 0 fields from this table
Need help with RetailStatementTable in a report, an integration or a migration? Talk to Dr Dynamics.