Correction erreur conversion montant saisi
This commit is contained in:
parent
d6fd5b4047
commit
b74ef8ae9c
3 changed files with 19 additions and 12 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue