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

Return version can be on/after licence start date #1224

Merged
merged 9 commits into from
Aug 2, 2024

Conversation

rvsiyad
Copy link
Contributor

@rvsiyad rvsiyad commented Aug 1, 2024

https://eaflood.atlassian.net/browse/WATER-4599

Currently, when a user reaches the start date page for either the 'no returns required' or 'set up new requirements' journey, and enters a start date before the return version start date, the system errors. A fix needs to be put in place to allow users to enter a start date that is on or after the licence start date.

This PR will change the validation to allow users to enter a start that can proceed the return version start date but is on or after the licence start date.

https://eaflood.atlassian.net/browse/WATER-4599

Currently, when a user reaches the start date page for either the 'no returns required' or
'set up new requirements' journey, and enters a start date before the return version start date, the system errors.
A fix needs to be put in place to allow users to enter a start date that is on or after the licence start date.

This PR will change the validation to allow users to enter a start that can proceed the return version start date
but is on or after the licence start date.
@rvsiyad rvsiyad added the enhancement New feature or request label Aug 1, 2024
@rvsiyad rvsiyad self-assigned this Aug 1, 2024
@rvsiyad rvsiyad added the bug Something isn't working label Aug 1, 2024
@rvsiyad rvsiyad marked this pull request as ready for review August 1, 2024 14:07
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a tweak to the error message.

app/validators/return-requirements/start-date.validator.js Outdated Show resolved Hide resolved
@Cruikshanks Cruikshanks removed the enhancement New feature or request label Aug 2, 2024
@rvsiyad rvsiyad merged commit 5d5a1ad into main Aug 2, 2024
6 checks passed
@rvsiyad rvsiyad deleted the return-requirement-start-date branch August 2, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants