mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
275 B
275 B
_label
| _label |
|---|
| Date Validation: Do not allow past dates in a date field |
cur_frm.cscript.custom_validate = function(doc) {
if (doc.from_date < get_today()) {
msgprint("You can not select past date in From Date");
validated = false;
}
}