Skip to content

Item Categories

The Item Categories page provides a tree view for managing hierarchical categories used to classify items. Categories support parent-child relationships for multi-level organization.

Item categories page

  • Route: /items/item-categories
  • Menu Path: Item Master Data → Item Categories
  • Component: ItemCategories.tsx
  • Source: /mnt/dev/portal/services/items/frontend/src/pages/ItemCategories.tsx

Categories are displayed in an expandable tree structure showing the hierarchy. Each node displays:

  • Category code
  • Category name
  • Active status badge
  • Action buttons (Edit, Delete, Add Child)
FilterDescription
SearchSearch by code or name
Show InactiveToggle to include inactive categories
ActionPermissionDescription
Add Root CategoryCreate CategoryCreate a top-level category
Add Child CategoryCreate CategoryCreate a sub-category under a parent
EditEdit CategoryModify category details
DeleteDelete CategoryDelete a category and its children
FieldRequiredTypeDescriptionDefaultValidation
CodeYes (create only)TextUnique identifierMax 60 chars, read-only after creation
NameYesTextDisplay nameMax 200 chars
Parent CategoryNoEntity SelectParent for hierarchical organizationCircular references are prevented
ActiveNoSwitchActive statustrueInactive categories are hidden from selection

Create category dialog

Edit category dialog

Changing the parent will move the category and all its children. Circular references are automatically prevented.

When no categories exist, the page shows an initialization wizard with suggested defaults:

CategoryDescription
GeneralGeneral purpose items
ElectronicsElectronic devices and components
Office SuppliesOffice stationery and supplies
FurnitureOffice and home furniture
SuppliesGeneral supplies and consumables

You can select which categories to create from the suggestions, or create custom ones.

Deleting a category that has children will also delete all child categories. This action cannot be undone.

EventMessage
Create successCategory created successfully
Update successCategory updated successfully
Delete successCategory deleted successfully