Fix marking invoices transmitted for emails with uppercase letters (#5885)

This commit is contained in:
Richard Schreiber
2026-02-11 12:00:54 +01:00
committed by GitHub
parent d7b7d3cc5f
commit e2cb83ce28

View File

@@ -519,6 +519,7 @@ def mail_send_task(self, **kwargs) -> bool:
)
except InvoiceAddress.DoesNotExist:
pass
expected_recipients = {e.lower() for e in expected_recipients if e}
if any(t in expected_recipients for t in outgoing_mail.to):
invoices_to_mark_transmitted.append(inv)