-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude not-required rtn versions from copy exist (#1086)
https://eaflood.atlassian.net/browse/WATER-4283 > Part of the work to replace NALD for handling return requirements We want to be able to offer users the option to copy data from an existing return requirement when setting up a new one. We [made the option available](#1081) in the `/setup` page. We then implemented the logic to fetch the existing data and transform it into something that can be stored in the session for later persisting as a new record. One of the new features we're enabling with our takeover is the ability to record where a return requirement is _not_ needed. Our new journey allows for this. When this happens, though, we'll need to persist a return version to record it. It will be 'current' but it will have no return requirements linked to it. Because of this, we need to tweak the query that fetches which return versions can be copied from to exclude those without any return requirements.
- Loading branch information
1 parent
41c1456
commit d91da77
Showing
2 changed files
with
82 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters