ajout contrôle quantité positive

This commit is contained in:
Jean-Christophe Engel 2024-10-29 14:52:34 +01:00
parent 86443b9bb0
commit c2844a17bf
2 changed files with 12 additions and 5 deletions

View file

@ -66,6 +66,10 @@
-------------------- Traiter la saisie --------------------
*}}
{{#form on="change"}}
{{if $_POST.amount <= 0}}
{{:error message="La quantité (%s) doit être strictement positive !!"|args:$_POST.amount}}
{{/if}}
{{* préparer le mouvement modifié *}}
{{if $direction_mvt == "input"}}
{{:assign var="mvt_modif.input_nature" from="input_labels.%s"|args:$_POST.type_operation}}
@ -157,7 +161,8 @@
{{:redirect force="../index.html?ok=1&msg=modification"}}
{{/if}}
{{/if}}
{{else}}
{{:form_errors}}
{{/form}}
{{*