Skip to content

Commit

Permalink
fix: Missing opening entry in general ledger (backport #33519) (#33526)
Browse files Browse the repository at this point in the history
fix: Missing opening entry in general ledger (#33519)

(cherry picked from commit c78399c)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
mergify[bot] and deepeshgarg007 committed Jan 3, 2023
1 parent fcf052d commit 8e375db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/report/general_ledger/general_ledger.py
Expand Up @@ -239,7 +239,7 @@ def get_conditions(filters):
):
conditions.append("(posting_date >=%(from_date)s or is_opening = 'Yes')")

conditions.append("(posting_date <=%(to_date)s)")
conditions.append("(posting_date <=%(to_date)s or is_opening = 'Yes')")

if filters.get("project"):
conditions.append("project in %(project)s")
Expand Down

0 comments on commit 8e375db

Please sign in to comment.