mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +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")):
|
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 >=%(from_date)s")
|
||||||
|
conditions.append("posting_date <=%(to_date)s")
|
||||||
|
|
||||||
if filters.get("project"):
|
if filters.get("project"):
|
||||||
conditions.append("project=%(project)s")
|
conditions.append("project=%(project)s")
|
||||||
|
|||||||
Reference in New Issue
Block a user