From 9b61ba7cf9ab13eddb3e6fb2d7f92c155e2eb480 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 23 Jun 2024 21:25:40 +0200 Subject: [PATCH] feat: add display reference document --- erpnext/accounts/doctype/payment_request/payment_request.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/doctype/payment_request/payment_request.py b/erpnext/accounts/doctype/payment_request/payment_request.py index 0293333e303a..7edda3f9c169 100644 --- a/erpnext/accounts/doctype/payment_request/payment_request.py +++ b/erpnext/accounts/doctype/payment_request/payment_request.py @@ -209,6 +209,8 @@ def get_tx_data(self): "currency": self.currency, "reference_doctype": self.doctype, "reference_docname": self.name, + "display_reference_doctype": ref_doc.doctype, + "display_reference_docname": ref_doc.name, "payer_contact": contact, "payer_address": address, "loyalty_points": loyalty_points,