31/08/2024 - 18h50

master
cherif 2024-08-31 18:50:37 +02:00
parent 2b1d9ed044
commit c5e4a4c57b
4 changed files with 2046 additions and 21 deletions

View File

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="dddqsddddss">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="31082024">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Dashbord_queries/BPF.py" beforeDir="false" afterPath="$PROJECT_DIR$/Dashbord_queries/BPF.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$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -74,13 +75,6 @@
<option name="presentableId" value="Default" />
<updated>1680804787304</updated>
</task>
<task id="LOCAL-00336" summary="21/06/24 - 22h30">
<created>1719001828472</created>
<option name="number" value="00336" />
<option name="presentableId" value="LOCAL-00336" />
<option name="project" value="LOCAL" />
<updated>1719001828472</updated>
</task>
<task id="LOCAL-00337" summary="22/06/24 - 17h30">
<created>1719069758164</created>
<option name="number" value="00337" />
@ -417,7 +411,14 @@
<option name="project" value="LOCAL" />
<updated>1725026643840</updated>
</task>
<option name="localTasksCounter" value="385" />
<task id="LOCAL-00385" summary="31082024">
<created>1725106474933</created>
<option name="number" value="00385" />
<option name="presentableId" value="LOCAL-00385" />
<option name="project" value="LOCAL" />
<updated>1725106474933</updated>
</task>
<option name="localTasksCounter" value="386" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -459,7 +460,6 @@
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="31/07/2024 - 17h30" />
<MESSAGE value="01/08/2024 - 17h30" />
<MESSAGE value="02/08/2024 - 12h" />
<MESSAGE value="02/08/2024 - 17h" />
@ -484,6 +484,7 @@
<MESSAGE value="dddqsdd" />
<MESSAGE value="dddqsdddd" />
<MESSAGE value="dddqsddddss" />
<option name="LAST_COMMIT_MESSAGE" value="dddqsddddss" />
<MESSAGE value="31082024" />
<option name="LAST_COMMIT_MESSAGE" value="31082024" />
</component>
</project>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

24
main.py
View File

@ -11025,7 +11025,7 @@ def Get_Partner_Catalog_Pub_Config():
"""
API/ BPF / C rubrique Data
API/ BPF / ALL Rublic
"""
@app.route('/myclass/api/Get_Qery_Generate_BPF_From_partner_invoice_header/', methods=['POST','GET'])
@crossdomain(origin='*')
@ -11036,6 +11036,28 @@ def Get_Qery_Generate_BPF_From_partner_invoice_header():
status, retval = BPF.Get_Qery_Generate_BPF_From_partner_invoice_header(payload)
return jsonify(status=status, message=retval)
"""
API/ BPF / Impression PDF
"""
@app.route('/myclass/api/Prepare_and_Print_BPF_PDF/<token>/<periode_start_date>/<periode_end_date>/', methods=['POST','GET'])
@crossdomain(origin='*')
def Prepare_and_Print_BPF_PDF(token, periode_start_date, periode_end_date):
# On recupere le corps (payload) de la requete
payload = mycommon.strip_dictionary (request.form.to_dict())
payload = {}
payload['token'] = str(token)
payload['periode_start_date'] = str(periode_start_date).replace("-", "/")
payload['periode_end_date'] = str(periode_end_date).replace("-", "/")
print(" ### Prepare_and_Send_Convention_From_Session_By_PDF : payload = ",str(payload))
localStatus, response= BPF.Prepare_and_Print_BPF_PDF(payload)
if(localStatus ):
return response
else:
return False