Departments provides a tabbed interface for managing the organization’s department hierarchy and cost centers, with both a tree view and a flat list. Route:Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/fa/departments
Overview
The page fetches departments viauseDepartments(organizationId). Two tabs are available: Hierarchy View (rendered by DepartmentTree) and a flat list (second tab content not visible from page header — additional tab labels may exist). The New Department button opens DepartmentDialog with no pre-selected ID. Clicking edit on a row sets selectedDeptId and opens the dialog. The DepartmentDialog handles both create and edit based on whether selectedDeptId is defined.
Page header: “Departments — Manage department hierarchy and cost centers.”
Who it’s for
No explicit permission gate on this route.Before you start
- Departments are referenced in GL entries, cost allocations, and budget line items. Define them before posting entries.
Steps
Key concepts
useDepartments— Primary data hook; fetches all department records fororganizationId.DepartmentTree— Component rendering the hierarchical tree view of departments.DepartmentDialog— Create/edit dialog; acceptsdeptId(undefined for create) andorganizationId.
Related
Finance & Revenue
Finance & Revenue core overview.
Governance & parity
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/fa.tsx
- src/cores/fa/pages/DepartmentsPage.tsx
- src/cores/fa/hooks/useDepartments.ts
- src/cores/fa/components/DepartmentTree.tsx
- src/cores/fa/components/DepartmentDialog.tsx