Skip to content

Commit

Permalink
fix: set group_by condition if empty and voucher_no is set
Browse files Browse the repository at this point in the history
(cherry picked from commit a6b0cb6)
  • Loading branch information
vishakhdesai authored and mergify[bot] committed Sep 24, 2024
1 parent 7db135d commit ec27077
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/accounts/report/general_ledger/general_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def execute(filters=None):
if filters.get("party"):
filters.party = frappe.parse_json(filters.get("party"))

if filters.get("voucher_no") and not filters.get("group_by"):
filters.group_by = "Group by Voucher (Consolidated)"

validate_filters(filters, account_details)

validate_party(filters)
Expand Down

0 comments on commit ec27077

Please sign in to comment.