forked from DGNum/gestioCOF
remove float
This commit is contained in:
parent
98886f422a
commit
746f16f57d
1 changed files with 1 additions and 2 deletions
|
@ -38,5 +38,4 @@ def highlight_clipper(clipper, q):
|
||||||
@register.filter()
|
@register.filter()
|
||||||
def ukf(balance, is_cof):
|
def ukf(balance, is_cof):
|
||||||
grant = is_cof and (1 + Settings.SUBVENTION_COF() / 100) or 1
|
grant = is_cof and (1 + Settings.SUBVENTION_COF() / 100) or 1
|
||||||
# float nécessaire car sinon problème avec le round de future.builtins
|
return floor(balance * 10 * grant)
|
||||||
return floor(float(balance * 10 * grant))
|
|
||||||
|
|
Loading…
Reference in a new issue