Skip to content

Commit

Permalink
fix: show invoices name instead of object address
Browse files Browse the repository at this point in the history
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 cf93714)
  • Loading branch information
gouravsaini021 authored and ruthra-kumar committed Jul 26, 2023
1 parent cff6e72 commit e802f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def validate_paid_invoices(self):
_(
"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),
)
+ "<br><br>"
Expand Down

0 comments on commit e802f0c

Please sign in to comment.