From 92b3a76733f597b435eb06db689001f69e103b84 Mon Sep 17 00:00:00 2001 From: Ambulance Clerc Date: Tue, 20 Jun 2023 11:10:18 +0200 Subject: [PATCH] =?UTF-8?q?d=C3=A9bug=20=20comparaison=20de=20l'adresse=20?= =?UTF-8?q?de=20livraison?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class_invoices.py | 2 +- dl_version | 2 +- version.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/class_invoices.py b/class_invoices.py index 7c2a148..e7e73b1 100644 --- a/class_invoices.py +++ b/class_invoices.py @@ -59,7 +59,7 @@ class cls_Invoice: def is_addr_2_selfish(self, patient): print(patient) temp_addr_2 = str(patient["addr_2"]).replace("Monsieur","").replace("Madame","").replace("\n","").replace(" ","") - str_compare = patient['lastname'].replace('.','') + patient['firstname'].replace('.','') + self.ifNotNull(patient['complement']).strip()+ patient['street'].strip() + patient['street_number'].strip() + patient['postal_code'].strip() + patient['city'].strip() + str_compare = patient['lastname'].replace('.','') + patient['firstname'].replace('.','') + self.ifNotNull(patient['complement']).strip()+ self.ifNotNull(patient['street']).strip() + self.ifNotNull(patient['street_number']).strip() + self.ifNotNull(patient['postal_code']).strip() +self.ifNotNull(patient['city']).strip() str_compare = str_compare.replace(" ","") print(f"is_addr_2_selfish ? {str_compare} <> {temp_addr_2} = {str_compare == temp_addr_2}") return str_compare == temp_addr_2 diff --git a/dl_version b/dl_version index 4cf2aa0..e807c9c 100644 --- a/dl_version +++ b/dl_version @@ -1 +1 @@ -20230616-1943 \ No newline at end of file +20230620-1109 \ No newline at end of file diff --git a/version.py b/version.py index edbf6b0..6e2ae86 100644 --- a/version.py +++ b/version.py @@ -1 +1 @@ -VERSION = "20230616-1943" \ No newline at end of file +VERSION = "20230620-1109" \ No newline at end of file