From f3fa74f660e662d1c9f2385d7aca8e1cafd6348c Mon Sep 17 00:00:00 2001 From: Gael Le Mignot Date: Fri, 15 May 2020 17:12:59 +0200 Subject: [PATCH] Hotfix for fake option Aucune --- teleforma/views/crfpa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/views/crfpa.py b/teleforma/views/crfpa.py index cf5cfcf7..b463ddf4 100644 --- a/teleforma/views/crfpa.py +++ b/teleforma/views/crfpa.py @@ -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': "Option langue", 'unit_price': ORAL_OPTION_PRICE, 'amount': 1, -- 2.39.5