def METHOD_NAME(from_date, to_date, company):
	if from_date and to_date and (from_date >= to_date):
		frappe.throw(_("To Date must be greater than From Date"))
	if not company:
		frappe.throw(_("Please Select a Company"))