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:
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.
Implementation
Add unique constraints to fiscal periods and employee benefits tables.
Build out an edit widget for employee benefits for a given month. Currently loading by centreId and fiscalPeriodId, but might make more sense to load from Id? And maybe have a separate creation and editing interface? It also might make sense to pre-populated all the benefits for the year, and then we would only have to worry about editing ...
Remove Employee Benefits from funding_submission_line_jsons and funding_submission_lines and anywhere else it previously existed.
Fixes https://yg-hpw.atlassian.net/browse/ELCC-18
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:
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.
Implementation
centreId
andfiscalPeriodId
, but might make more sense to load from Id? And maybe have a separate creation and editing interface? It also might make sense to pre-populated all the benefits for the year, and then we would only have to worry about editing ...funding_submission_line_jsons
andfunding_submission_lines
and anywhere else it previously existed.Screenshots
Testing Instructions
dev up