fix(payment_schedule): using show_alert instead of msgprint for non-selection of payment schedule (backport #53623) (#53631)

Co-authored-by: diptanilsaha <diptanil@frappe.io>
fix(payment_schedule): using `show_alert` instead of `msgprint` for non-selection of payment schedule (#53623)
This commit is contained in:
mergify[bot]
2026-03-19 12:57:45 +05:30
committed by GitHub
parent 5b4e3e92df
commit a94bf6db06

View File

@@ -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);