débug comparaison de l'adresse de livraison

This commit is contained in:
Ambulance Clerc
2023-06-20 11:10:18 +02:00
parent 5adbc77555
commit 92b3a76733
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -1 +1 @@
20230616-1943
20230620-1109

View File

@@ -1 +1 @@
VERSION = "20230616-1943"
VERSION = "20230620-1109"