mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-21 23:58:30 +00:00
limit fetched GL entries to to_date
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user