18/12/2023 - 18:00
parent
b22ed5af94
commit
f82e932799
|
@ -3,11 +3,8 @@
|
|||
<component name="ChangeListManager">
|
||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="16/12/2023 - 23h12">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Inscription_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/Inscription_mgt.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Log/log_file.log" beforeDir="false" afterPath="$PROJECT_DIR$/Log/log_file.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Session_Formation.py" beforeDir="false" afterPath="$PROJECT_DIR$/Session_Formation.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/partner_client.py" beforeDir="false" afterPath="$PROJECT_DIR$/partner_client.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/partner_document_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/partner_document_mgt.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/prj_common.py" beforeDir="false" afterPath="$PROJECT_DIR$/prj_common.py" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
|
3389
Log/log_file.log
3389
Log/log_file.log
File diff suppressed because one or more lines are too long
|
@ -3522,8 +3522,8 @@ def Delete_SessionFormation(diction):
|
|||
print(" #### inscription_count_qry aa =", inscription_count_qry)
|
||||
inscription_count = MYSY_GV.dbname['inscription'].count_documents(inscription_count_qry)
|
||||
if( inscription_count > 0 ):
|
||||
mycommon.myprint(str(inspect.stack()[0][3]) + " - Impossible de supprimer la session. Vous avez "+str(inscription_count)+" inscriptions associées ")
|
||||
return False, "Impossible de supprimer la session. Vous avez "+str(inscription_count)+" inscriptions associées"
|
||||
mycommon.myprint(str(inspect.stack()[0][3]) + " - Impossible de supprimer la session. Vous avez "+str(inscription_count)+" inscription(s) associée(s) ")
|
||||
return False, "Impossible de supprimer la session. Vous avez "+str(inscription_count)+" inscription(s) associée(s)"
|
||||
|
||||
# Suppression des insciption eventuellement annulées
|
||||
MYSY_GV.dbname['inscription'].delete_many({'session_id':str(session_id)})
|
||||
|
@ -4529,7 +4529,7 @@ def Prepare_and_Send_Convention_From_Session_By_PDF(diction):
|
|||
todays_date = str(date.today().strftime("%d/%m/%Y"))
|
||||
ts = datetime.now().timestamp()
|
||||
ts = str(ts).replace(".", "").replace(",", "")[-3:]
|
||||
zip_file_name = "List_Convention_session_"+str(diction['session_id'])+"_"+str(ts)+".zip"
|
||||
zip_file_name = str(MYSY_GV.TEMPORARY_DIRECTORY_V2)+"List_Convention_session_"+str(diction['session_id'])+"_"+str(ts)+".zip"
|
||||
|
||||
with ZipFile(zip_file_name, 'w') as zip_object:
|
||||
for pdf_files in list_file_name_to_zip :
|
||||
|
@ -4833,7 +4833,7 @@ def Prepare_and_Send_Default_Convention_From_Session_By_PDF(diction):
|
|||
todays_date = str(date.today().strftime("%d/%m/%Y"))
|
||||
ts = datetime.now().timestamp()
|
||||
ts = str(ts).replace(".", "").replace(",", "")[-3:]
|
||||
zip_file_name = "List_Convention_session_"+str(diction['session_id'])+"_"+str(ts)+".zip"
|
||||
zip_file_name = str(MYSY_GV.TEMPORARY_DIRECTORY_V2)+"List_Convention_session_"+str(diction['session_id'])+"_"+str(ts)+".zip"
|
||||
|
||||
with ZipFile(zip_file_name, 'w') as zip_object:
|
||||
for pdf_files in list_file_name_to_zip :
|
||||
|
@ -4931,13 +4931,23 @@ def Create_Convention_By_Client_PDF(diction):
|
|||
tab_class = []
|
||||
tab_class.append(class_data['_id'])
|
||||
|
||||
# Recuperation des données du stagiaire
|
||||
inscription_data = MYSY_GV.dbname['inscription'].find({'session_id': str(diction['session_id']),
|
||||
'status': '1',
|
||||
'partner_owner_recid': str(my_partner['recid']),
|
||||
'client_rattachement_id': str(
|
||||
diction['client_id'])})
|
||||
|
||||
tab_participant = []
|
||||
for val in inscription_data:
|
||||
tab_participant.append(val['_id'])
|
||||
|
||||
print(" ### tab_participant = ", tab_participant)
|
||||
# Creation du dictionnaire d'information à utiliser pour la creation du doc
|
||||
convention_dictionnary_data = {}
|
||||
new_diction = {}
|
||||
new_diction['token'] = diction['token']
|
||||
new_diction['list_stagiaire_id'] = []
|
||||
new_diction['list_stagiaire_id'] = tab_participant
|
||||
new_diction['list_session_id'] = tab_session
|
||||
new_diction['list_class_id'] = tab_class
|
||||
new_diction['list_client_id'] = tab_client
|
||||
|
|
|
@ -4000,7 +4000,7 @@ def Get_Dictionnary_data_For_Template(diction):
|
|||
"""
|
||||
Traitement des données du : connected_user_data
|
||||
"""
|
||||
connected_user_liste_champ = ['email', 'contact_nom', 'contact_prenom']
|
||||
connected_user_liste_champ = ['email', 'contact_nom', 'contact_prenom', 'contact_tel', 'contact_mail']
|
||||
for champ in connected_user_liste_champ:
|
||||
if (champ in my_partner):
|
||||
new_champ_name = "connected_user_" + str(champ)
|
||||
|
@ -4024,7 +4024,7 @@ def Get_Dictionnary_data_For_Template(diction):
|
|||
local_company_data = local_retval
|
||||
company_data = {}
|
||||
|
||||
company_liste_champ = ['nom', 'email', 'num_nda', 'website', 'adr_street', 'adr_zip', 'adr_city', 'adr_country']
|
||||
company_liste_champ = ['nom', 'email', 'telephone', 'num_nda', 'website', 'adr_street', 'adr_zip', 'adr_city', 'adr_country']
|
||||
for champ in company_liste_champ:
|
||||
if (champ in local_company_data):
|
||||
new_champ_name = "societe_" + str(champ)
|
||||
|
|
Loading…
Reference in New Issue