mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 07:29:22 +00:00
v8.x.x Allow Doctypes with space in name to be filtered in General Ledger (#11264)
* Set transaction type in pricing rule only if unavailable * Use scrub instead for party_type with space
This commit is contained in:
committed by
Nabin Hait
parent
757c2f692b
commit
a829b3cc82
@@ -83,7 +83,7 @@ frappe.query_reports["General Ledger"] = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var fieldname = party_type.toLowerCase() + "_name";
|
var fieldname = frappe.model.scrub(party_type)+"_name";
|
||||||
frappe.db.get_value(party_type, party, fieldname, function(value) {
|
frappe.db.get_value(party_type, party, fieldname, function(value) {
|
||||||
frappe.query_report_filters_by_name.party_name.set_value(value[fieldname]);
|
frappe.query_report_filters_by_name.party_name.set_value(value[fieldname]);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user