refactor
This commit is contained in:
@@ -27,8 +27,8 @@ class cls_Invoice:
|
||||
# con = "#chr(13)##chr(10)#"
|
||||
con = "\n"
|
||||
|
||||
if debitor["gender"] is not None:
|
||||
concat_str += con + "Monsieur" if debitor["gender"] == "Masculin" else con + "Madame"
|
||||
if debitor["gender_name"] is not None:
|
||||
concat_str += con + "Monsieur" if debitor["gender_name"] == "Masculin" else con + "Madame"
|
||||
# con = "#chr(13)##chr(10)#"
|
||||
con = "\n"
|
||||
if debitor["lastname"] is not None:
|
||||
|
15
main.py
15
main.py
@@ -757,12 +757,17 @@ class ClercAttrib2Biz():
|
||||
csv_col.data[118] = self.attrib_link.km
|
||||
csv_col.data[135] = self.attrib_link.intervention_base
|
||||
|
||||
if self.attrib_link.debtor_code == "100" or self.attrib_link.debtor_code == "101" or self.attrib_link.debtor_code == "158":
|
||||
csv_col.data[136] = "EBILL" #code présentation de facture
|
||||
if b_VSL:
|
||||
csv_col.data[136] = "VSL" #code présentation de facture
|
||||
|
||||
if self.attrib_link.debtor_code in ["100", "101", "158"]:
|
||||
temp_facture_model = "EBILL" # code présentation de facture
|
||||
elif b_VSL:
|
||||
temp_facture_model = "VSL" # code présentation de facture
|
||||
else:
|
||||
csv_col.data[136] = 3 #code présentation de facture
|
||||
temp_facture_model = 3
|
||||
|
||||
|
||||
print(f"code = {self.attrib_link.debtor_code}, model: {temp_facture_model}")
|
||||
csv_col.data[136] = temp_facture_model #code présentation de facture
|
||||
csv_col.data[146] = 3 #Code méthode de payement définit à 3
|
||||
csv_col.data[168] = 1 if self.attrib_link.intervention_team == "Planification" else 2
|
||||
csv_col.data[169] = self.attrib_link.patient_AVS
|
||||
|
Reference in New Issue
Block a user