mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 07:22:13 +00:00
fix: set group_by condition if empty and voucher_no is set
(cherry picked from commit a6b0cb6cac)
This commit is contained in:
@@ -35,6 +35,9 @@ def execute(filters=None):
|
|||||||
if filters.get("party"):
|
if filters.get("party"):
|
||||||
filters.party = frappe.parse_json(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_filters(filters, account_details)
|
||||||
|
|
||||||
validate_party(filters)
|
validate_party(filters)
|
||||||
|
|||||||
Reference in New Issue
Block a user