2015-12-15 11:50:39 +00:00
|
|
|
# Datenvalidierung
|
|
|
|
<span class="text-muted contributed-by">Beigetragen von CWT Connector & Wire Technology GmbH</span>
|
2015-12-14 15:23:09 +00:00
|
|
|
|
2015-12-14 15:23:42 +00:00
|
|
|
frappe.ui.form.on("Event", "validate", function(frm) {
|
|
|
|
if (frm.doc.from_date < get_today()) {
|
2017-06-09 11:53:06 +00:00
|
|
|
frappe.msgprint(__("You can not select past date in From Date"));
|
|
|
|
frappe.throw(__("past date selected"))
|
2015-12-14 15:23:42 +00:00
|
|
|
}
|
|
|
|
});
|
2015-12-14 15:23:09 +00:00
|
|
|
|
|
|
|
{next}
|