limit fetched GL entries to to_date

This commit is contained in:
tundebabzy
2018-01-23 11:09:30 +01:00
parent c209ce9d8f
commit 58cceff622

View File

@@ -246,6 +246,7 @@ def get_conditions(filters):
if not (filters.get("account") or filters.get("party") or filters.get("group_by_account")):
conditions.append("posting_date >=%(from_date)s")
conditions.append("posting_date <=%(to_date)s")
if filters.get("project"):
conditions.append("project=%(project)s")