mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 03:15:07 +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);
|
const selected = values.payment_schedules.filter((r) => r.__checked);
|
||||||
|
|
||||||
if (!selected.length) {
|
if (!selected.length) {
|
||||||
frappe.msgprint(__("Please select at least one schedule."));
|
frappe.show_alert({
|
||||||
|
message: __("Please select at least one schedule."),
|
||||||
|
indicator: "orange",
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(selected);
|
console.log(selected);
|
||||||
|
|||||||
Reference in New Issue
Block a user