Compare commits

..

2 Commits

Author SHA1 Message Date
Ambulance Clerc
6d9b991c04 Changement dans les colonnes code présentation et méthode de payement toujours = 3
Prise en charge des EBILL pour code 101
2022-07-15 10:12:49 +02:00
Ambulance Clerc
e35a24030d Débug des rappels avec inversion de deux champs dans l'objet de facture 2022-07-08 10:16:09 +02:00
3 changed files with 7 additions and 6 deletions

View File

@@ -1 +1 @@
20220705-1607 20220715-1012

View File

@@ -649,8 +649,9 @@ class ClercAttrib2Biz():
csv_col.data[72] = "BU - 73 - aff" csv_col.data[72] = "BU - 73 - aff"
csv_col.data[73] = 0 csv_col.data[73] = 0
csv_col.data[115] = self.ifNotNull(data.Patient["lastname"]) + " " + self.ifNotNull(data.Patient["firstname"]) #Objet facture
csv_col.data[108] = data.Patient["complement"] csv_col.data[108] = self.ifNotNull(data.Patient["lastname"]) + " " + self.ifNotNull(data.Patient["firstname"])
csv_col.data[115] = data.Patient["complement"]
csv_col.data[109] = datetime.strptime(data.Patient["birthdate"], "%Y-%m-%d").strftime("%d.%m.%Y") if data.Patient["birthdate"] is not None else "" csv_col.data[109] = datetime.strptime(data.Patient["birthdate"], "%Y-%m-%d").strftime("%d.%m.%Y") if data.Patient["birthdate"] is not None else ""
if data.Patient["insurance_policy_number"] is not None and '-' not in data.Patient["insurance_policy_number"]: if data.Patient["insurance_policy_number"] is not None and '-' not in data.Patient["insurance_policy_number"]:
csv_col.data[109] += ", " + data.Patient["insurance_policy_number"] csv_col.data[109] += ", " + data.Patient["insurance_policy_number"]
@@ -677,8 +678,8 @@ class ClercAttrib2Biz():
csv_col.data[116] = self.ifNotNull(data.Patient["category"]) + " - " + self.ifNotNull(data.Intervention["type"]) csv_col.data[116] = self.ifNotNull(data.Patient["category"]) + " - " + self.ifNotNull(data.Intervention["type"])
csv_col.data[118] = data.Intervention["kilometers"] csv_col.data[118] = data.Intervention["kilometers"]
csv_col.data[135] = data.Intervention["base_name"] csv_col.data[135] = data.Intervention["base_name"]
csv_col.data[136] = 2 if data.Intervention["base_name"] == "Uvrier" else 3 csv_col.data[136] = 3 if data.Debtor["code"] != "101" else "EBILL" #code présentation de facture
csv_col.data[146] = csv_col.data[136] csv_col.data[146] = 3 #Code méthode de payement définit à 3
csv_col.data[168] = 1 if data.Intervention["team_name"] == "Planification" else 2 csv_col.data[168] = 1 if data.Intervention["team_name"] == "Planification" else 2
csv_col.data[169] = data.Patient['insurance_policy_number'] csv_col.data[169] = data.Patient['insurance_policy_number']

View File

@@ -1 +1 @@
VERSION = "20220705-1607" VERSION = "20220715-1012"