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
  • Loading branch information
vishakhdesai committed Sep 16, 2024
1 parent 902ce9c commit a6b0cb6
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 a6b0cb6

Please sign in to comment.