Skip to content
Snippets Groups Projects
Commit ffcc093a authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #2463 from yashodha/CRM-14099

CRM-14099 : added support for months in scheduled reminder
parents 5a8ac2d1 9aec4088
No related branches found
No related tags found
No related merge requests found
......@@ -1062,6 +1062,12 @@ GROUP BY c.id
elseif ($actionSchedule->repetition_frequency_unit == 'week') {
$hrs = 24 * $actionSchedule->repetition_frequency_interval * 7;
}
elseif ($actionSchedule->repetition_frequency_unit == 'month') {
$hrs = "24*(DATEDIFF(DATE_ADD(latest_log_time, INTERVAL 1 MONTH ), latest_log_time))";
}
elseif ($actionSchedule->repetition_frequency_unit == 'year') {
$hrs = "24*(DATEDIFF(DATE_ADD(latest_log_time, INTERVAL 1 YEAR ), latest_log_time))";
}
else {
$hrs = $actionSchedule->repetition_frequency_interval;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment