diff --git a/erpnext/accounts/doctype/payment_request/payment_request.py b/erpnext/accounts/doctype/payment_request/payment_request.py index a74f3808142..c3dcea4772e 100644 --- a/erpnext/accounts/doctype/payment_request/payment_request.py +++ b/erpnext/accounts/doctype/payment_request/payment_request.py @@ -1293,11 +1293,16 @@ def get_open_payment_requests_query( ) return [ - ( - pr.name, - _("Grand Total: {0}").format(pr.grand_total), - _("Outstanding Amount: {0}").format(pr.outstanding_amount), - ) + { + "value": pr.name, + "description": ", ".join( + [ + _("Grand Total: {0}").format(pr.grand_total), + _("Outstanding Amount: {0}").format(pr.outstanding_amount), + ] + ), + "description_html": True, + } for pr in open_payment_requests ]