Changement du truncate 12 et 15

This commit is contained in:
Ambulance Clerc
2022-05-11 10:22:19 +02:00
parent 13ae7d74f2
commit 7b26170f49

11
main.py
View File

@@ -18,7 +18,7 @@ from threading import *
from class_invoices import *
VERSION = "202200506-1834"
VERSION = "202200511 - 0834"
@@ -530,11 +530,7 @@ class ClercAttrib2Biz():
self.logger.warning(f"Vérifier facture N°: {data.data['id']} / {data.Patient['fip_number']} {data.Debtor['code']} {data.Debtor['lastname']} {data.Debtor['firstname']}")
for elem in data.Debtor:
if "name" in data.Debtor.keys():
# print(f"{data.Patient['fip_number']} => {data.Debtor['name']}")
data.data["comments"] = data.Debtor["code"] if data.Debtor["code"] != "2" else data.data["comments"]
data.Debtor["code"] = get_debitor_code(data.Debtor["name"])
break
pass
''' TODO activer ce code quand les débiteur auront un bon numéro
try:
@@ -635,8 +631,7 @@ class ClercAttrib2Biz():
for elem in data.Debtor:
if "name" in data.Debtor.keys():
#print(f"{data.Patient['fip_number']} => {data.Debtor['name']}")
data.Debtor["code"] = get_debitor_code(data.Debtor["name"])
pass
if elem == "street_number":
if data.Patient[elem] != None and "-" in data.Patient[elem] and "\t" not in data.Patient[elem]: