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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
storeIdStore the account belongs to. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailIncomeExpenseAccountEntity |
accountNumNumber that identifies the income or expense account within the store. | StringRetailIncomeExepenseAccount | Yes | RetailIncomeExpenseAccountEntity | |
accountTypeShows whether the account records income or expense. | EnumRetailIncomeExpenseAccountTypeRetailIncomeExpense (enum) | No | RetailIncomeExpenseAccountEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
LedgerDimensionLedger account, with its dimensions, linked to this account. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | RetailIncomeExpenseAccountEntity |
messageLine1First line of message text. | String (30)RetailMessageLine | No | RetailIncomeExpenseAccountEntity | |
messageLine2Second line of message text. | String (30)RetailMessageLine | No | RetailIncomeExpenseAccountEntity | |
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 | |
nameName of the account. | String (60)RetailIncomeExpenseAccountName | No | RetailIncomeExpenseAccountEntity | |
nameAliasShort name used to search for the account. | String (20)NameAlias | No | RetailIncomeExpenseAccountEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
slipText1First line of text for the slip. | String (30)RetailSlipText | No | RetailIncomeExpenseAccountEntity | |
slipText2Second line of text for the slip. | String (30)RetailSlipText | No | RetailIncomeExpenseAccountEntity | |
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 |
Indexes (2)
storeAccountIdxPrimary indexReplacement keyUnique, alternate key.
DimensionAttributeValueCombinationIdxNot unique.
Relations (2)
Each relation joins RetailIncomeExpenseAccountTable to another table on the fields shown.
DimensionAttributeValueCombination→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany RetailIncomeExpenseAccountTable records → zero or one DimensionAttributeValueCombination record
RetailStoreTable→RetailStoreTableJoin on
storeId = RetailStoreTable.StoreNumberMany 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.
RetailIncomeExpenseAccountEntity· 10 fields from this table
Need help with RetailIncomeExpenseAccountTable in a report, an integration or a migration? Talk to Dr Dynamics.