Removed validation for group by voucher in general ledger

This commit is contained in:
Rohit Waghchaure
2019-02-28 16:07:19 +05:30
parent 1d41c1c2de
commit c21cda2790
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ def validate_filters(filters, account_details):
frappe.throw(_("Can not filter based on Account, if grouped by Account"))
if (filters.get("voucher_no")
and filters.get("group_by") in [_('Group by Voucher'), _('Group by Voucher (Consolidated)')]):
and filters.get("group_by") in [_('Group by Voucher')]):
frappe.throw(_("Can not filter based on Voucher No, if grouped by Voucher"))
if filters.from_date > filters.to_date: