Merge pull request #5060 from rohitwaghchaure/issue_fixes

[fixes] Set default company's letter head in purchase flow
This commit is contained in:
Rushabh Mehta 2016-03-25 13:48:58 +05:30
commit cd4bede04f

View File

@ -178,6 +178,9 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
&& !this.frm.doc.shipping_address) {
erpnext.utils.get_shipping_address(this.frm)
}
var company_doc = frappe.get_doc(":Company", me.frm.doc.company);
me.frm.set_value("letter_head", company_doc.default_letter_head);
},
shipping_address: function(){