08/02/2024 -20h

master
cherif 2024-02-08 21:50:47 +01:00
parent 31d4ddb312
commit 37708f61cc
3 changed files with 1938 additions and 16 deletions

View File

@ -1,13 +1,10 @@
<?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="05/02/2024 -23h">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="06/02/2024 -20h">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" 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$/crm_opportunite.py" beforeDir="false" afterPath="$PROJECT_DIR$/crm_opportunite.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/module_editique.py" beforeDir="false" afterPath="$PROJECT_DIR$/module_editique.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/partners.py" beforeDir="false" afterPath="$PROJECT_DIR$/partners.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/partner_order.py" beforeDir="false" afterPath="$PROJECT_DIR$/partner_order.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -77,13 +74,6 @@
<option name="presentableId" value="Default" />
<updated>1680804787304</updated>
</task>
<task id="LOCAL-00166" summary="08/12/2023 - 22h30">
<created>1702073046202</created>
<option name="number" value="00166" />
<option name="presentableId" value="LOCAL-00166" />
<option name="project" value="LOCAL" />
<updated>1702073046202</updated>
</task>
<task id="LOCAL-00167" summary="11/12/2023 - 20h30">
<created>1702323012271</created>
<option name="number" value="00167" />
@ -420,7 +410,14 @@
<option name="project" value="LOCAL" />
<updated>1707172831686</updated>
</task>
<option name="localTasksCounter" value="215" />
<task id="LOCAL-00215" summary="06/02/2024 -20h">
<created>1707246725386</created>
<option name="number" value="00215" />
<option name="presentableId" value="LOCAL-00215" />
<option name="project" value="LOCAL" />
<updated>1707246725386</updated>
</task>
<option name="localTasksCounter" value="216" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -435,7 +432,6 @@
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="05/01/24 - 20h30" />
<MESSAGE value="06/01/24 - 20h30" />
<MESSAGE value="08/01/24 - 22h30" />
<MESSAGE value="09/01/24 - 19h30" />
@ -460,6 +456,7 @@
<MESSAGE value="04/02/2024 - 21h" />
<MESSAGE value="04/02/2024 - 23h" />
<MESSAGE value="05/02/2024 -23h" />
<option name="LAST_COMMIT_MESSAGE" value="05/02/2024 -23h" />
<MESSAGE value="06/02/2024 -20h" />
<option name="LAST_COMMIT_MESSAGE" value="06/02/2024 -20h" />
</component>
</project>

File diff suppressed because it is too large Load Diff

View File

@ -2014,6 +2014,8 @@ def Add_Update_Partner_Order_Line(diction):
'order_header_id', 'order_line_status', 'order_line_type', 'order_line_comment',
'order_line_montant_hors_taxes', 'order_line_tax_amount', 'order_line_montant_toutes_taxes']
incom_keys = diction.keys()
for val in incom_keys:
if val not in field_list and val.startswith('my_') is False:
@ -2071,7 +2073,7 @@ def Add_Update_Partner_Order_Line(diction):
if diction['order_line_status']:
order_line_status = diction['order_line_status']
data['order_line_status'] = order_line_status
if( order_line_type == "commansde"):
if( order_line_type == "commande"):
if (order_line_status not in MYSY_GV.PARTNER_ORDER_STATUS):
mycommon.myprint(
str(inspect.stack()[0][
@ -4873,6 +4875,7 @@ def Convert_Quotation_to_Order(diction):
New_Order_Header = Quotation_header_data
New_Order_Header['order_header_origin'] = Quotation_header_data_tmp['order_header_ref_interne']
New_Order_Header['order_header_type'] = "commande"
New_Order_Header['order_header_status'] = "0"
New_Order_Header['token'] = mytoken
local_status, local_message, local_retval = Add_Partner_Order(New_Order_Header)
@ -5044,6 +5047,7 @@ def Order_Ready_To_Invoice(diction):
"$set": {"order_line_status": "2",
'date_update': str(data['date_update'])}
})
"""print("raw:", inserted_data_line.raw_result)
print("acknowledged:", inserted_data_line.acknowledged)
print("matched_count:", inserted_data_line.matched_count)"""