Sécurisation contre fausse manipe lors du classement immo sortie du bilan
This commit is contained in:
parent
77fa5f353a
commit
74707a38c2
1 changed files with 10 additions and 2 deletions
|
|
@ -53,14 +53,22 @@
|
||||||
{{:assign date_mes=null}}
|
{{:assign date_mes=null}}
|
||||||
{{:assign status="ignored"}}
|
{{:assign status="ignored"}}
|
||||||
{{elseif $_POST.classify == "archived"}}
|
{{elseif $_POST.classify == "archived"}}
|
||||||
|
{{* voir s'il y a déjà un doc associé à cette immo *}}
|
||||||
|
{{#load type="immo" where="$$.line = :immo_line_id" :immo_line_id=$_GET.immo_line_id|intval}}
|
||||||
|
{{:assign uuid=$key}}
|
||||||
|
{{:assign immo_doc_id=$id}}
|
||||||
|
{{else}}
|
||||||
|
{{:assign uuid=""|uuid}}
|
||||||
|
{{/load}}
|
||||||
|
|
||||||
{{* immobilisation sortie du bilan *}}
|
{{* immobilisation sortie du bilan *}}
|
||||||
{{:save
|
{{:save
|
||||||
key=""|uuid
|
key=$uuid
|
||||||
validate_schema="asset.schema.json"
|
validate_schema="asset.schema.json"
|
||||||
type="immo"
|
type="immo"
|
||||||
line=$_GET.immo_line_id|intval
|
line=$_GET.immo_line_id|intval
|
||||||
duration=0
|
duration=0
|
||||||
status="managed"
|
status=null
|
||||||
assign_new_id="immo_doc_id"
|
assign_new_id="immo_doc_id"
|
||||||
}}
|
}}
|
||||||
{{:redirect force="exit_step1.html?immo_doc_id=%s"|args:$immo_doc_id}}
|
{{:redirect force="exit_step1.html?immo_doc_id=%s"|args:$immo_doc_id}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue