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