User Story
Acceptance Criteria 1
GIVEN I'm a user
WHEN I view a Class
THEN I want to see the number of remaining seats.
HINT: Create a new formula field which displays the remaining seats (Capacity - Total Students)
Acceptance Criteria 1
GIVEN I'm a user
WHEN I add anew student
THEN the system should prevent me creating a new student record if the class capacity is already full.
Acceptance Criteria 2
GIVEN I'm a user
WHEN I visit a class's page
AND Class don't have any more capacity for new students
THEN the system will show an alert message at the top of the class page
Alert Message:
If Class is full:
The class [Class Name] is currently at full capacity and cannot accommodate additional students. Please consider enrolling the student in a different class or increasing the maximum enrollment capacity of the class if appropriate.
If Class is not full:
This class is not full, and there are still remaining seats available.
Description:
As a school administrator, I want the system to prevent me from adding new students to a class that is already at full capacity, so that I can avoid exceeding the maximum enrollment limit and ensure a fair and effective classroom environment for all students.