Core Concepts
Accounting Entries
Double-entry bookkeeping with balanced debit and credit
Chart of Accounts
Hierarchical account structure with accounts and subaccounts
Fiscal Exercises
Multi-year management with opening and closing entries
Tax Integration
VAT regularization and tax reporting
Accounting Entries (Asientos)
Accounting entries are the foundation of the double-entry bookkeeping system.Entry Structure
Located atCore/Model/Asiento.php:
Key Features
- Auto-numbering: Sequential numbering within each fiscal exercise
- Balance Validation: Ensures debits equal credits
- Exercise Control: Can only edit entries in open exercises
- Tax Regularization: Prevents editing entries within closed tax periods
- Audit Trail: All changes are logged
Entry Lines (Partidas)
Each accounting entry consists of multiple lines:Balance Checking
Chart of Accounts (Plan Contable)
The chart of accounts is organized hierarchically.Accounts (Cuentas)
First-level accounts define the main categories. Located atCore/Model/Cuenta.php:
Hierarchical Structure
Subaccounts (Subcuentas)
Subaccounts are the detail level where transactions are posted:- Automatically created for customers and suppliers
- Used in accounting entry lines
- Maintain running balances
- Linked to their parent account
Special Accounts
The system uses special account codes for automatic operations:CLIENT: Customer accountsPROVEE: Supplier accountsACREED: Creditor accountsIVARRP: VAT receivableIVASOP: VAT payable
Fiscal Exercises (Ejercicios)
Fiscal exercises represent accounting periods.Exercise Management
- Opening: Start date and end date
- Closing: Prevents modifications when closed
- Status Control: Open/closed status
- Multi-company: Separate exercises per company
Exercise States
- No new entries can be created
- Existing entries cannot be modified
- Accounts cannot be added or changed
Entry Operations
Opening Entries
Closing Entries
Regularization Entries
Entry Renumbering
The system can renumber all entries in an exercise:Editability Rules
An entry is editable only when:- The fiscal exercise is open
- The entry date is not within a closed tax regularization period
- The entry’s
editableflag is true
Automatic Account Creation
Subaccounts are automatically created for:Customers
Suppliers
Automatic Code Generation
Integration with Business Operations
The accounting system automatically creates entries for:- Customer invoices: Debit customer, credit sales and VAT
- Supplier invoices: Debit purchases and VAT, credit supplier
- Payment receipts: Debit bank, credit customer/supplier
- Stock movements: Depending on configuration
Journals (Diarios)
Journals categorize accounting entries:- General journal
- Sales journal
- Purchases journal
- Bank journal
- Custom journals
iddiario.
Validation and Testing
Audit Logging
Reports and Analysis
The accounting system supports:- Balance Sheet: Assets and liabilities
- Profit & Loss: Income and expenses
- Trial Balance: All account balances
- Journal Reports: Entry listings
- Tax Reports: VAT declarations
Best Practices
Exercise Planning
Exercise Planning
Create fiscal exercises in advance. Ensure dates don’t overlap and cover all business periods.
Chart of Accounts
Chart of Accounts
Import a standard chart of accounts for your country. Customize as needed but maintain the hierarchical structure.
Entry Validation
Entry Validation
Always ensure entries are balanced before saving. The system will prevent unbalanced entries.
Regular Reconciliation
Regular Reconciliation
Regularly reconcile bank accounts and customer/supplier balances against accounting records.
Exercise Closing
Exercise Closing
Only close exercises after generating all required reports and ensuring all entries are correct.
Related Models
Core/Model/Asiento.php- Accounting entriesCore/Model/Partida.php- Entry linesCore/Model/Cuenta.php- AccountsCore/Model/Subcuenta.php- SubaccountsCore/Model/Ejercicio.php- Fiscal exercisesCore/Model/CuentaEspecial.php- Special account definitionsCore/Model/Diario.php- JournalsCore/Model/RegularizacionImpuesto.php- Tax regularization periods
Next Steps
Invoicing
Learn how invoices generate accounting entries
Reports
Generate financial reports and analytics

