# Educational Duration ## Purpose Open **Educational Settings → Educational Duration** (`/educational/duration`). This directory defines the maximum study year for a combination of academic year, educational degree and learning format. Its server API is named `maximum-courses`. It does not define semester dates or replace the duration of an individual [curriculum](/en/docs/learning-plan-details). It is used to generate baseline data, match curriculum years and check course limits during student progression. ## Create a configuration First prepare [academic years](/en/docs/academic-years), degrees, learning formats and required [study years](/en/docs/study-years). Add a record with four required single selections. | Field | Meaning | |---|---| | Academic year | Year to which the limit applies | | Educational degree | e.g. Bachelor's | | Learning format | e.g. full-time | | Courses | Maximum course, e.g. 4 | Courses selects an existing study-year entry, not an arbitrary number. One record is allowed per year, degree and format, even if a second record has a different maximum. Recycle-bin records also count. There are no faculty, profession, semester, translation, activity or separate date fields. Example configuration: | Academic year | Degree | Format | Maximum course | |---|---|---|---:| | 2026/27 | Bachelor's | Full-time | 4 | | 2026/27 | Bachelor's | Part-time | 5 | | 2026/27 | Master's | Full-time | 2 | Use limits appropriate to the institution. Each row is an independent setting. Create corresponding records for 2027/28 rather than assuming automatic inheritance. ## Relating courses to curriculum years The united-lessons curriculum matching mechanism uses this maximum and the selected academic year's start year. For each course from 1 to the maximum, the cohort start year is calculated as: `selected academic year's start year − (course number − 1)`. For 2026/27 and maximum 4: | Course | Curriculum start year | |---:|---| | 1 | 2026/27 | | 2 | 2025/26 | | 3 | 2024/25 | | 4 | 2023/24 | The calculation looks up existing year records; missing years are not generated. When several degrees and formats are selected, their respective limits and requested course numbers apply. If a united lesson covers only courses 2 and 3, the corresponding years are selected. See [United lessons](/en/docs/united-lessons). ## Baseline data and student progression When creating [baseline data](/en/docs/baseline-data), the server looks up the maximum for the year, degree and format. Creation is blocked if the setting is missing. Otherwise blocks are created for eligible professions for courses 1 through the maximum. A maximum of four creates blocks for courses 1, 2, 3 and 4. The setting is also used in student course transfers: the server checks whether the destination course exceeds the maximum for the **target academic year**, degree and format when the corresponding limit exists. Increasing the limit does not promote students or create new educational status records. ### Open from united lessons If a year/degree/format combination is missing, the united lesson displays a warning. Users with creation access can open Educational Duration with those three fields prefilled. Select the maximum course, save, use the provided Back action and reload the original details to retrieve updated data. Setting a maximum does not itself add a subject to students or distribute them. ## Edit, delete and restore The list supports year, degree, format and course filters, sorting and export. The table repository has no configured translated-text search; use filters. To correct the maximum, edit the existing row rather than adding a second. Updating triggers rebuilding of blocks in existing baseline-data records with the same year, degree and format: missing blocks are inserted and blocks outside the active set are removed. Before reducing a maximum from five to four, for example, inspect fifth-year records and dependent assignments. Simply adding a new setting is not a recalculation of all existing results. Deletion is soft; restore returns the previous setting. Deleting the limit does not automatically shorten plans or promote students. Restore the setting if needed again; the duplicate check identifies an existing deleted combination. ## Permissions and scopes Module `educational-duration`, routes `maximum-courses.index/show/store/update/destroy/deleted-items/restore`. Actions require distinct permissions. No faculty, department, profession or subject scopes are declared: a value is shared across the year/degree/format combination. The form also needs read access to these directories and study years. See [Role permissions](/en/docs/role-permissions). ## Troubleshooting - Duplicate: look for the same three criteria in active records and the recycle bin. - Baseline data cannot be created: check the precise year, degree and format. - Programs missing from a united lesson: check limits for all selected combinations, older years and matching curricula, then reload details. - Course transfer rejected: inspect the target year and maximum; do not alter the shared limit merely for one student without an educational reason. - Baseline blocks disappeared after editing: inspect the new range and active professions, as updating rebuilds the block set. ## Implementation references - [EducationalDurationDescriptor.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalSettings/EducationalDuration/EducationalDurationDescriptor.ts) - [index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalSettings/EducationalDuration/container/index.tsx) - [MaxCourseMissingWarning.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/LearningManagement/UnitedLessons/components/UnitedItem/components/MaxCourseMissingWarning/MaxCourseMissingWarning.tsx) - [ModuleTable.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/core/ModuleTable.tsx) - [api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/MaximumCourse/routes/api.php) - [MaximumCourseRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/MaximumCourse/Http/Requests/MaximumCourseRequest.php) - [IndexMaximumCourseRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/MaximumCourse/Http/Requests/IndexMaximumCourseRequest.php) - [MaximumCourseRepository.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/MaximumCourse/Http/Repositories/MaximumCourseRepository.php) - [MaximumCourseService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/MaximumCourse/Http/Services/MaximumCourseService.php) - [2026_09_14_120000_make_maximum_courses_unique_per_combination.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/MaximumCourse/database/migrations/2026_09_14_120000_make_maximum_courses_unique_per_combination.php) - [ReferenceDataService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ReferenceData/Http/Services/ReferenceDataService.php) - [ReferenceBlockService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ReferenceBlock/Http/Services/ReferenceBlockService.php) - [LearningPlanRepository.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LearningPlan/Http/Repositories/LearningPlanRepository.php) - [UnitedLessonsGroupService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/UnitedLessonsGroup/Http/Services/UnitedLessonsGroupService.php) - [CreateStudentCourseTransferRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/StudentCourseTransfer/Http/Requests/CreateStudentCourseTransferRequest.php)