From: test test Date: Thu, 15 Jul 2021 13:52:10 +0000 (+0200) Subject: Fix issue with invoice filename and footer not positionned correctly X-Git-Tag: 2.4.4~17 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0b1fd1f5d1e32adc9d024650a1be0d92bbe15324;p=teleforma.git Fix issue with invoice filename and footer not positionned correctly --- diff --git a/teleforma/templates/receipt/receipt_pdf.html b/teleforma/templates/receipt/receipt_pdf.html index aa2cfdd6..1d1f38cd 100644 --- a/teleforma/templates/receipt/receipt_pdf.html +++ b/teleforma/templates/receipt/receipt_pdf.html @@ -5,50 +5,52 @@ - + - Le Pré-Barreau - Préparation au CRFPA - Facture + Le Pré-Barreau - Préparation au CRFPA - Facture - {% block stylesheets %} - - {% endblock %} + {% block stylesheets %} + + {% endblock %} - {% block extra_stylesheets %}{% endblock %} + {% block extra_stylesheets %}{% endblock %} - {% block layout %} - {% with student.user.profile.all.0 as profile %} + {% block layout %} + {% with student.user.profile.all.0 as profile %} + +
+ + -
+
- + {% endwith %} + + {% block footer %} + + {% endblock %} {% endblock layout %} - + \ No newline at end of file diff --git a/teleforma/views/crfpa.py b/teleforma/views/crfpa.py index 804abce9..62a7bf04 100644 --- a/teleforma/views/crfpa.py +++ b/teleforma/views/crfpa.py @@ -931,7 +931,7 @@ class ReceiptPDFViewDownload(ReceiptPDFView): prefix = "crfpa_facture" filename = '_'.join([prefix, self.receipt_id, student.user.first_name, student.user.last_name]) filename += '.pdf' - return filename.encode('utf-8') + return filename class CorrectorRegistrationPDFView(PDFTemplateResponseMixin, TemplateView):