fix: render HTML labels in open payment requests link dropdown (#55315)

This commit is contained in:
Diptanil Saha
2026-05-27 20:09:28 +05:30
committed by GitHub
parent 1bcc214367
commit 1b076d0ccc

View File

@@ -1293,11 +1293,16 @@ def get_open_payment_requests_query(
)
return [
(
pr.name,
_("<strong>Grand Total:</strong> {0}").format(pr.grand_total),
_("<strong>Outstanding Amount:</strong> {0}").format(pr.outstanding_amount),
)
{
"value": pr.name,
"description": ", ".join(
[
_("<strong>Grand Total:</strong> {0}").format(pr.grand_total),
_("<strong>Outstanding Amount:</strong> {0}").format(pr.outstanding_amount),
]
),
"description_html": True,
}
for pr in open_payment_requests
]