From e802f0c3526c7529039683bd9ff176eab7afcb4f Mon Sep 17 00:00:00 2001
From: gouravengineer <63018500+gouravengineer@users.noreply.github.com>
Date: Tue, 25 Jul 2023 16:23:36 +0530
Subject: [PATCH] fix: show invoices name instead of object address
comma_and function in expecting a list but it gets a tuple so it is returning a object instead of a string
(cherry picked from commit cf93714a7cce465d241bf4e713ee7492c5c01bfa)
---
erpnext/accounts/doctype/payment_entry/payment_entry.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py
index 411ec6d02c6..83736bd68e9 100644
--- a/erpnext/accounts/doctype/payment_entry/payment_entry.py
+++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py
@@ -468,7 +468,7 @@ class PaymentEntry(AccountsController):
_(
"References {0} of type {1} had no outstanding amount left before submitting the Payment Entry. Now they have a negative outstanding amount."
).format(
- frappe.bold(comma_and((d.reference_name for d in references))),
+ frappe.bold(comma_and([d.reference_name for d in references])),
_(reference_doctype),
)
+ "
"