forked from DGNum/gestioCOF
Merge branch 'qwann/k-fet/decimal_issue2' into 'k-fet'
Qwann/k fet/decimal issue2 `grant` is a Decimal and thus can not be casted implicitly to float. See merge request !158
This commit is contained in:
commit
49e6101156
1 changed files with 1 additions and 2 deletions
|
@ -41,5 +41,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