icefoganalytics / elcc-data-management

Data Management application for Education's Early Learning Child Centre
Apache License 2.0
0 stars 0 forks source link

ELCC-28: Support Cusomtization of Wage Enhancements Section - Data Modeling #61

Closed klondikemarlen closed 10 months ago

klondikemarlen commented 10 months ago

Relates to:

Context

Wage enhancement section needs more spaces – and the ability to add additional – forgive me if it does this and I just can’t figure it out…

Any given daycare or facility may have multiple personnel at each level of certification (1,2,3). Currently the system only allows for entry of one employee of each type.

Can the system dynamically allocate additional rows for each level as required by the officer entering the information? We don’t want 5 rows for each level for instance as not all of them will be used on a regular basis. The ability to add more rows as needed per level is what is required.

Requirements

pull “Wage enhancements” section out of the “worksheets” tab, and built it its own modeling on and widget on the “Employees” tab.

Current Implementation

image

Expected Implementation (more or less) image

Implementation

Add back-end modeling and set up some minimal UI component paths. Add seeders for production for models that don't have an edit interface.

employee_wage_tiers Table

wage_enhancements Table

Screenshots

Testing Instructions

  1. Boot the app via dev up
  2. Check that the app complies, and that you can log in at http://localhost:8080.
  3. Go to http://localhost:8080/child-care-centres/1/2023-24/employees/april.
  4. Scroll to the bottom of the page and you will see a Wage Enhancements section that renders the different levels.

    UI has not been implemented more than enough to test the modeling.