]> git.parisson.com Git - teleforma.git/commitdiff
Hotfix for fake option Aucune
authorGael Le Mignot <gael@pilotsystems.net>
Fri, 15 May 2020 15:12:59 +0000 (17:12 +0200)
committerGael Le Mignot <gael@pilotsystems.net>
Fri, 15 May 2020 15:12:59 +0000 (17:12 +0200)
teleforma/views/crfpa.py

index cf5cfcf77980f3571598e58b291078ce29da16a5..b463ddf4f93e71070a049e9e1a2c0b176d4d77a3 100644 (file)
@@ -684,7 +684,7 @@ class ReceiptPDFView(PDFTemplateResponseMixin, TemplateView):
                        'unit_price': student.total_fees - substract - student.total_discount,
                        'amount': 1,
                        'discount': student.total_discount, }, )
-        if student.oral_1:
+        if student.oral_1 and student.oral_1.title != 'Aucune':
             items.append({ 'label': "<b>Option langue</b>",
                            'unit_price': ORAL_OPTION_PRICE,
                            'amount': 1,