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

Create return logs for newly imported licences #1294

Merged
merged 39 commits into from
Sep 18, 2024

Conversation

robertparkinson
Copy link
Collaborator

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

As part of the work to replace the legacy system NALD we need to generate return logs. This PR updates the logic of return log creation to allow for new licences to be imported and have their return logs created

@robertparkinson robertparkinson marked this pull request as draft August 29, 2024 13:23
@robertparkinson robertparkinson self-assigned this Aug 29, 2024
@Cruikshanks Cruikshanks added the enhancement New feature or request label Sep 6, 2024
jonathangoulding added a commit that referenced this pull request Sep 10, 2024
https://eaflood.atlassian.net/browse/WATER-4545

Relevant changes - #1294

As part of the ongoing work to migrate the legacy import jobs we need to establish if a licence already exists in the wrls database.

We check if the licence already exists, if it does then we want to do nothing. If it does not exist we want to generate return logs.

This change is added to highlight where we need to add this additional logic. And the service call will be added in another piece of work.
@robertparkinson robertparkinson marked this pull request as ready for review September 11, 2024 09:05
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.

First pass of some things I think we can tweak and update.

app/lib/dates.lib.js Outdated Show resolved Hide resolved
app/lib/dates.lib.js Outdated Show resolved Hide resolved
app/lib/dates.lib.js Outdated Show resolved Hide resolved
app/lib/dates.lib.js Outdated Show resolved Hide resolved
app/lib/dates.lib.js Outdated Show resolved Hide resolved
test/lib/dates.lib.test.js Outdated Show resolved Hide resolved
@robertparkinson robertparkinson merged commit e76b503 into main Sep 18, 2024
4 checks passed
@robertparkinson robertparkinson deleted the create-return-logs-for-new-licence branch September 18, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants