BUG-10181 Modificando la clase Calendar.
Modificar las funciones de la clase Calendar para que ahora se realize el calculo de NewDate tomando en cuenta los weekends.
This commit is contained in:
@@ -775,7 +775,7 @@ function executeCaseSelfService()
|
||||
setExecutionMessage("Unassigned case");
|
||||
saveLog("unassignedCase", "action", "Unassigned case", "c");
|
||||
|
||||
$date = new dates();
|
||||
$calendar = new calendar();
|
||||
|
||||
while ($rsCriteria->next()) {
|
||||
$row = $rsCriteria->getRow();
|
||||
@@ -790,11 +790,16 @@ function executeCaseSelfService()
|
||||
$taskSelfServiceTimeUnit = $row["TAS_SELFSERVICE_TIME_UNIT"];
|
||||
$taskSelfServiceTriggerUid = $row["TAS_SELFSERVICE_TRIGGER_UID"];
|
||||
|
||||
$dueDate = $date->calculateDate(
|
||||
if ($calendar->pmCalendarUid == '') {
|
||||
$calendar->getCalendar(null, $appcacheProUid, $taskUid);
|
||||
$calendar->getCalendarData();
|
||||
}
|
||||
|
||||
$dueDate = $calendar->calculateDate(
|
||||
$appcacheDelDelegateDate,
|
||||
$taskSelfServiceTime,
|
||||
$taskSelfServiceTimeUnit, //HOURS|DAYS
|
||||
1
|
||||
$taskSelfServiceTimeUnit //HOURS|DAYS
|
||||
//1
|
||||
);
|
||||
|
||||
if (time() > $dueDate["DUE_DATE_SECONDS"]) {
|
||||
|
||||
Reference in New Issue
Block a user