2015-11-05 11:25:10 +00:00
|
|
|
# Date Validation
|
|
|
|
|
|
|
|
|
2016-02-22 11:46:34 +00:00
|
|
|
frappe.ui.form.on("Task", "validate", function(frm) {
|
2015-11-05 11:25:10 +00:00
|
|
|
if (frm.doc.from_date < get_today()) {
|
|
|
|
msgprint(__("You can not select past date in From Date"));
|
2016-02-22 11:46:34 +00:00
|
|
|
validated = false;
|
2015-11-05 11:25:10 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
{next}
|