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-18: URL Upgrades and Model Additions To Handle Employee Benefits #58

Closed klondikemarlen closed 10 months ago

klondikemarlen commented 10 months ago

Relates to:

Context

The Employee Benefits section math is set up the same as the rest of the spreadsheet, but it really should be quite different.

Currently it does the A x B = C math horizontally, and then adding up the totals vertically like everywhere else: image

It should be just data fields for Gross, EE Cost and ER Cost, with the 8% calculating automatically, and then the Section Total being the lesser of 8% compared to Employer Cost. image

Implementation

Pre-work cleanup before adding Employee Benefits UI. Adds fiscal year slug as url param, to make it easier to lookup various data in dashboard tabs. e.g. http://localhost:8080/child-care-centres/1/2023-24/summary/reconciliation or http://localhost:8080/child-care-centres/1/2023-24/worksheets/september Adds fiscal period model for to provide naming and shared location for per-month data. Adds employee benefits model; the current one on http://localhost:8080/child-care-centres/1/2023-24/worksheets/april does not have enough flexibility to handle the requirements.

Screenshots

image

image

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. Click on the "Education is Currently Funding" widget to go to the list of centers page.
  4. Click on the first child care center to open the "Child Care Centre Details" panel.
  5. Click on the "View details" button in the bottom right corner.
  6. Check that you are redirected to http://localhost:8080/child-care-centres/1/2023-24/summary/reconciliation; the current fiscal year.
  7. Click through all the various tabs and check that they render correctly.
  8. Go to a month like http://localhost:8080/child-care-centres/1/2023-24/worksheets/august and hard refresh the page.
  9. Check that the content loads correctly with the appropriate year.
  10. Switch the "Fiscal year" via the top right selector, and check that it shows whether there are worksheets for the year or not correctly.