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 #62

Closed klondikemarlen closed 10 months ago

klondikemarlen commented 10 months ago

Fixes https://yg-hpw.atlassian.net/browse/ELCC-28

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

Build Wage Enhancements widget as a multi-tiered table. Its very slow with 36 entries (1252ms), so we will likely need to switch to a "tier" selection + paginated table for production usage. Or I'm doing something vue render heresy that is easily avoidable ...

Screenshots

image

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. Check that you can go to http://localhost:8080/child-care-centres/1/2023-24/employees/april.
  4. Scroll down to the "Wage Enhancements" section.
  5. Add some entries with the "+" header icon.
  6. Check that you can update and delete entries.
  7. Check that the calculations of the employee wage * hours => totals are correct for estimated and actual hours.
  8. Check that the sub-totals for estimated and actual wage enhancements are correct.
  9. Check that the EI, CPP, WCB calculation is correct.
  10. Check that the final total is correct.
  11. Check that the save all button works correctly.
  12. Switch the Month and check that the results are specific to that month.
  13. Switch the fiscal year and check that the results are specific to that year.
  14. Go to the top level "Worksheets" tab and check that the "Wage Enhancements" is no longer there.