Prevent overlapping of periods in aged balance for issue1764

(transplanted from 14828419189f9c6035ab12253f523046f615c284)
This commit is contained in:
Cédric Krier committed 2010-12-31 12:41:01 +01:00
1 parent 7051a6d377
commit 21ed71bb6e
1 file changed
+1 -1
+1 -1
View File
@@ -2385,7 +2385,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),