Select a Child Care Centre by double-clicking on it, or adding a new one via the top right call-to-action.
Select the 2023/24 fiscal year from top right selector thing.
Go to the "Employees" tab.
Scroll down to the "Wage Enhancements" section.
This will select the "April" sub-tab.
Click on the "+" icon on the "level 2" section.
Add your name, then estimated and actual hours.
Finally click the floppy disk icon to save.
Go back to the top, and select the "May" sub-tab.
Scroll down to the "Wage Enhancements" section, and note that the wage enhancement was not copied over.
Implementation
Add /api/wage-enhancements/replicate-estimates endpoint with two required arguments centreId and fiscalPeriodId. I opted not to use /api/centres/:centreId/fiscalPeriods/:fiscalPeriodId/wage-enhancements/replicate-estimates, as there is no correlation between centres and fiscal periods. This lead me to try /api/centres/:centreId/wage-enhancements/replicate-estimates with required param fiscalPeriodId, but it felt weird to have one required param in the url and one in the body, so I just went with "flat is better than nested" with both required params needing to be passed in in the query or body.
Used multilayered loop for wage enhancement replication service, this is very inefficient, but at least it is mostly readable and has tests. In the future, it might make sense to rework the data modeling to make this kind of functionality less difficult to implement.
Update entity modeling
Fix database test setup cleaner function.
Add developer helper to create a GitHub branch from a Jira ticket URL.
Screenshots
New "replicate estimates button" for Wage Enhancements
Fixes https://yg-hpw.atlassian.net/browse/ELCC-61
Relates to:
Context
User Report
I interpret this as being a request for a similar feature to "replicate estimates" that works on the "worksheets" tab.
Reproduction Instructions
Implementation
Screenshots
New "replicate estimates button" for Wage Enhancements
Testing Instructions
dev up