mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 13:12:22 +01:00
fix(ux): `Shipping Address Link`
(cherry picked from commit ca0c3eb184)
Co-authored-by: creative-paramu <pparameshwari@thirvusoft.in>
This commit is contained in:
@@ -36,14 +36,14 @@ erpnext.buying = {
|
|||||||
|
|
||||||
// no idea where me is coming from
|
// no idea where me is coming from
|
||||||
if(this.frm.get_field('shipping_address')) {
|
if(this.frm.get_field('shipping_address')) {
|
||||||
this.frm.set_query("shipping_address", function() {
|
this.frm.set_query("shipping_address", () => {
|
||||||
if(me.frm.doc.customer) {
|
if(this.frm.doc.customer) {
|
||||||
return {
|
return {
|
||||||
query: 'frappe.contacts.doctype.address.address.address_query',
|
query: 'frappe.contacts.doctype.address.address.address_query',
|
||||||
filters: { link_doctype: 'Customer', link_name: me.frm.doc.customer }
|
filters: { link_doctype: 'Customer', link_name: this.frm.doc.customer }
|
||||||
};
|
};
|
||||||
} else
|
} else
|
||||||
return erpnext.queries.company_address_query(me.frm.doc)
|
return erpnext.queries.company_address_query(this.frm.doc)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user