From a94bf6db060a55680a590c5e72870579f8eacc35 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 12:57:45 +0530 Subject: [PATCH] fix(payment_schedule): using `show_alert` instead of `msgprint` for non-selection of payment schedule (backport #53623) (#53631) Co-authored-by: diptanilsaha fix(payment_schedule): using `show_alert` instead of `msgprint` for non-selection of payment schedule (#53623) --- erpnext/public/js/controllers/transaction.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 4a6ae04dac7..1100ab7a581 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -516,7 +516,10 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe const selected = values.payment_schedules.filter((r) => r.__checked); if (!selected.length) { - frappe.msgprint(__("Please select at least one schedule.")); + frappe.show_alert({ + message: __("Please select at least one schedule."), + indicator: "orange", + }); return; } console.log(selected);