As well as rate changes, the minimum age to be eligible for the living wage has changed.
Other changes in this PR:
Fix a typo in the charged_accomodation_adjustment method name ("accommodation" mis-spelled).
Simplify the code logic by extracting the minimum age for living wage to the config, instead of hard-coding logic around it.
Replace storing a date and then figuring out whether the calculation is for the current or past tax year, with simply storing which tax year is being calculated for.
Update the values used by the minimum wage calculator (which backs both the National Minimum Wage and Living Wage calculator for workers and National Minimum Wage and Living Wage calculator for employers Smart Answers).
As well as rate changes, the minimum age to be eligible for the living wage has changed.
Other changes in this PR:
charged_accomodation_adjustment
method name ("accommodation" mis-spelled).Trello ticket
⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️
Follow these steps if you are doing a Rails upgrade.