From a4823db6b22fc72198bccde8cbabefd7559adc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 17 Jun 2008 12:42:46 +0200 Subject: [PATCH] Fix comparaison Decimal Integer --- statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement.py b/statement.py index 1dd0f431ec..fa7e7d59c4 100644 --- a/statement.py +++ b/statement.py @@ -191,7 +191,7 @@ class Line(OSV): }) journal = statement_line.statement.journal.journal - if statement_line.amount < 0: + if statement_line.amount < Decimal('0.0'): account = journal.credit_account else: account = journal.debit_account