From 0ac1eaf414fe03ef12a258e69ad9c27f2ae62b4c Mon Sep 17 00:00:00 2001 From: Qwann Date: Fri, 27 Jan 2017 13:08:50 +0100 Subject: [PATCH] fixing decimal_issue --- kfet/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kfet/views.py b/kfet/views.py index 125ce9b1..7083d489 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -963,7 +963,7 @@ def kpsul_perform_operations(request): if operationgroup.on_acc.is_cof: if is_addcost: operation.addcost_amount = operation.addcost_amount / cof_grant_divisor - operation.amount = Decimal(float(operation.amount) / cof_grant_divisor) + operation.amount = operation.amount / cof_grant_divisor to_articles_stocks[operation.article] -= operation.article_nb else: if operationgroup.on_acc.is_cash: