From 007bb852dc59e960a5f6be1a536cd31388031957 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Thu, 2 Nov 2023 16:13:09 +0530 Subject: [PATCH] fix: use company to create address in setup wizard --- india_compliance/setup_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/india_compliance/setup_wizard.py b/india_compliance/setup_wizard.py index b9a34469ec..c04aaede82 100644 --- a/india_compliance/setup_wizard.py +++ b/india_compliance/setup_wizard.py @@ -74,13 +74,13 @@ def update_company_info(params, gst_category=None): company_doc.save() -def create_address(gstin_info: dict) -> None: +def create_address(gstin_info: dict, params: dict) -> None: if not gstin_info.permanent_address: return address = frappe.new_doc("Address") address.append( - "links", {"link_doctype": "Company", "link_name": gstin_info.business_name} + "links", {"link_doctype": "Company", "link_name": params.company_name} ) for key, value in gstin_info.permanent_address.items():