From 35daf669fe9b5bdfe3a9f1976f0e39b9c52108eb Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Tue, 8 Apr 2025 20:53:29 +0200 Subject: [PATCH] fix: clarify confirmation message (cherry picked from commit 57be8a85d6ebbf9e71b5f1f6389891d2b887f6c0) --- erpnext/public/js/controllers/transaction.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 093d928a9d3..7238e356d29 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -1075,8 +1075,11 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe frappe.confirm( __( - "Do you want to clear the selected {0}?", - [frappe.utils.comma_and(to_clear.map(dt => __(dt)))] + "For the new {0} to take effect, would you like to clear the current {1}?", + [ + __(frappe.meta.get_label(cdt, "due_date")), + frappe.utils.comma_and(to_clear) + ], ), () => { this.frm.set_value("payment_terms_template", "");