From fa2aa09d01a3f087e8cbd588511f96ef29abdd7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 31 Dec 2010 12:41:01 +0100 Subject: [PATCH] Prevent overlapping of periods in aged balance for issue1764 (transplanted from 14828419189f9c6035ab12253f523046f615c284) --- account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.py b/account.py index c79bcc0ddf..4cc330e03c 100644 --- a/account.py +++ b/account.py @@ -2402,7 +2402,7 @@ class AgedBalance(Report): datetime.timedelta(days=term*coef),) else: term_query = '(l.maturity_date <= %s '\ - 'AND l.maturity_date >= %s) ' + 'AND l.maturity_date > %s) ' term_args = ( date_obj.today(cursor, user, context=context) + \ datetime.timedelta(days=term*coef),