fix: return type of get_party_details (backport #43131) (#43135)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
fix: return type of `get_party_details` (#43131)
This commit is contained in:
mergify[bot]
2024-09-09 19:26:21 +02:00
committed by GitHub
parent a4b9dda4b2
commit e8aae5018a

View File

@@ -68,7 +68,7 @@ def get_party_details(
pos_profile=None,
):
if not party:
return {}
return frappe._dict()
if not frappe.db.exists(party_type, party):
frappe.throw(_("{0}: {1} does not exists").format(party_type, party))
return _get_party_details(