fixing decimal issue2

This commit is contained in:
Qwann 2017-02-01 19:32:18 +01:00
parent 0ac1eaf414
commit bc14205d29

View file

@ -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)