DepartmentsModule

The DepartmentsModule handles business organizational hierarchy, departmental units, cost center tagging, and manager assignments.


Methods

getDepartments()

Fetches all configured departments for the active business tenant.

const depts = await tracklr.departments.getDepartments();

createDepartment(deptData) & updateDepartment(id, updates)

Registers and modifies department records.

const newDept = await tracklr.departments.createDepartment({
  name: 'Quality Assurance',
  code: 'QA-01',
  description: 'Product quality, recipe testing, and hygiene compliance'
});