{"size": 587, "ext": "js", "max_stars_repo_path": "gti_eg_education/public/js/follow_up.js", "max_stars_repo_name": "mainul94/gtie_eg", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gti_eg_education/public/js/follow_up.js", "max_issues_repo_name": "mainul94/gtie_eg", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gti_eg_education/public/js/follow_up.js", "max_forks_repo_name": "mainul94/gtie_eg", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.8947368421, "max_line_length": 68, "alphanum_fraction": 0.6780238501}

frappe.ui.form.on('Follow Up', {
	demo_class_date: (frm, cdt, cdn) => {
		let row = frappe.get_doc(cdt, cdn)
		if (row.demo_class_date < frappe.datetime.now_date()) {
			row.demo_class_date = ''
			frappe.msgprint(__("Demo class date should not be before Today"))
			frm.refresh_field('communications')
		}
	},
	follow_up_date: (frm, cdt, cdn) => {
		let row = frappe.get_doc(cdt, cdn)
		if (row.follow_up_date < frappe.datetime.now_date()) {
			row.follow_up_date = ''
			frappe.msgprint(__("Follow Up date should not be before Today"))
			frm.refresh_field('communications')
		}
	}
})