Skip to content

Account Structure Validation

Javapackage: com.etendoerp.account.structure.validation

Overview

This module helps prevent common configuration errors when creating or modifying subaccounts in the Account Tree. It validates the structure and configuration to avoid mismatches in financial reports such as the Income Statement or Balance Sheet.

The module includes the Enable Subaccount Validations system preference, which is configured to Y by default, ensuring the validation is active from the moment the module is installed.

Validations Performed

The module applies the following validations:

  • Verifies that the account has a parent at the Breakdown or Account level.
  • Checks that the account has one more digit than its parent account.
  • Ensures that the Account Type (Asset, Liability, Owner's Equity, Revenue, Expense, Memo) and Account Sign (Credit/Debit) match those of its parent at the Breakdown level.

If any validation fails, the system prevents saving the account, avoiding potential errors in financial reporting.

These validations are triggered not only when creating or modifying accounts, but also when moving records in the tree view, ensuring data consistency even when reorganizing the account structure.

Exclusion from Validation

The Exclude from Subaccount Validation checkbox allows flexibility in the account structure configuration. By checking this field to YES for specific accounts, those accounts will be excluded from all the validations mentioned above. This is particularly useful for accounts that require a different structure or configuration that does not need to follow the standard validation rules.

Element Value Tab - Exclude from Subaccount Validation

Info

For more information about Account Tree, visit the Account Tree - Element Value Tab.


This work is licensed under CC BY-SA 2.5 ES by Futit Services S.L.