[fix] Shipping address not fetch from purchase order in to purchase invoice & receipt. (#12134)

This commit is contained in:
rohitwaghchaure 2017-12-25 11:28:07 +05:30 committed by Nabin Hait
parent d8c6449f3a
commit bd5e01b09b

View File

@ -171,7 +171,10 @@ erpnext.utils.validate_mandatory = function(frm, label, value, trigger_on) {
erpnext.utils.get_shipping_address = function(frm, callback){
frappe.call({
method: "frappe.contacts.doctype.address.address.get_shipping_address",
args: {company: frm.doc.company},
args: {
company: frm.doc.company,
address: frm.doc.shipping_address
},
callback: function(r){
if(r.message){
frm.set_value("shipping_address", r.message[0]) //Address title or name