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
  • Loading branch information
gouravsaini021 authored Jul 25, 2023
1 parent bd9e0e8 commit cf93714
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 @@ -441,7 +441,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 cf93714

Please sign in to comment.