mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 23:54:59 +00:00
fix(ux): sales invoice link in error message (#39841)
fix: sales invoice link in error message Co-authored-by: Nijith anil <nijithanil501@email.com>
This commit is contained in:
@@ -85,7 +85,14 @@ class Dunning(AccountsController):
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user