From d5793252b652986674de682023ad415dd149b5f0 Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 26 Mar 2014 21:03:44 +0100 Subject: [PATCH] =?UTF-8?q?Support=20the=20"R=C3=A9siliation"=20of=20a=20l?= =?UTF-8?q?ine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/leclercmobile/pages/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/leclercmobile/pages/history.py b/modules/leclercmobile/pages/history.py index 86a590a4..7b3029fa 100644 --- a/modules/leclercmobile/pages/history.py +++ b/modules/leclercmobile/pages/history.py @@ -152,7 +152,7 @@ class PdfPage(): lines[duree] = '' detail.label = unicode(splits[0], encoding='utf-8', errors='replace') + u" " + lines[corres] + u" " + lines[duree] # Special case with only 3 columns, we insert a price - if "Activation de votre ligne" in detail.label: + if "Activation de votre ligne" in detail.label or u"Résiliation" in detail.label: lines.insert(price, '0') try: detail.price = Decimal(lines[price].replace(',', '.'))