From 4130d6d7c94ac964e937f2dfb4cd286bd0a5a9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Mon, 2 Oct 2017 11:52:16 +0200 Subject: [PATCH] Add missing parenthesis in amount computation issue6780 review40681002 --- move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move.py b/move.py index 949079f85c..ed1f3f06a8 100644 --- a/move.py +++ b/move.py @@ -919,7 +919,7 @@ class Line(ModelSQL, ModelView): if self.amount_second_currency is not None: return self.amount_second_currency * sign else: - return self.debit - self.credit * sign + return (self.debit - self.credit) * sign def get_amount_currency(self, name): if self.second_currency: