mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 14:32:13 +00:00
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> fix: return type of `get_party_details` (#43131)
This commit is contained in:
@@ -68,7 +68,7 @@ def get_party_details(
|
|||||||
pos_profile=None,
|
pos_profile=None,
|
||||||
):
|
):
|
||||||
if not party:
|
if not party:
|
||||||
return {}
|
return frappe._dict()
|
||||||
if not frappe.db.exists(party_type, party):
|
if not frappe.db.exists(party_type, party):
|
||||||
frappe.throw(_("{0}: {1} does not exists").format(party_type, party))
|
frappe.throw(_("{0}: {1} does not exists").format(party_type, party))
|
||||||
return _get_party_details(
|
return _get_party_details(
|
||||||
|
|||||||
Reference in New Issue
Block a user