commit | 55489d0056f5f78449bf28b59d621be1feba93df | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@frappe.io> | Tue Mar 14 18:39:06 2023 +0530 |
committer | Ankush Menat <ankush@frappe.io> | Tue Mar 14 18:39:06 2023 +0530 |
tree | 64eaf0fa344f7d6d1e27e2148c4e41241a9c763e | |
parent | b93c18bd4a0320a22fb03b9f41b92675ee246f19 [diff] | |
parent | 5bf6fb43a9fc50149c1180c82d7e6a34f852fb4b [diff] |
Merge branch 'develop' into prateekkaramchandani/develop
diff --git a/erpnext/setup/doctype/company/company.py b/erpnext/setup/doctype/company/company.py index 07ee289..fcdf245 100644 --- a/erpnext/setup/doctype/company/company.py +++ b/erpnext/setup/doctype/company/company.py
@@ -808,7 +808,7 @@ return existing_address if out: - return min(out, key=lambda x: x[1])[0] # find min by sort_key + return max(out, key=lambda x: x[1])[0] # find max by sort_key else: return None