mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
fix: billing address does not belongs to the company error
(cherry picked from commit9df07b367a) (cherry picked from commite1f29de078)
This commit is contained in:
committed by
Mergify
parent
ff46d20b25
commit
d6b7791f18
@@ -178,14 +178,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