diff --git a/india_compliance/gst_india/client_scripts/stock_entry.js b/india_compliance/gst_india/client_scripts/stock_entry.js index c1a15eece8..03eb045330 100644 --- a/india_compliance/gst_india/client_scripts/stock_entry.js +++ b/india_compliance/gst_india/client_scripts/stock_entry.js @@ -111,7 +111,7 @@ frappe.ui.form.on(DOCTYPE, { }, company(frm) { - if (frm.doc.company) { + if (frm.doc.company && doc.purpose === "Send to Subcontractor") { frappe.call({ method: "frappe.contacts.doctype.address.address.get_default_address", args: {