diff options
author | Magnus Hagander | 2023-11-03 12:48:18 +0000 |
---|---|---|
committer | Magnus Hagander | 2023-11-03 12:48:18 +0000 |
commit | e811a003fbe8872ea34ba8c703e1ab5b3686c0f2 (patch) | |
tree | 1c78a3b47530bfaafca73f071ace1797f57c7d2c | |
parent | 33124c284f48007b97939ab16a8952848f81ab16 (diff) |
Send notifications on complete sponsor digital countersigns
Previously we would only send notifications when something had to be
done. But given the conference team isn't always the same as the one(s)
signing the contracts, it makes sense to also send a notification when a
contract is signed+countersigned even when nothing further is needed.
-rw-r--r-- | postgresqleu/confsponsor/invoicehandler.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/postgresqleu/confsponsor/invoicehandler.py b/postgresqleu/confsponsor/invoicehandler.py index 869506e7..ccdc6f49 100644 --- a/postgresqleu/confsponsor/invoicehandler.py +++ b/postgresqleu/confsponsor/invoicehandler.py @@ -352,6 +352,18 @@ class SponsorDigisignHandler(DigisignHandlerBase): self.sponsor.save(update_fields=['invoice']) wrapper = InvoiceWrapper(self.sponsor.invoice) wrapper.email_invoice() + + send_conference_sponsor_notification( + self.sponsor.conference, + "Contract counter-signed for sponsor {}".format(self.sponsor.name), + "The digital contract for sponsor\n{}\n has been counter-signed.\nAn invoice has been generated and sent to the sponsor.\nThe sponsorship is now fully confirmed.".format(self.sponsor.name), + ) + else: + send_conference_sponsor_notification( + self.sponsor.conference, + "Contract counter-signed for sponsor {}".format(self.sponsor.name), + "The digital contract for sponsor\n{}\n has been counter-signed.\nThe sponsorship is now fully confirmed.".format(self.sponsor.name), + ) else: # If we're not auto approving it, send a notification email instead send_conference_sponsor_notification( |