Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production < staging #3042

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Production < staging #3042

merged 2 commits into from
Aug 19, 2024

Conversation

TheDancingClown
Copy link
Contributor

📝 A short description of the changes

TheDancingClown and others added 2 commits August 19, 2024 13:15
…ear if available

The code changes in `latest_year_generator.rb` modify the `calculate_last_year` method to check if the `form_answer` has a `most_recent_financial_year` value in its document. If it does, the method uses that value as the `@form_answer_award_year`. Otherwise, it falls back to the previous logic of calculating the award year based on the month and day.

This change improves the accuracy of determining the award year and ensures that the most recent financial year is used when available.

Signed-off-by: Louis Kirkham <louis.kirkham@bitzesty.com>
Staging cherrypick most_recent_financial_year
@TheDancingClown TheDancingClown merged commit e43ceff into production Aug 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant