Data Classification Enums
The Finance module uses several specialized enumerations to categorize financial data into proper Income Statement and Balance Sheet classifications. These enums provide the foundation for accurate financial reporting and analysis.
Core Enumerations
Sve Income/Balance (10008051)
Purpose: Primary classification for distinguishing between income statement and balance sheet accounts.
Values:
-
Income (0): Revenue and expense accounts (Rekstur in Icelandic)
-
Used for profit & loss statement items
-
Includes revenue, cost of sales, operating expenses
-
Resets at year-end closing
-
-
Balance (1): Asset, liability, and equity accounts (Efnahagur in Icelandic)
-
Used for financial position items
-
Includes assets, liabilities, and owner's equity
-
Carries forward balances across periods
-
Sve Income/Balance Filter (10008112)
Purpose: Provides filtering options for reports and analysis.
Values:
-
None (0): No filter applied (Enginn in Icelandic)
-
Shows all account types
-
Used when classification filtering is not needed
-
-
Income (1): Filter for income statement accounts (Rekstur in Icelandic)
-
Displays only revenue and expense accounts
-
Used for P&L analysis and reporting
-
-
Balance (2): Filter for balance sheet accounts (Efnahagur in Icelandic)
-
Displays only asset, liability, and equity accounts
-
Used for financial position analysis
-
Sve Income/Balance Sheet (10008077)
Purpose: Alternative classification system for financial statement categorization.
Values:
-
Income Statement (0): Profit & loss accounts
-
Equivalent to "Income" in other enums
-
Used in contexts requiring explicit statement naming
-
-
Balance Sheet (1): Financial position accounts
-
Equivalent to "Balance" in other enums
-
Used in contexts requiring explicit statement naming
-
Sve Empty/Income/Balance (10008078)
Purpose: Extended classification that includes an empty option for initialization or special cases.
Values:
-
Empty (" "): No classification assigned
-
Used for accounts not yet classified
-
Allows for gradual implementation
-
Default state for new accounts
-
-
Income (1): Income statement classification
-
Same purpose as other Income classifications
-
-
Balance (2): Balance sheet classification
-
Same purpose as other Balance classifications
-
Usage Patterns
Primary Classification
The Sve Income/Balance enum is the primary classification system used throughout the module:
-
Assigned to G/L Accounts to categorize their nature
-
Used for sorting and filtering in the Account Budget Overview
-
Drives the display logic and grouping of accounts
Filtering and Analysis
The Sve Income/Balance Filter enum enables flexible analysis:
-
User-selectable filters for focused analysis
-
Report parameter for generating specific financial statements
-
Supports drill-down scenarios
Report Generation
The Sve Income/Balance Sheet enum supports formal report generation:
-
Used when generating official financial statements
-
Provides clear statement naming for external reporting
-
Maintains consistency with accounting standards
Initialization and Setup
The Sve Empty/Income/Balance enum supports system setup:
-
Allows accounts to exist without immediate classification
-
Supports data migration scenarios
-
Enables gradual system implementation
Technical Implementation
Extensibility
All enums are marked as Extensible = false, ensuring:
-
Consistent behavior across all installations
-
No unexpected values from extensions
-
Reliable logic in dependent code
Localization Support
The enums include both English and Icelandic captions:
-
English: Standard international terminology
-
Icelandic: Local language support with ISL comments
-
Supports multi-language deployments
Value Assignment
Values are assigned starting from 0, following AL development best practices:
-
Efficient storage and comparison
-
Consistent with Business Central standards
-
Supports future enhancement
Integration with Business Central
G/L Account Integration
The enums integrate directly with the G/L Account table:
-
Income/Balance field categorizes each account
-
Used in account setup and maintenance
-
Drives default behaviors for posting and reporting
Dimension Integration
The classification enums work with Business Central's dimension framework:
-
Support dimension-based filtering and analysis
-
Enable multi-dimensional reporting by statement type
-
Maintain classification context across dimension combinations
Budget Integration
The enums support budget functionality:
-
Budget amounts can be analyzed by statement type
-
Budget vs. actual reporting maintains classification
-
Enables statement-specific budget analysis
Best Practices
Account Setup
When setting up G/L Accounts:
-
Always assign the appropriate Income/Balance classification
-
Ensure consistency with your chart of accounts structure
-
Use the classification to drive account numbering schemes
Reporting and Analysis
When using the classifications for reporting:
-
Use the Filter enum for user-selectable report parameters
-
Apply consistent classification logic across all reports
-
Leverage the classification for automated statement generation
System Maintenance
For ongoing system maintenance:
-
Regularly review accounts without classification (Empty value)
-
Ensure new accounts receive appropriate classification
-
Maintain consistency between different enum usages
Migration Considerations
Data Migration
When migrating from other systems:
-
Use the Empty/Income/Balance enum during transition
-
Gradually assign classifications as data is validated
-
Implement validation rules to ensure complete classification
Version Upgrades
When upgrading the module:
-
Verify enum compatibility across versions
-
Check for any new classification requirements
-
Update custom code to use consistent enum references