Correction erreur conversion montant saisi

This commit is contained in:
Jean-Christophe Engel 2026-04-29 14:23:46 +02:00
parent d6fd5b4047
commit b74ef8ae9c
3 changed files with 19 additions and 12 deletions

View file

@ -77,15 +77,14 @@
{{:assign libelle=$_POST.libelle}}
{{/if}}
{{if $_POST.montant == null || $_POST.montant|intval == 0 }}
{{if $_POST.montant == null || $_POST.montant|money_int == 0 }}
{{if $montant_affecte > 0}}
{{:assign montant=$reste}}
{{else}}
{{:assign montant=null}}
{{/if}}
{{else}}
{{:assign montant=$_POST.montant|intval}}
{{:assign montant="%d*100"|math:$montant}}
{{:assign montant=$_POST.montant|money_int}}
{{if $montant == $reste}}
{{:assign montant=null}}
{{/if}}