=================Check whether start date is less than end date=======================
For basic information on plugins, please refer: [[claromentis:development:infocapture_plugin]]
In this section we would write a plugin which checks start date is always less than end date
You can find the xml file of the test project here: {{help:infocapture:plugins:ic_project_-_15_-_to_check_whether_the_start_date_is_less_than_end_date_-_sp_03-mar-2009_.xml|}}
Lets suppose we have got this test project with ID = 15
{{claromentis:configuration_and_customization:infocapture:plugins:15.1.png|}}
For this purpose, we would require the following file... **plugin_15_pre_add_issue.php**
= $values['end_date'])
{
return array("error_message" => "Start date must be before the end date");
}
}
?>
Place the above file in folder: /httpdocs/intranet/helpdesk/plugins/
From Claromentis 5.6 onwards, plugins are stored in /httpdocs/intranet/**infocapture**/plugins/
If you enter start date greater than end date, you would get following error message and you wont be able to submit the issue
{{claromentis:configuration_and_customization:infocapture:plugins:15.2.png|}}