|
|
|
|
@ -368,7 +368,7 @@ class StatementConfirmedAdmin(admin.ModelAdmin):
|
|
|
|
|
context = dict(statement=statement.template_context(), excursion=excursion, settings=settings)
|
|
|
|
|
|
|
|
|
|
pdf_filename = f"{excursion.code}_{excursion.name}_Zuschussbeleg" if excursion else f"Abrechnungsbeleg"
|
|
|
|
|
attachments = [bill.proof.path for bill in statement.bills_covered]
|
|
|
|
|
attachments = [bill.proof.path for bill in statement.bills_covered if bill.proof]
|
|
|
|
|
return render_tex_with_attachments(pdf_filename, 'finance/statement_summary.tex', context, attachments)
|
|
|
|
|
|
|
|
|
|
statement_summary_view.short_description = _('Download summary')
|
|
|
|
|
|