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

Added renewal_sent flag to licences #112

Merged
merged 1 commit into from
Oct 11, 2016
Merged

Conversation

tony-gaia
Copy link

Flag is set to true when either an email has been sent for a renewal
reminder or a renewal pdf has been created for a licence.

Renewals aren't sent for licences that have been amended / renewed
already.

A re-issue of a licence will set the flag to back to false allowing
renewal reminders to be sent for reissued licences.

Changed licences previous_licence flag, which wasn't being used
(except for being shown in reports, which would always be empty) to
replaced_by, which is used as part of the condition as to whether to
send renewal reminders.

Moved renewal reminder cron job and email code out of applications app
into main, where they are more relevant.

Flag is set to true when either an email has been sent for a renewal
reminder or a renewal pdf has been created for a licence.

Renewals aren't sent for licences that have been amended / renewed
already.

A re-issue of a licence will set the flag to back to false allowing
renewal reminders to be sent for reissued licences.

Changed licences 'previous_licence' flag, which wasn't being used
(except for being shown in reports, which would always be empty) to
'replaced_by', which is used as part of the condition as to whether to
send renewal reminders.

Moved renewal reminder cron job and email code out of applications app
into main, where they are more relevant.
@serge-gaia
Copy link

This is screaming for unit test.

@serge-gaia serge-gaia merged commit 5126e74 into master Oct 11, 2016
tony-gaia pushed a commit that referenced this pull request Oct 20, 2016
@serge-gaia serge-gaia deleted the 1845-renewal-sent-flag branch October 27, 2016 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants