|
|
|
@@ -495,6 +495,7 @@ class ClercAttrib2Biz():
|
|
|
|
csv_col.data[139] = "COND-30" # Conditions de payement à 30, COND-30 selon config dans winbiz
|
|
|
|
csv_col.data[139] = "COND-30" # Conditions de payement à 30, COND-30 selon config dans winbiz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "without_transportation" in data.Intervention.keys() and data.Intervention["without_transportation"] == True:
|
|
|
|
if "without_transportation" in data.Intervention.keys() and data.Intervention["without_transportation"] == True:
|
|
|
|
csv_col.data[15] = "Sans transport"
|
|
|
|
csv_col.data[15] = "Sans transport"
|
|
|
|
print(f"->NO DEST** {data.data['id']}")
|
|
|
|
print(f"->NO DEST** {data.data['id']}")
|
|
|
|
@@ -661,8 +662,10 @@ class ClercAttrib2Biz():
|
|
|
|
csv_col.data[109] += ", " + data.Patient["insurance_policy_number"]
|
|
|
|
csv_col.data[109] += ", " + data.Patient["insurance_policy_number"]
|
|
|
|
|
|
|
|
|
|
|
|
csv_col.data[110] = data.Patient["insurance_name"]
|
|
|
|
csv_col.data[110] = data.Patient["insurance_name"]
|
|
|
|
csv_col.data[111] = datetime.strptime(data.Intervention["start_time"], "%Y-%m-%dT%H:%M:%S%z").strftime(
|
|
|
|
date_PEC = datetime.strptime(data.Intervention["start_time"], "%Y-%m-%dT%H:%M:%S%z").strftime(
|
|
|
|
"%d.%m.%Y") # Date PEC
|
|
|
|
"%d.%m.%Y")
|
|
|
|
|
|
|
|
csv_col.data[51] = date_PEC # Date de ligne articles
|
|
|
|
|
|
|
|
csv_col.data[111] =date_PEC # 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
|
|
|
|
|
|
|
|
|
|
|
|
@@ -703,7 +706,7 @@ class ClercAttrib2Biz():
|
|
|
|
self.a_index["global"].append(key)
|
|
|
|
self.a_index["global"].append(key)
|
|
|
|
obj.data.append(data)
|
|
|
|
obj.data.append(data)
|
|
|
|
|
|
|
|
|
|
|
|
def convertFile(self, data, filename):
|
|
|
|
def convertFile(self, data, filename): #à utiliser pour un export avec fichier excel de Thomas
|
|
|
|
self.count_facture += len(data["invoices"])
|
|
|
|
self.count_facture += len(data["invoices"])
|
|
|
|
self.a_listings["to_check"] = []
|
|
|
|
self.a_listings["to_check"] = []
|
|
|
|
|
|
|
|
|
|
|
|
|