Table

RetailIncomeExpenseAccountTable

Income/expense account

Defines income and expense accounts for a store. It is keyed by store number and account number. Each account has a type, a ledger account, a name and text lines for slips and messages.

Table name
RetailIncomeExpenseAccountTable
Module
Commerce transactions and orders
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
storeAccountIdx
Replacement key
storeAccountIdx
Key fields
storeId, accountNum
Model
Foundation

Fields (19)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
storeIdStore the account belongs to.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailIncomeExpenseAccountEntity
accountNumNumber that identifies the income or expense account within the store.String
RetailIncomeExepenseAccount
YesRetailIncomeExpenseAccountEntity
accountTypeShows whether the account records income or expense.Enum
RetailIncomeExpenseAccountType
RetailIncomeExpense (enum)
NoRetailIncomeExpenseAccountEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LedgerDimensionLedger account, with its dimensions, linked to this account.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdRetailIncomeExpenseAccountEntity
messageLine1First line of message text.String (30)
RetailMessageLine
NoRetailIncomeExpenseAccountEntity
messageLine2Second line of message text.String (30)
RetailMessageLine
NoRetailIncomeExpenseAccountEntity
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
nameName of the account.String (60)
RetailIncomeExpenseAccountName
NoRetailIncomeExpenseAccountEntity
nameAliasShort name used to search for the account.String (20)
NameAlias
NoRetailIncomeExpenseAccountEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
slipText1First line of text for the slip.String (30)
RetailSlipText
NoRetailIncomeExpenseAccountEntity
slipText2Second line of text for the slip.String (30)
RetailSlipText
NoRetailIncomeExpenseAccountEntity
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

Indexes (2)

Relations (2)

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

  • DimensionAttributeValueCombination → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many RetailIncomeExpenseAccountTable records → zero or one DimensionAttributeValueCombination record

  • RetailStoreTable → RetailStoreTable

    Join on storeId = RetailStoreTable.StoreNumber

    Many RetailIncomeExpenseAccountTable records → exactly one RetailStoreTable record

Get this data out

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

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

Email sales@drdynamics.co.uk