Compare commits

..

5 Commits

Author SHA1 Message Date
Ambulance Clerc
cdc7205ab7 Débug version 2022-08-13 07:00:40 +02:00
Ambulance Clerc
5b0f7a1119 Ajout de la date d'intervention dans chaque ligne article => But essayer d'envoyer la date d'intervention comme date Comptable 2022-08-10 18:16:27 +02:00
Ambulance Clerc
5c7f9c1f4e Ajout du commentaire dans référence client 2022-07-29 10:19:10 +02:00
Ambulance Clerc
975595b592 Ajout du commentaire dans référence client 2022-07-29 09:51:21 +02:00
Ambulance Clerc
1907632dca Ajout du pays dans adresse livraison si pas suisse 2022-07-29 09:37:05 +02:00
3 changed files with 12 additions and 5 deletions

View File

@@ -1 +1 @@
20220715-1012 20220813-0700

13
main.py
View File

@@ -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']}")
@@ -572,6 +573,10 @@ class ClercAttrib2Biz():
if data.Debtor["city"] is not None: if data.Debtor["city"] is not None:
concat_str += con + self.ifNotNull(data.Debtor["postal_code"]) + " " + self.ifNotNull(data.Debtor["city"]) concat_str += con + self.ifNotNull(data.Debtor["postal_code"]) + " " + self.ifNotNull(data.Debtor["city"])
con = "#chr(13)##chr(10)#" con = "#chr(13)##chr(10)#"
if data.Debtor["country_name"] != "Suisse":
concat_str += con + data.Debtor["country_name"]
con = "#chr(13)##chr(10)#"
@@ -657,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
@@ -699,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"] = []

View File

@@ -1 +1 @@
VERSION = "20220715-1012" VERSION = "20220813-0700"