From d01ab434bf3661e99262e5bd5c51607a09bfcf42 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Sat, 27 Sep 2025 11:20:23 +0200 Subject: [PATCH] =?UTF-8?q?Interdire=20dupliquer=20retour=20entr=C3=A9e=20?= =?UTF-8?q?temporaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- equipment_history.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/equipment_history.html b/equipment_history.html index 1500a7c..4763ac0 100644 --- a/equipment_history.html +++ b/equipment_history.html @@ -310,11 +310,15 @@ target="_dialog"}} {{/if}} {{/if}} - {{:linkbutton - label="Dupliquer" - href="movements/copy_movement.html?key=%s&prop=%s"|args:$key:$_GET.prop - shape="plus" - target="_dialog"}} + {{if $direction == "output" && $type_mvt == "retour"}} + {{* interdire dupliquer *}} + {{else}} + {{:linkbutton + label="Dupliquer" + href="movements/copy_movement.html?key=%s&prop=%s"|args:$key:$_GET.prop + shape="plus" + target="_dialog"}} + {{/if}} {{:linkbutton label="Modifier" href="movements/modify_movement.html?key=%s"|args:$key