Skip to content

Modify Forbidden Days / Shifts

Note

Configuration can be managed in two ways:

  • Preferred: via the browser-based StaffSchedulingWeb interface.
  • Advanced/manual: by editing the JSON files in the case folder directly.

For month-based cases, files are usually located in cases/{case_id}/{MM_YYYY}/... (for example cases/77/11_2024/...).

Forbidden Days

Forbidden days are designated by TimeOffice as days when an employee is not permitted to work, except during vacation periods. These days are typically marked with a cross in the TimeOffice system.

In the full version of our application, forbidden days and vacation days are read from the database and stored in free_shifts_and_vacation_days.json in the active case folder, typically:

  • cases/{case_id}/{MM_YYYY}/free_shifts_and_vacation_days.json for month-based cases
  • cases/{case_id}/free_shifts_and_vacation_days.json for non-month cases

This file is automatically generated and contains an entry for each employee in the following format:

{
      "firstname": "Burkhild",
      "forbidden_days": [
        1,
        2,
        3,
        4,
        5,
        6,
        28,
        29
      ],
      "key": 7796,
      "name": "Hertzler",
      "planned_shifts": [],
      "vacation_days": []
}

Within this JSON structure, you can easily modify the list of forbidden days, which indicates the specific dates on which an employee is not allowed to work. To update these settings, simply locate the relevant entry for each employee and adjust the forbidden_days array as needed.