Fix for company in chart of accounts
This commit is contained in:
parent
92c043423e
commit
ffd57a0565
@ -66,7 +66,7 @@ pscript['onload_Accounts Browser'] = function(wrapper){
|
|||||||
$.each(r.message, function(i, v) {
|
$.each(r.message, function(i, v) {
|
||||||
$('<option>').html(v).attr('value', v).appendTo(wrapper.$company_select);
|
$('<option>').html(v).attr('value', v).appendTo(wrapper.$company_select);
|
||||||
});
|
});
|
||||||
wrapper.$company_select.val(frappe.defaults.get_user_default("company") || r[0]).change();
|
wrapper.$company_select.val(frappe.defaults.get_user_default("company") || r.message[0]).change();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user