diff --git a/kfet/templatetags/kfet_tags.py b/kfet/templatetags/kfet_tags.py index 59840b27..2dd704b6 100644 --- a/kfet/templatetags/kfet_tags.py +++ b/kfet/templatetags/kfet_tags.py @@ -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)