mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-08 17:35:08 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user