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