From 8bbd0b81011696f701e606433e9fc60db6300848 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Mon, 16 Mar 2026 15:54:41 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20erreur=20propri=C3=A9t=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- equipment_history.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/equipment_history.html b/equipment_history.html index eda9501..5db0fb6 100644 --- a/equipment_history.html +++ b/equipment_history.html @@ -316,12 +316,19 @@ {{if $transactions|count > 0}}{{"Oui"}}{{/if}} {{if $current != "archives"}} + {{if $direction == "output" && $type_mvt == "retour"}} + {{:assign prop = 0}} + {{elseif $direction == "input" && $type_mvt == "temporaire"}} + {{:assign prop = 0}} + {{else}} + {{:assign prop = 1}} + {{/if}} {{if $direction == "output" && $type_mvt == "temporaire"}} {{:assign var="temp_ext" from="reste.%s"|args:$key}} {{if $temp_ext != null && $temp_ext > 0}} {{:linkbutton label="Retour" - href="movements/output_return.html?key=%s&prop=%s"|args:$key:$selected_prop + href="movements/output_return.html?key=%s&prop=%s"|args:$key:$prop shape="reset" target="_dialog"}} {{/if}} @@ -331,14 +338,14 @@ {{if $temp_in != null && $temp_in > 0}} {{:linkbutton label="Retour" - href="movements/input_return.html?key=%s&prop=%s"|args:$key:$selected_prop + href="movements/input_return.html?key=%s&prop=%s"|args:$key:$prop shape="reset" target="_dialog"}} {{/if}} {{/if}} {{:linkbutton label="Détails" - href="movements/movement_details.html?key=%s&prop=%s&from=eh"|args:$key:$selected_prop + href="movements/movement_details.html?key=%s&prop=%s&from=eh"|args:$key:$prop shape="eye" }} {{/if}}