From 74707a38c225c07807ce4582a4ef743f1577cafa Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Wed, 17 Jun 2026 13:40:09 +0200 Subject: [PATCH] =?UTF-8?q?S=C3=A9curisation=20contre=20fausse=20manipe=20?= =?UTF-8?q?lors=20du=20classement=20immo=20sortie=20du=20bilan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- add_infos.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/add_infos.html b/add_infos.html index 8b16f09..3d2182f 100644 --- a/add_infos.html +++ b/add_infos.html @@ -53,14 +53,22 @@ {{:assign date_mes=null}} {{:assign status="ignored"}} {{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 *}} {{:save - key=""|uuid + key=$uuid validate_schema="asset.schema.json" type="immo" line=$_GET.immo_line_id|intval duration=0 - status="managed" + status=null assign_new_id="immo_doc_id" }} {{:redirect force="exit_step1.html?immo_doc_id=%s"|args:$immo_doc_id}}