Skip to content

Commit

Permalink
Merge pull request #37 from marcellaantania/add-to-dg-add_leave
Browse files Browse the repository at this point in the history
Update DeveloperGuide.md to Include add_leave Use Cases
  • Loading branch information
sheryew committed Sep 30, 2023
2 parents 31d94e9 + ebdd4aa commit 7ed7276
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli
| `* * *` | HR employee | update an employee's information | have the latest information on the employee. |
| `* * *` | HR employee | delete an employee's information | do not waste storage on retired/resigned employees. |
| `* * *` | HR employee | list all my employees | can keep track of the company/department's headcount. |
| `* * *` | HR employee | prcoess employee's outstanding claims | can either subtract or add to an employee's entitlement fund. |
| `* * *` | HR employee | process employee's outstanding claims | can either subtract or add to an employee's entitlement fund. |
| `* * *` | HR employee | have an overview on the annual leave of each employee | can identify which employee needs to start clearing their annual leave days. |
| `* * *` | HR employee | add an employee's planned leave dates | keep track of the months that have the lowest manpower. |
| `* * *` | HR employee | view all employees who have birthdays in a given month | can plan the celebrations beforehand. |
Expand All @@ -295,7 +295,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli
**MSS**

1. User requests to list persons
2. AddressBook shows a list of persons
2. HR Insight shows a list of persons
3. User requests to delete a specific person in the list
4. AddressBook deletes the person

Expand All @@ -309,7 +309,7 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli

* 3a. The given index is invalid.

* 3a1. AddressBook shows an error message.
* 3a1. HR Insight shows an error message.

Use case resumes at step 2.

Expand Down Expand Up @@ -370,6 +370,31 @@ Priorities: High (must have) - `* * *`, Medium (nice to have) - `* *`, Low (unli

Use case ends.

**Use case: Adding Employee's Leaves**

**MSS**

1. User requests to list all employees.
2. HR Insight shows a list of employees.
3. User requests to add a leave of a specified month for an employee.
4. HR Insight records the leave of the employee.

Use case ends.

**Extensions**

* 3a. User provides a wrong index (Either negative or more than current headcount).

* 3a1. HR Insight shows an error message.

Use case ends.

* 3b. User provides a wrong month (Either negative or more than 12).

* 3b1. HR Insight shows an error message.

Use case ends.

*{More to be added}*

### Non-Functional Requirements
Expand Down

0 comments on commit 7ed7276

Please sign in to comment.