---
tags: [accounting, service]
module: Accounting
---

# AccountServices

## Connections
[[_Accounting]] · [[[Model]Account]] · [[[Service]EmployeeServices]] · [[[Model]JournalEntry]] · [[[Repo]Repositories]] · [[[Controller]AccountController]] · [[[Job]Jobs]] · [[[Cross]CrossModuleDependencies]]

## Source
`Modules/Accounting/Services/Account/`

## CRUD Services
| Service | Responsibility |
|---|---|
| `CreatingNewAccountService` | Validates + persists a new account; generates code; creates opening fiscal year balance |
| `UpdatingAccountService` | Updates account fields; handles tree re-parenting |
| `DeletingAccountService` | Soft-deletes account; validates no linked records |
| `ChangingAccountStatusService` | Activates / deactivates an account |
| `DeactivatingAccountService` | Deactivates with dependency checks |
| `GeneratingAccountCodeService` / `GenerateAccountCodeService` | Auto-generates next available account code based on sub-category |
| `ImportingAccountService` | Bulk-creates accounts from Excel import |
| `UpdatingBalanceThroughImportingService` | Updates opening balances via imported file |

## Retrieval Services
| Service | Responsibility |
|---|---|
| `RetrievingAccountsService` | Filtered account list for index views |
| `RetrievingAccountService` | Single account fetch |
| `RetrievingListAccountsService` | Lightweight list (for dropdowns) |
| `RetrievingAccountTreeService` | Builds hierarchical tree structure |
| `RetrievingAccountsPayableService` | AP-type accounts only |
| `RetrievingAccountsReceivableService` | AR-type accounts only |
| `RetrievingCashSubCategoryAccountsService` | Cash & bank accounts |
| `RetrievingRevenueMainCategoryAccountsService` | Revenue accounts |
| `RetrievingExpensesMainCategoryAccountsService` | Expense accounts |
| `RetrievingFixedAssetsAccountsService` | Fixed asset accounts |
| `RetrievingOwnersEquitySubCategoryAccountsService` | Equity accounts |
| `RetrievingAllAccountingSubCategoriesAsSelectOptionsService` | Sub-category dropdown |
| `RetrievingAllParentAccountsAsSelectOptionsService` | Parent account dropdown |
| `RetrievingCategoriesWithSubCategoriesService` | Full category tree |
| `RetrievingSubCategoriesWithAccountsService` | Sub-category with accounts |

## Preparation Services
`PreparingDataForCreatingAccountService` · `PreparingDataForDeactivatingAccountService`

## Balance Services
`HandleUpdatingAccountBalanceService` · `UpdatingCurrentFiscalYearAccountsBalancesService` · `ClosingActiveAccountsBalanceService`

## Integration Config
`ConfigureDefaultIntegrationAccountsService` — sets up default account mappings when an integration (Foodics/Zid) is first enabled

## Export
`AccountService` (PDF) — exports chart of accounts as PDF
