Skip to content

Commit a94bf6d

Browse files
fix(payment_schedule): using show_alert instead of msgprint for non-selection of payment schedule (backport #53623) (#53631)
Co-authored-by: diptanilsaha <[email protected]> fix(payment_schedule): using `show_alert` instead of `msgprint` for non-selection of payment schedule (#53623)
1 parent 5b4e3e9 commit a94bf6d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

erpnext/public/js/controllers/transaction.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,10 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
516516
const selected = values.payment_schedules.filter((r) => r.__checked);
517517

518518
if (!selected.length) {
519-
frappe.msgprint(__("Please select at least one schedule."));
519+
frappe.show_alert({
520+
message: __("Please select at least one schedule."),
521+
indicator: "orange",
522+
});
520523
return;
521524
}
522525
console.log(selected);

0 commit comments

Comments
 (0)