default account's custom query in company
This commit is contained in:
parent
c17dff4b01
commit
a19150ddaf
@ -146,13 +146,12 @@ erpnext.company.setup_queries = function(frm) {
|
||||
|
||||
erpnext.company.set_custom_query = function(frm, v) {
|
||||
var filters = {
|
||||
"company": frm.doc.company,
|
||||
"company": frm.doc.name,
|
||||
"is_group": 0
|
||||
};
|
||||
|
||||
for (var key in v[1])
|
||||
filters[key] = v[1][key];
|
||||
|
||||
|
||||
frm.set_query(v[0], function() {
|
||||
return {
|
||||
filters: filters
|
||||
|
Loading…
Reference in New Issue
Block a user