Correction erreur conversion montant saisi
This commit is contained in:
parent
d6fd5b4047
commit
b74ef8ae9c
3 changed files with 19 additions and 12 deletions
|
|
@ -76,8 +76,7 @@
|
|||
{{:assign saved_amount=$reste}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{:assign montant_amort=$_POST.montant|floatval}}
|
||||
{{:assign montant_amort="%f*100"|math:$montant_amort}}
|
||||
{{:assign montant_amort=$_POST.montant|money_int}}
|
||||
{{if $montant_amort > $reste}}
|
||||
{{:assign reste_nb="%f"|math:$reste|money_currency:false}}
|
||||
{{:error message="Le montant de l'amortissement ne peut être supérieur au reste (%s)"|args:$reste_nb}}
|
||||
|
|
@ -85,7 +84,7 @@
|
|||
{{if $montant_amort == $amort_line.amount}}
|
||||
{{:assign saved_amount=null}}
|
||||
{{else}}
|
||||
{{:assign saved_amount=$montant_amort|intval}}
|
||||
{{:assign saved_amount=$montant_amort}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue