From 8a9461ff45f990a8f4740f3defb34a1ac7407a93 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 02:14:05 +0530 Subject: [PATCH] fix(company): replaced "this company" with company name on delete transactions dialog (backport #56021) (#56022) Co-authored-by: Diptanil Saha fix(company): replaced "this company" with company name on delete transactions dialog (#56021) --- erpnext/setup/doctype/company/company.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/erpnext/setup/doctype/company/company.js b/erpnext/setup/doctype/company/company.js index f4de4bd2923..33a7ecc8714 100644 --- a/erpnext/setup/doctype/company/company.js +++ b/erpnext/setup/doctype/company/company.js @@ -204,12 +204,11 @@ frappe.ui.form.on("Company", { { fieldtype: "Data", fieldname: "company_name", - label: __('Please enter the company name "{0}" to confirm', [ - frappe.utils.escape_html(frm.doc.name), - ]), + label: __("Please enter the company name to confirm"), reqd: 1, description: __( - "Please make sure you really want to delete all the transactions for this company. Your master data will remain as it is. This action cannot be undone." + "Please make sure you really want to delete all the transactions for {0}. Your master data will remain as it is. This action cannot be undone.", + [frappe.utils.bold(frm.doc.name)] ), }, function (data) { @@ -229,7 +228,7 @@ frappe.ui.form.on("Company", { }, }); }, - __("Delete all the Transactions for this Company"), + __("Delete all the Transactions for {0}", [frappe.utils.bold(frm.doc.name)]), __("Delete") ); d.get_primary_btn().addClass("btn-danger");