Merge pull request #5060 from rohitwaghchaure/issue_fixes
[fixes] Set default company's letter head in purchase flow
This commit is contained in:
commit
cd4bede04f
@ -178,6 +178,9 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
|
|||||||
&& !this.frm.doc.shipping_address) {
|
&& !this.frm.doc.shipping_address) {
|
||||||
erpnext.utils.get_shipping_address(this.frm)
|
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(){
|
shipping_address: function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user