mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fix: billing address does not belongs to the company error
This commit is contained in:
@@ -174,14 +174,9 @@ erpnext.buying = {
|
|||||||
callback: (r) => {
|
callback: (r) => {
|
||||||
if (!r.message) return;
|
if (!r.message) return;
|
||||||
|
|
||||||
if (!this.frm.doc.billing_address) {
|
|
||||||
this.frm.set_value("billing_address", r.message.primary_address || "");
|
this.frm.set_value("billing_address", r.message.primary_address || "");
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
if (frappe.meta.has_field(this.frm.doc.doctype, "shipping_address")) {
|
||||||
frappe.meta.has_field(this.frm.doc.doctype, "shipping_address") &&
|
|
||||||
!this.frm.doc.shipping_address
|
|
||||||
) {
|
|
||||||
this.frm.set_value("shipping_address", r.message.shipping_address || "");
|
this.frm.set_value("shipping_address", r.message.shipping_address || "");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user