Skip to content

Commit

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

* chore: fix linter

---------

Co-authored-by: ruthra kumar <ruthra@erpnext.com>
(cherry picked from commit 6f00a87)
  • Loading branch information
nijithanil authored and mergify[bot] committed Dec 23, 2024
1 parent 0986434 commit c9d43f4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,12 @@ def validate_supplier_invoice(self):

if pi:
pi = pi[0][0]
frappe.throw(_("Supplier Invoice No exists in Purchase Invoice {0}").format(pi))

frappe.throw(
_("Supplier Invoice No exists in Purchase Invoice {0}").format(
get_link_to_form("Purchase Invoice", pi)
)
)

def update_billing_status_in_pr(self, update_modified=True):
if self.is_return and not self.update_billed_amount_in_purchase_receipt:
Expand Down

0 comments on commit c9d43f4

Please sign in to comment.