Skip to content
Snippets Groups Projects
Commit c55d1b8e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge remote-tracking branch 'origin/master' into fix/435

parents c6dab981 045a41a6
No related branches found
No related tags found
1 merge request!333consider the case that an appoinment is not set to a particular visit. the...
Pipeline #45581 passed
smasch (1.1.0~alpha.0-1) unstable; urgency=low
* improvement: warn the user on invalid date range when creating a holidays/extra availability (#427)
* improvement: warn the user on invalid date range when creating a
holidays/extra availability (#427)
* improvement: user can modify/add Subject types with custom follow up schema
(#371)
* improvement: added week day to daily planning main date (#425)
* improvement: possibility to import custom fields data from csv file (#385)
* improvement: added warning in case of printing voucher with no voucher
templates (#451)
* bug fix: privacy notice files were not removed when policy was removed
* bug fix: holidays were wrongly encoded and displayed when they span
multiple days (#430, #429)
......
......@@ -121,6 +121,10 @@ def generate_for_vouchers(request):
vouchers.append(Voucher.objects.get(pk=int(voucher_id)))
templates = MailTemplate.get_voucher_mail_templates([])[0]
if len(templates) == 0:
messages.add_message(request, messages.WARNING, 'There are no voucher mail templates. Please add one in order to print vouchers.')
return redirect(request.META.get('HTTP_REFERER', 'web.views.subjects'))
output_stream = io.BytesIO()
inputs = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment