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

When Creating a new Warrant, previous warrants covering the same office for the same period are not expired. #366

Open
jhandel opened this issue Mar 1, 2025 · 0 comments

Comments

@jhandel
Copy link
Member

jhandel commented Mar 1, 2025

If two warrants cover the same period, the newest warrant (the one with the latest start_date) should be the only current warrant, the previous warrants should be expired with the expires_on set to the same value as the start_on of the new warrant. The previous warrant should also have its status changed to "expired".

This causes duplicate records to show up in the offiers list if not handled properly.

Suggested changes will need to be made in app/src/Services/WarrantManager/DefaultWarrantManager.php to resolve this issue.

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

No branches or pull requests

1 participant