Table

RetailStatementJour

Statement journal

Journal of retail statements, with one row per statement number. It holds the statement period, calculation and posting dates, sales, tax, discount and income or expense totals, and counts of data issues. A BI entity reads it.

Table name
RetailStatementJour
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 (51)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
statementIdNumber that identifies the statement. It points to the statement record.String (20)
RetailStatementId
NoRetailStatementTable.statementIdRetailStatementJourBIEntity
calculatedDateDate when the statement was calculated.Date
RetailStartingDate
NoRetailStatementJourBIEntity
CalculatedDateTimeDate and time of the last calculation.UtcDateTime
RetailStatementCalculatedDateTime
NoRetailStatementJourBIEntity
CalculatedLinesNumber of lines created in the calculation.Integer
Integer
NoRetailStatementJourBIEntity
calculatedTimeAnother calculation time field. It is stored as a date, not a time.low confidenceDate
RetailStartingDate
NoRetailStatementJourBIEntity
calculationTimeTime of the calculation.Time
RetailStartingTime
NoRetailStatementJourBIEntity
closingMethodHow the statement period is closed: by date and time or by shift.Enum
RetailClosingMethod
RetailClosingMethodType (enum)
NoRetailStatementJourBIEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoRetailStatementJourBIEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoRetailStatementJourBIEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailStatementJourBIEntity
DefaultDimensionPoints to the set of financial dimension values for the statement.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdRetailStatementJourBIEntity
EnableParallelPaymentPostingForSalesYes/No value showing whether cash and carry payments are posted in parallel.Enum
RetailEodStatementPostSalesPaymentsInParallel
NoYes (enum)
NoRetailStatementJourBIEntity
EodCodeVersionVersion of the end-of-day posting method: legacy or new.Enum
RetailEodCodeVersion (enum)
NoRetailStatementJourBIEntity
expensesAmountTotal expense amount for the statement. The currency is not stated in the metadata.Real
RetailExpenseAmount
NoRetailStatementJourBIEntity
IgnoreReturnLinkYes/No value that controls whether returns are unlinked from their original sales.Enum
RetailEodStatementIgnoreReturnLink
NoYes (enum)
NoRetailStatementJourBIEntity
incomeAmountTotal income amount for the statement. The currency is not stated in the metadata.Real
RetailIncomeAmount
NoRetailStatementJourBIEntity
lineDiscAmountTotal of line discounts. The currency is not stated in the metadata.Real
RetailLineDiscAmount
NoRetailStatementJourBIEntity
LoyaltyDiscAmount_RUDiscount given through loyalty points, used for Russia.Real
RetailLoyaltyDiscAmount_RU
NoRetailStatementJourBIEntity
numberOfBlockedCustomersCount of blocked customers found for the statement.Integer
RetailNumberOfBlockedCustomers
NoRetailStatementJourBIEntity
numberOfBlockedItemsCount of blocked products found for the statement.Integer
RetailNumberOfBlockedItems
NoRetailStatementJourBIEntity
numberOfItemsBarcodesNotOnFileCount of product bar codes that were not found on file.Integer
Integer
NoRetailStatementJourBIEntity
numberOfSalesPaymentDifferenceTransCount of transactions where sales and payment amounts differ.Integer
RetailNumberOfSalesPaymentDifference
NoRetailStatementJourBIEntity
numberOfWrongShiftTransactionsCount of transactions found on the wrong shift.Integer
RetailNumberOfWrongShift
NoRetailStatementJourBIEntity
numberSequenceCodeCode of the number sequence used for the statement.String
RetailSequenceCode
NoRetailStatementJourBIEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
postedDateDate when the statement was posted.Date
RetailPostedDate
NoRetailStatementJourBIEntity
PostedDateTimeDate and time when the statement was posted.UtcDateTime
RetailStatementPostedDateTime
NoRetailStatementJourBIEntity
postedTimeTime when the statement was posted.Time
RetailPostedTime
NoRetailStatementJourBIEntity
PostingBatchJobIdIdentifier of the batch job used to post the statement.Int64
RefRecId
NoRetailStatementJourBIEntity
postingDatePosting date of the statement.Date
TransDate
NoRetailStatementJourBIEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailStatementJourBIEntity
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
NoRetailStatementJourBIEntity
salesAmountTotal sales amount of the statement. The currency is not stated in the metadata.Real
RetailSalesAmount
NoRetailStatementJourBIEntity
shiftDateDate of the shift that the statement covers.Date
RetailShiftDate
NoRetailStatementJourBIEntity
shiftIdIdentifier of the shift that the statement covers.String
RetailShiftId
NoRetailStatementJourBIEntity
skipConfirmationYes/No value showing whether confirmation is skipped.Enum
NoYes (enum)
NoRetailStatementJourBIEntity
staffTerminalFilter value giving the staff member or register for the statement.String (25)
RetailStaffOrTerminalFilter
NoRetailStatementJourBIEntity
statementDateDate of the statement.Date
TransDate
NoRetailStatementJourBIEntity
statementMethodHow the statement is grouped: by operator ID, POS terminal, total or shift.Enum
RetailStatementMethod
RetailStaffTerminalTotal (enum)
NoRetailStatementJourBIEntity
StatementTypeType of statement: complete, transactional or financial.Enum
RetailStatementTypeValue
RetailStatementType (enum)
NoRetailStatementJourBIEntity
storeIdNumber of the store that the statement is for.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailStatementJourBIEntity
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
taxAmountTotal tax amount of the statement. The currency is not stated in the metadata.Real
RetailTaxAmount
NoRetailStatementJourBIEntity
totalDiscAmountTotal end discount amount of the statement. The currency is not stated in the metadata.Real
RetailEndDiscAmount
NoRetailStatementJourBIEntity
transFromDateStart date of the transactions included.Date
RetailStartingDate
NoRetailStatementJourBIEntity
transFromTimeStart time of the transactions included.Time
RetailStartingTime
NoRetailStatementJourBIEntity
transToDateEnd date of the transactions included.Date
RetailEndingDate
NoRetailStatementJourBIEntity
transToTimeEnd time of the transactions included.Time
RetailEndingTime
NoRetailStatementJourBIEntity
UseChannelCashManagementReconciliationYes/No value showing whether cash management reconciliation from the point of sale is used for statement lines.Enum
RetailEodStatementUseChannelCashManagementReconciliation
NoYes (enum)
NoRetailStatementJourBIEntity

Indexes (4)

Relations (6)

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

  • DimensionAttributeValueSet → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many RetailStatementJour records → exactly one DimensionAttributeValueSet record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Exactly one RetailStatementJour record → exactly one RetailStatementTable record

  • RetailStatementTrans → RetailStatementTrans

    Join on statementId = RetailStatementTrans.statementId

    Many RetailStatementJour records → zero or one RetailStatementTrans record

  • RetailStoreTable → RetailStoreTable

    Join on storeId = RetailStoreTable.StoreNumber

    Many RetailStatementJour records → exactly one RetailStoreTable record

  • RetailStoreWorkShiftTable → RetailStoreWorkShiftTable

    Join on shiftDate = RetailStoreWorkShiftTable.shiftDate

    Many RetailStatementJour records → zero or one RetailStoreWorkShiftTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on statementId = RetailTransactionTable.statementId

    Many RetailStatementJour records → zero or one RetailTransactionTable record

Get this data out

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

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

Email sales@drdynamics.co.uk