fix: add doctype parameter to lead details for correct company details

This commit is contained in:
ljain112
2025-11-10 17:34:19 +05:30
parent a8f3864905
commit 0b91338771
3 changed files with 4 additions and 2 deletions

View File

@@ -442,7 +442,7 @@ def _set_missing_values(source, target):
@frappe.whitelist()
def get_lead_details(lead, posting_date=None, company=None):
def get_lead_details(lead, posting_date=None, company=None, doctype=None):
if not lead:
return {}
@@ -464,7 +464,7 @@ def get_lead_details(lead, posting_date=None, company=None):
}
)
set_address_details(out, lead, "Lead", company=company)
set_address_details(out, lead, "Lead", doctype=doctype, company=company)
taxes_and_charges = set_taxes(
None,