Table
MainAccountTemplate
Main account templates
Holds templates for main accounts, identified by the template name. A template stores account number, name, type, posting type, currency and exchange rate settings. It also stores validation rules for currency, posting and user.
- Table name
MainAccountTemplate- Module
Financial dimensions- Table group
Main- Table type
Regular- Data per company
No- Configuration key
LedgerBasic- Primary index
None- Replacement key
MainAccountTemplateIdx- Key fields
Name- Model
Ledger
Fields (32)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
NameName of the main account template. It is the key of the table. | String (20)MainAccountTemplateNum | Yes | None | |
AccountDescriptionName of the main account in the template. | String (60)AccountName | No | None | |
AccountNumberMain account number set in the template. | String (20)AccountNum | No | None | |
ClosingClosing type of the account: none, result, balance or capital. | EnumLedgerClosing (enum) | No | None | |
ConsolidationMainAccountMain account number used for consolidation. | String (20)LedgerConsolidateMainAccount | No | None | |
ControlUserSystem record ID of a reference. The related table is not given in the metadata.low confidence | Int64RefRecId | No | None | |
CurrencyCodeCurrency set in the template, pointing to the currency table. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DebitCreditBalanceDemandBalance control setting: none, debit or credit. | EnumDebCredBalanceDemandDebCredProposal (enum) | No | None | |
DebitCreditCheckDebit or credit requirement for the account: none, debit or credit. | EnumDebCredProposal (enum) | No | None | |
DebitCreditProposalDebit or credit proposal for the account: none, debit or credit. | EnumDebCredProposal (enum) | No | None | |
DescriptionDescription of the template account. | String (60)Description | No | None | |
ExchangeAdjustedYes/No setting for foreign currency revaluation of the account. | EnumNoYesIdNoYes (enum) | No | None | |
ExchangeAdjustmentRateTypeExchange rate type used for revaluation, pointing to the exchange rate type table. | Int64ExchangeRateTypeRecId | No | ExchangeRateType.RecId | None |
FinancialReportingExchangeRateTypeExchange rate type used for financial reporting, pointing to the exchange rate type table. | Int64ExchangeRateTypeRecId | No | ExchangeRateType.RecId | None |
FinancialReportingTranslationTypeCurrency translation type for reporting: weighted average, average, current or transaction date. | EnumFinancialReportingTranslationType (enum) | No | None | |
IsBlockedForManualEntryYes/No setting that blocks manual entry on the account. | EnumNoYes (enum) | No | None | |
MainAccountCategoryMain account category, pointing to the main account categories table. | Int64RefRecId | No | MainAccountCategory.RecId | None |
MandatoryPaymentReferenceYes/No setting that makes a reference mandatory. | EnumNoYesIdNoYes (enum) | No | None | |
MonetaryYes/No flag showing whether the account is monetary. | EnumLedgerMonetaryNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PostingTypePosting type of the account, such as exchange rate gain or sales tax. | EnumLedgerPostingType (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 | |
ReportingAccountTypeReporting type of the account: none, header, empty header or page header. | EnumDimensionLedgerAccountReportingType (enum) | No | None | |
ReportingExchangeAdjustmentRateTypeExchange rate type for the reporting currency, pointing to the exchange rate type table. | Int64ExchangeRateTypeRecId | No | ExchangeRateType.RecId | 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 | |
TypeMain account type, such as profit and loss, revenue, expense or balance sheet. | EnumDimensionLedgerAccountType (enum) | No | None | |
UserInfoIdUser ID, related to the user information table. | StringUserId | No | None | |
ValidateCurrencyRule for the currency: optional, required, or one or several valid options. | EnumFieldControl (enum) | No | None | |
ValidatePostingRule for the posting type: optional, required, or one or several valid options. | EnumFieldControl (enum) | No | None | |
ValidateUserRule for the user: optional, required, or one or several valid options. | EnumFieldControl (enum) | No | None |
Indexes (1)
MainAccountTemplateIdxReplacement keyUnique, alternate key.
Relations (6)
Each relation joins MainAccountTemplate to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany MainAccountTemplate records → zero or one Currency record
FinancialReportingExchangeRateType→ExchangeRateTypeJoin on
FinancialReportingExchangeRateType = ExchangeRateType.RecIdMany MainAccountTemplate records → zero or one ExchangeRateType record
MainAccountCategory→MainAccountCategoryJoin on
MainAccountCategory = MainAccountCategory.RecIdMany MainAccountTemplate records → zero or one MainAccountCategory record
UserInfo→UserInfoJoin on
UserInfoId = UserInfo.idMany MainAccountTemplate records → zero or one UserInfo record
ExchangeAdjustmentRateType→ExchangeRateTypeJoin on
ExchangeAdjustmentRateType = ExchangeRateType.RecIdMany MainAccountTemplate records → zero or one ExchangeRateType record
ReportingExchangeAdjustmentRateType→ExchangeRateTypeJoin on
ReportingExchangeAdjustmentRateType = ExchangeRateType.RecIdMany MainAccountTemplate records → zero or one ExchangeRateType record
Get this data out
No public entity reads from MainAccountTemplate. Its data is only reachable through the application, a custom entity or a database export.
Need help with MainAccountTemplate in a report, an integration or a migration? Talk to Dr Dynamics.