Débug HRF
This commit is contained in:
14
main.py
14
main.py
@@ -19,7 +19,7 @@ from threading import *
|
|||||||
from class_invoices import *
|
from class_invoices import *
|
||||||
from class_addresses import *
|
from class_addresses import *
|
||||||
|
|
||||||
VERSION = "202200530 - 1556"
|
VERSION = "202200602 - 1500"
|
||||||
#test master 2
|
#test master 2
|
||||||
|
|
||||||
src_dir = os.getenv('APPDATA') + "\Attrib2Biz\src"
|
src_dir = os.getenv('APPDATA') + "\Attrib2Biz\src"
|
||||||
@@ -469,18 +469,20 @@ class ClercAttrib2Biz():
|
|||||||
#self.draw_test(item_1=data.Patient, item_2=addresses_exist)
|
#self.draw_test(item_1=data.Patient, item_2=addresses_exist)
|
||||||
#messagebox.showerror(title="AVS Trouvé", message=f"Le code AVS de l'adresse {data.Patient['insurance_policy_number']} est déjà existant: [{data.Debtor['code']}], merci de le corriger ")
|
#messagebox.showerror(title="AVS Trouvé", message=f"Le code AVS de l'adresse {data.Patient['insurance_policy_number']} est déjà existant: [{data.Debtor['code']}], merci de le corriger ")
|
||||||
|
|
||||||
|
|
||||||
b_HRF = False
|
b_HRF = False
|
||||||
sHRF = ""
|
sHRF = ""
|
||||||
|
|
||||||
|
|
||||||
for article in data.Articles:
|
for article in data.Articles:
|
||||||
|
|
||||||
if "code" in article.keys():
|
if "code" in article.keys():
|
||||||
if article["code"] == "HRF":
|
if article["code"] == "HRF":
|
||||||
b_HRF = True
|
b_HRF = True
|
||||||
sHRF = article["line_1"].replace("h", ":")
|
sHRF = article["line_1"].replace("h", ":")
|
||||||
print(f"pass HRF => {data.Patient['fip_number']}")
|
print(f"pass HRF => {data.Patient['fip_number']} = {b_HRF}")
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for article in data.Articles:
|
||||||
self.bs_counter += 1
|
self.bs_counter += 1
|
||||||
csv_col = cls_Col(True)
|
csv_col = cls_Col(True)
|
||||||
|
|
||||||
@@ -639,8 +641,10 @@ class ClercAttrib2Biz():
|
|||||||
"%d.%m.%Y") # Date PEC
|
"%d.%m.%Y") # Date PEC
|
||||||
csv_col.data[111] += " - " + datetime.strptime(data.Intervention["start_time"], "%Y-%m-%dT%H:%M:%S%z").strftime(
|
csv_col.data[111] += " - " + datetime.strptime(data.Intervention["start_time"], "%Y-%m-%dT%H:%M:%S%z").strftime(
|
||||||
"%H:%M") # Heure START PEC
|
"%H:%M") # Heure START PEC
|
||||||
|
print(f"{data.Patient['fip_number']} HRF:{b_HRF}")
|
||||||
if b_HRF:
|
if b_HRF:
|
||||||
csv_col.data[111] += "-" + sHRF
|
csv_col.data[111] += "-" + sHRF
|
||||||
|
print(f"DEBUG HRF: {sHRF}")
|
||||||
else:
|
else:
|
||||||
csv_col.data[111] += "-" + datetime.strptime(data.Intervention["end_time"], "%Y-%m-%dT%H:%M:%S%z").strftime(
|
csv_col.data[111] += "-" + datetime.strptime(data.Intervention["end_time"], "%Y-%m-%dT%H:%M:%S%z").strftime(
|
||||||
"%H:%M") # Heure END PEC
|
"%H:%M") # Heure END PEC
|
||||||
|
Reference in New Issue
Block a user