mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 17:45:04 +00:00
Merge pull request #1984 from nabinhait/hotfix
Fix for company in chart of accounts
This commit is contained in:
@@ -66,7 +66,7 @@ pscript['onload_Accounts Browser'] = function(wrapper){
|
||||
$.each(r.message, function(i, v) {
|
||||
$('<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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user