mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
[fix] [minor] use wn.defaults.get_default instead of sys_defaults
This commit is contained in:
@@ -80,7 +80,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(sys_defaults.company || r[0]).change();
|
||||
wrapper.$company_select.val(wn.defaults.get_default("company") || r[0]).change();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ wn.query_reports["Accounts Payable"] = {
|
||||
"label": "Company",
|
||||
"fieldtype": "Link",
|
||||
"options": "Company",
|
||||
"default": sys_defaults.company
|
||||
"default": wn.defaults.get_default("company")
|
||||
},
|
||||
{
|
||||
"fieldname":"account",
|
||||
|
||||
@@ -5,7 +5,7 @@ wn.query_reports["Accounts Receivable"] = {
|
||||
"label": "Company",
|
||||
"fieldtype": "Link",
|
||||
"options": "Company",
|
||||
"default": sys_defaults.company
|
||||
"default": wn.defaults.get_default("company")
|
||||
},
|
||||
{
|
||||
"fieldname":"account",
|
||||
|
||||
@@ -19,7 +19,7 @@ wn.query_reports["Budget Variance Report"] = {
|
||||
label: "Company",
|
||||
fieldtype: "Link",
|
||||
options: "Company",
|
||||
default: sys_defaults.company
|
||||
default: wn.defaults.get_default("company")
|
||||
},
|
||||
]
|
||||
}
|
||||
@@ -36,7 +36,7 @@ wn.query_reports["Payment Collection With Ageing"] = {
|
||||
"label": "Company",
|
||||
"fieldtype": "Link",
|
||||
"options": "Company",
|
||||
"default": sys_defaults.company
|
||||
"default": wn.defaults.get_default("company")
|
||||
},
|
||||
]
|
||||
}
|
||||
@@ -34,7 +34,7 @@ wn.query_reports["Payment Made With Ageing"] = {
|
||||
label: "Company",
|
||||
fieldtype: "Link",
|
||||
options: "Company",
|
||||
default: sys_defaults.company
|
||||
default: wn.defaults.get_default("company")
|
||||
},
|
||||
]
|
||||
}
|
||||
@@ -4,7 +4,7 @@ wn.query_reports["Sales Register"] = {
|
||||
"fieldname":"from_date",
|
||||
"label": "From Date",
|
||||
"fieldtype": "Date",
|
||||
"default": wn.defaults.get_user_default("year_start_date"),
|
||||
"default": wn.defaults.get_default("year_start_date"),
|
||||
"width": "80"
|
||||
},
|
||||
{
|
||||
@@ -36,7 +36,7 @@ wn.query_reports["Sales Register"] = {
|
||||
"label": "Company",
|
||||
"fieldtype": "Link",
|
||||
"options": "Company",
|
||||
"default": sys_defaults.company
|
||||
"default": wn.defaults.get_default("company")
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user