forked from DGNum/gestioCOF
fixing decimal issue2
This commit is contained in:
parent
0ac1eaf414
commit
bc14205d29
1 changed files with 1 additions and 1 deletions
|
@ -40,6 +40,6 @@ def highlight_clipper(clipper, q):
|
|||
|
||||
@register.filter()
|
||||
def ukf(balance, is_cof):
|
||||
grant = is_cof and (1 + Settings.SUBVENTION_COF() / 100) or 1
|
||||
grant = 1 + float(Settings.SUBVENTION_COF()) / 100 if is_cof else 1.
|
||||
# float nécessaire car sinon problème avec le round de future.builtins
|
||||
return floor(float(balance) * 10 * grant)
|
||||
|
|
Loading…
Reference in a new issue