From 1b076d0cccad266eda465e656f8bcd98d614d309 Mon Sep 17 00:00:00 2001 From: Diptanil Saha Date: Wed, 27 May 2026 20:09:28 +0530 Subject: [PATCH] fix: render HTML labels in open payment requests link dropdown (#55315) --- .../doctype/payment_request/payment_request.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 ]