Merge pull request #43235 from vishakhdesai/general-ledger-duplicate-rows-issue

fix: set group_by condition to "Group by Voucher (Consolidated)" if `None` and voucher_no is set
This commit is contained in:
ruthra kumar
2024-09-24 14:53:12 +05:30
committed by GitHub

View File

@@ -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)