company wise letter head feature added

This commit is contained in:
Neil Trini Lasrado
2014-12-15 15:49:40 +05:30
committed by Nabin Hait
parent b0b7e7fdf8
commit 31a92bd9d9
4 changed files with 341 additions and 312 deletions

View File

@@ -99,6 +99,20 @@ $.extend(erpnext, {
d.show();
});
},
get_letter_head: function(company) {
frappe.call({
type:"GET",
method: "erpnext.accounts.utils.get_letter_head",
args: {
"company": company
},
callback: function(r) {
if (!r.exe) cur_frm.set_value("letter_head", r.message);
}
});
},
});