Update date-validation.md

This commit is contained in:
Martin Ender 2015-12-14 16:23:42 +01:00 committed by Anand Doshi
parent 8dfb35bb79
commit 38a15ab4fc

View File

@ -1,10 +1,10 @@
## 15.3.1.2 Datenvalidierung ## 15.3.1.2 Datenvalidierung
frappe.ui.form.on("Event", "validate", function(frm) { frappe.ui.form.on("Event", "validate", function(frm) {
if (frm.doc.from_date < get_today()) { if (frm.doc.from_date < get_today()) {
msgprint(__("You can not select past date in From Date")); msgprint(__("You can not select past date in From Date"));
throw "past date selected" throw "past date selected"
} }
}); });
{next} {next}