From 086fea7cf03153c6fd1e09c2c7994cedc03c38df Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Thu, 19 Mar 2026 12:29:28 +0530 Subject: [PATCH] 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 c81cbf6ed1a..a3eb44381e3 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);