From d20c6221e2843dc02ce83756c2ef8ee405e326ec Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Wed, 29 Nov 2023 12:20:07 +0100 Subject: [PATCH] Simplification mineure --- mouvements/entrees/modifier_entree.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mouvements/entrees/modifier_entree.html b/mouvements/entrees/modifier_entree.html index 05db941..ad1b010 100644 --- a/mouvements/entrees/modifier_entree.html +++ b/mouvements/entrees/modifier_entree.html @@ -14,13 +14,11 @@ {{:assign key_eqpmt_init=$mvt_modif.equipment}} {{* types d'entrées *}} -{{:assign rang=0}} -{{#foreach from=$module.config.inputNature item="elem"}} +{{#foreach from=$module.config.inputNature key="rang" item="elem"}} {{:assign var='types_entrees.' value="%s"|args:$elem.label}} {{if $elem.label == $mvt_modif.inputNature}} {{:assign type_defaut=$rang}} {{/if}} - {{:assign rang="%d+1"|math:$rang}} {{/foreach}} {{* récupérer les infos du matériel associé *}}