mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
Instead of throwing error, just return
This commit is contained in:
@@ -84,9 +84,7 @@ frappe.query_reports["General Ledger"] = {
|
|||||||
|
|
||||||
var party_type = frappe.query_report_filters_by_name.party_type.get_value();
|
var party_type = frappe.query_report_filters_by_name.party_type.get_value();
|
||||||
var parties = frappe.query_report_filters_by_name.party.get_value();
|
var parties = frappe.query_report_filters_by_name.party.get_value();
|
||||||
if(!party_type) {
|
if(!party_type) return;
|
||||||
frappe.throw(__("Please select Party Type first"));
|
|
||||||
}
|
|
||||||
|
|
||||||
const values = parties.split(/\s*,\s*/).filter(d => d);
|
const values = parties.split(/\s*,\s*/).filter(d => d);
|
||||||
const txt = parties.match(/[^,\s*]*$/)[0] || '';
|
const txt = parties.match(/[^,\s*]*$/)[0] || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user