[fix] Shipping address not fetch from purchase order in to purchase invoice & receipt. (#12134)
This commit is contained in:
parent
d8c6449f3a
commit
bd5e01b09b
@ -171,7 +171,10 @@ erpnext.utils.validate_mandatory = function(frm, label, value, trigger_on) {
|
|||||||
erpnext.utils.get_shipping_address = function(frm, callback){
|
erpnext.utils.get_shipping_address = function(frm, callback){
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "frappe.contacts.doctype.address.address.get_shipping_address",
|
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){
|
callback: function(r){
|
||||||
if(r.message){
|
if(r.message){
|
||||||
frm.set_value("shipping_address", r.message[0]) //Address title or name
|
frm.set_value("shipping_address", r.message[0]) //Address title or name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user