18/06/2024 - 21h30
parent
cc465ebaa9
commit
90e2e3551f
|
@ -1,10 +1,8 @@
|
|||
<?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="15/06/2024 - 21h30">
|
||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="17/06/2024 - 21h30">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/E_Sign_Document.py" beforeDir="false" afterPath="$PROJECT_DIR$/E_Sign_Document.py" 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" />
|
||||
</list>
|
||||
|
@ -76,13 +74,6 @@
|
|||
<option name="presentableId" value="Default" />
|
||||
<updated>1680804787304</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00284" summary="04/05/2024 - 20h30">
|
||||
<created>1714847858090</created>
|
||||
<option name="number" value="00284" />
|
||||
<option name="presentableId" value="LOCAL-00284" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1714847858091</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00285" summary="05/05/2024 - 13h30">
|
||||
<created>1714909797952</created>
|
||||
<option name="number" value="00285" />
|
||||
|
@ -419,7 +410,14 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1718490413170</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="333" />
|
||||
<task id="LOCAL-00333" summary="17/06/2024 - 21h30">
|
||||
<created>1718656591744</created>
|
||||
<option name="number" value="00333" />
|
||||
<option name="presentableId" value="LOCAL-00333" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1718656591746</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="334" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
|
@ -461,7 +459,6 @@
|
|||
</option>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="sdf" />
|
||||
<MESSAGE value="18/05/2024 - 22h30" />
|
||||
<MESSAGE value="19/05/2024 - 22h15" />
|
||||
<MESSAGE value="20/05/2024 - 14h00" />
|
||||
|
@ -486,6 +483,7 @@
|
|||
<MESSAGE value="11/06/2024 - 23h30" />
|
||||
<MESSAGE value="12/06/2024 - 21h30" />
|
||||
<MESSAGE value="15/06/2024 - 21h30" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="15/06/2024 - 21h30" />
|
||||
<MESSAGE value="17/06/2024 - 21h30" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="17/06/2024 - 21h30" />
|
||||
</component>
|
||||
</project>
|
2847
Log/log_file.log
2847
Log/log_file.log
File diff suppressed because one or more lines are too long
|
@ -11051,7 +11051,6 @@ def Invoice_Splited_Partner_From_Session_By_Inscription_Id( diction):
|
|||
else:
|
||||
total_ht = round(prix_session * 1, 2)
|
||||
|
||||
partner_invoice_header_data['total_header_hors_taxe_before_header_reduction'] = total_ht
|
||||
|
||||
# Recupération de la TVA de l'entité qui facture
|
||||
taux_tva_statuts, taux_tva_retval = partner_base_setup.Get_Given_Partner_Basic_Setup({'token':str(diction['token']), 'config_name':'tva'})
|
||||
|
@ -11062,17 +11061,31 @@ def Invoice_Splited_Partner_From_Session_By_Inscription_Id( diction):
|
|||
|
||||
tmp = ast.literal_eval(taux_tva_retval[0])
|
||||
taux_tva_retval = tmp['config_value']
|
||||
|
||||
print(" ### taux_tva_retval = ", taux_tva_retval)
|
||||
tva_status, tva_value = mycommon.IsFloat(str(taux_tva_retval))
|
||||
if (tva_status is False):
|
||||
mycommon.myprint(str(inspect.stack()[0][3]) + " Facturation : Le taux de TVA est invalide ")
|
||||
return False, " Facturation : Le taux de TVA est invalide ", False
|
||||
|
||||
split_invoice_part_FLOAT = mycommon.tryFloat(str(split_invoice_part))
|
||||
|
||||
if(split_type == "percent" ):
|
||||
split_invoice_part_FLOAT = round((split_invoice_part_FLOAT * total_ht)/100, 2)
|
||||
|
||||
|
||||
print(" ### dans la facturartion : split_type = ", str(split_type))
|
||||
print(" ### dans la facturartion : split_invoice_part_FLOAT = ", str(split_invoice_part_FLOAT))
|
||||
|
||||
partner_invoice_header_data['total_header_hors_taxe_before_header_reduction'] = str(split_invoice_part_FLOAT)
|
||||
|
||||
partner_invoice_header_data['order_header_tax'] = taux_tva_retval
|
||||
partner_invoice_header_data['order_header_tax_amount'] = str(round(tva_value * total_ht/100, 2))
|
||||
partner_invoice_header_data['total_header_toutes_taxes'] = str(round(total_ht + (tva_value * total_ht)/100, 2))
|
||||
partner_invoice_header_data['order_header_tax_amount'] = str(round(tva_value * split_invoice_part_FLOAT/100, 2))
|
||||
partner_invoice_header_data['total_header_toutes_taxes'] = str(round(split_invoice_part_FLOAT + (tva_value * split_invoice_part_FLOAT)/100, 2))
|
||||
partner_invoice_header_data['invoice_header_type'] = "facture"
|
||||
|
||||
partner_invoice_header_data['comment'] = "Montant total HT = "+str(total_ht)+"\n Type partage facture = "+str(split_type)+"\n Part de la facture = "+str(split_invoice_part)
|
||||
|
||||
partner_invoice_header_data['split_type'] = split_type
|
||||
partner_invoice_header_data['split_invoice_part'] = str(split_invoice_part)
|
||||
|
||||
|
|
Loading…
Reference in New Issue