fix: pass right existing address

This commit is contained in:
Sanket322
2025-01-03 18:04:56 +05:30
parent f46f1bead4
commit ce99764772
2 changed files with 9 additions and 5 deletions

View File

@@ -158,7 +158,11 @@ erpnext.buying = {
frappe.call({
method: "erpnext.setup.doctype.company.company.get_billing_shipping_address",
args: { name: this.frm.doc.company, existing_address:this.frm.doc.billing_address },
args: {
name: this.frm.doc.company,
billing_address:this.frm.doc.billing_address,
shipping_address: this.frm.doc.shipping_address
},
callback: (r) => {
this.frm.set_value("billing_address", r.message.primary_address || "");