Simplification messages

This commit is contained in:
Jean-Christophe Engel 2025-02-25 15:31:53 +01:00
parent 5757c4161d
commit e856347d40
8 changed files with 16 additions and 30 deletions

View file

@ -47,7 +47,6 @@
{{/if}}
{{/foreach}}
{{/if}}
{{*
-------------------- Traiter la saisie --------------------
*}}
@ -63,7 +62,7 @@
{{* préparer le mouvement copié *}}
{{if $mvt_new.direction == "input"}}
{{:assign var="mvt_new.input_nature" value=$_POST.operation}}
{{:assign var="mvt_new.operation" value=$_POST.operation}}
{{:assign var="type_mvt" from="config.input_nature.%s.type"|args:$mvt_new.operation}}
{{if $type_mvt == "temporaire"}}
{{:assign prop=0}}
@ -71,7 +70,7 @@
{{:assign prop=1}}
{{/if}}
{{else}}
{{:assign var="mvt_new.output_nature" value=$_POST.operation}}
{{:assign var="mvt_new.operation" value=$_POST.operation}}
{{:assign var="type_mvt" from="config.output_nature.%s.type"|args:$mvt_new.operation}}
{{if $type_mvt == "retour"}}
{{:assign prop=0}}
@ -119,15 +118,10 @@
keep="erreur"
movements=$movements_new
}}
{{if $erreur}}
{{:assign var="mvt_label" from="%s_labels.%s"|args:$mvt_new.direction:$mvt_new.operation}}
<p class="block error">
Impossible d'enregistrer ce mouvement :
{{if $mvt_new.direction == "input"}}
« {{$mvt_new.input_nature}}
{{else}}
« {{$mvt_new.output_nature}}
{{/if}}
Impossible d'enregistrer ce mouvement : « {{$mvt_label}}
de {{$eqpmt.name}} (qté : {{$mvt_new.amount}}) à la date du {{$mvt_new.date|date_short}} »
</p>
{{else}}