Merge pull request #16807 from rohitwaghchaure/remove_validation_for_group_by_voucher_consolidate
fix: when General Ledger is opened from Purchase Receipt or Delivery note, user get Opening and Closing printed twice
This commit is contained in:
commit
5e71a56c7a
@ -53,7 +53,7 @@ def validate_filters(filters, account_details):
|
|||||||
frappe.throw(_("Can not filter based on Account, if grouped by Account"))
|
frappe.throw(_("Can not filter based on Account, if grouped by Account"))
|
||||||
|
|
||||||
if (filters.get("voucher_no")
|
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"))
|
frappe.throw(_("Can not filter based on Voucher No, if grouped by Voucher"))
|
||||||
|
|
||||||
if filters.from_date > filters.to_date:
|
if filters.from_date > filters.to_date:
|
||||||
|
@ -73,7 +73,7 @@ erpnext.stock.StockController = frappe.ui.form.Controller.extend({
|
|||||||
from_date: me.frm.doc.posting_date,
|
from_date: me.frm.doc.posting_date,
|
||||||
to_date: me.frm.doc.posting_date,
|
to_date: me.frm.doc.posting_date,
|
||||||
company: me.frm.doc.company,
|
company: me.frm.doc.company,
|
||||||
group_by: ""
|
group_by: "Group by Voucher (Consolidated)"
|
||||||
};
|
};
|
||||||
frappe.set_route("query-report", "General Ledger");
|
frappe.set_route("query-report", "General Ledger");
|
||||||
}, __("View"));
|
}, __("View"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user