Skip to content

Commit

Permalink
fix(ux): sales invoice link in error message (#39841)
Browse files Browse the repository at this point in the history
fix: sales invoice link in error message

Co-authored-by: Nijith anil <nijithanil501@email.com>
  • Loading branch information
nijithanil and Nijith anil authored Feb 11, 2024
1 parent 4b1c851 commit 2ee642f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion erpnext/accounts/doctype/dunning/dunning.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,14 @@ def validate_same_currency(self):
frappe.throw(
_(
"The currency of invoice {} ({}) is different from the currency of this dunning ({})."
).format(row.sales_invoice, invoice_currency, self.currency)
).format(
frappe.get_desk_link(
"Sales Invoice",
row.sales_invoice,
),
invoice_currency,
self.currency,
)
)

def validate_overdue_payments(self):
Expand Down

0 comments on commit 2ee642f

Please sign in to comment.