[fix]Letterhead not being changed with change in company
This commit is contained in:
@@ -13,24 +13,6 @@ $.extend(erpnext, {
|
||||
return frappe.boot.sysdefaults.currency;
|
||||
},
|
||||
|
||||
get_fiscal_year: function(company, date, fn) {
|
||||
if(frappe.meta.get_docfield(cur_frm.doctype, "fiscal_year")) {
|
||||
frappe.call({
|
||||
type:"GET",
|
||||
method: "erpnext.accounts.utils.get_fiscal_year",
|
||||
args: {
|
||||
"company": company,
|
||||
"date": date,
|
||||
"verbose": 0
|
||||
},
|
||||
callback: function(r) {
|
||||
if (r.message) cur_frm.set_value("fiscal_year", r.message[0]);
|
||||
if (fn) fn();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
toggle_naming_series: function() {
|
||||
if(cur_frm.fields_dict.naming_series) {
|
||||
cur_frm.toggle_display("naming_series", cur_frm.doc.__islocal?true:false);
|
||||
|
||||
Reference in New Issue
Block a user