mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 17:53:49 +00:00
[docs] custom script examples, [build] move CMS make to app via event_handlers.on_build
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
{
|
||||
"_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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user