From 191e4ab4932161139cfa3c0b452df28980c58f29 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 15 Nov 2024 13:25:56 +0530 Subject: [PATCH] fix: doc is not defined --- india_compliance/gst_india/client_scripts/stock_entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/india_compliance/gst_india/client_scripts/stock_entry.js b/india_compliance/gst_india/client_scripts/stock_entry.js index 5481b0bf59..c504548aa8 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 && doc.purpose === "Send to Subcontractor") { + if (frm.doc.company && frm.doc.purpose === "Send to Subcontractor") { frappe.call({ method: "frappe.contacts.doctype.address.address.get_default_address", args: {