fix bug preventing invoice mails from being sent

This commit is contained in:
Thomas Steen Rasmussen 2016-06-22 09:30:03 +02:00
parent 1e2a9e5afd
commit 02096e4f2b

View file

@ -11,7 +11,7 @@ def send_email(emailtype, recipient, formatdict, subject, sender='BornHack <info
text_template = 'emails/invoice_email.txt'
html_template = 'emails/invoice_email.html'
attachment_filename = formatdict['filename']
if emailtype == 'creditnote':
elif emailtype == 'creditnote':
text_template = 'emails/creditnote_email.txt'
html_template = 'emails/creditnote_email.html'
attachment_filename = formatdict['creditnote'].filename