Skip to content

Commit

Permalink
fix: use company to create address in setup wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
ljain112 committed Nov 2, 2023
1 parent 04f8cf6 commit 007bb85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions india_compliance/setup_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 007bb85

Please sign in to comment.