débug + espacement de 1 sec entre ouverture des fichiers excel
This commit is contained in:
8
main.py
8
main.py
@@ -523,7 +523,7 @@ class ClercAttrib2Biz():
|
||||
b_update_debitor = True
|
||||
|
||||
print()
|
||||
if data.Debtor["code"] != "1" and int(data.Debtor["code"]) < 100:
|
||||
if data.Debtor["code"] != "1" and data.Debtor["code"] != None and int(data.Debtor["code"]) < 100:
|
||||
if data.Patient["fip_number"] not in self.a_listings["to_check"] :
|
||||
self.a_listings["to_check"].append(data.Patient["fip_number"])
|
||||
self.logger.warning(f"Vérifier facture N°: {data.data['id']} / {data.Patient['fip_number']} {data.Debtor['code']} {data.Debtor['lastname']} {data.Debtor['firstname']}")
|
||||
@@ -626,10 +626,8 @@ class ClercAttrib2Biz():
|
||||
data.Patient[elem] = "Patient inconnu"
|
||||
|
||||
if elem == "street_number":
|
||||
print(f"street_number = {data.Patient[elem]}")
|
||||
if data.Patient[elem] != None and "-" in data.Patient[elem] and "\t" not in data.Patient[elem]:
|
||||
data.Patient[elem] = f"\t{data.Patient[elem]}"
|
||||
print("FOUND Patient")
|
||||
|
||||
|
||||
self.addToIndexs(obj=csv_col, data=data.Patient[elem], cat="patient", key=elem)
|
||||
@@ -640,10 +638,9 @@ class ClercAttrib2Biz():
|
||||
data.Debtor["code"] = get_debitor_code(data.Debtor["name"])
|
||||
|
||||
if elem == "street_number":
|
||||
print(f"street_number = {data.Patient[elem]}")
|
||||
if data.Patient[elem] != None and "-" in data.Patient[elem] and "\t" not in data.Patient[elem]:
|
||||
data.Patient[elem] = f"\t{data.Patient[elem]}"
|
||||
print("FOUND DEB")
|
||||
|
||||
|
||||
if elem != "name":
|
||||
csv_col.data.append(data.Debtor[elem])
|
||||
@@ -720,6 +717,7 @@ class ClercAttrib2Biz():
|
||||
print("RUN EXCEL with open")
|
||||
os.startfile(os.path.join(dest_dir, f"src.csv"))
|
||||
shutil.copy(file_path + "convert.xlsm", os.path.join(dest_dir, f"convert.xlsm"))
|
||||
time.sleep(1)
|
||||
os.startfile(os.path.join(dest_dir, f"convert.xlsm"))
|
||||
|
||||
def open_src(self):
|
||||
|
Reference in New Issue
Block a user