PM-2020 Adicion de contador dinamico para Batch Routing
This commit is contained in:
@@ -30,6 +30,15 @@ function getLoadTreeMenuData ()
|
|||||||
//'to_revise',
|
//'to_revise',
|
||||||
//'to_reassign'
|
//'to_reassign'
|
||||||
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice');
|
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice');
|
||||||
|
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||||
|
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
|
||||||
|
$aTypesID['CONSOLIDATED_CASES'] = 'batch_routing';
|
||||||
|
$aTypes[] = 'batch_routing';
|
||||||
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
//'CASES_TO_REVISE'=>'to_revise',
|
//'CASES_TO_REVISE'=>'to_revise',
|
||||||
//'CASES_TO_REASSIGN'=>'to_reassign'
|
//'CASES_TO_REASSIGN'=>'to_reassign'
|
||||||
$list = array ();
|
$list = array ();
|
||||||
|
|||||||
@@ -222,6 +222,20 @@ class Lists {
|
|||||||
array('count' => $totalUnassigned, 'item' => 'CASES_SELFSERVICE')
|
array('count' => $totalUnassigned, 'item' => 'CASES_SELFSERVICE')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
$licensedFeatures = & \PMLicensedFeatures::getSingleton();
|
||||||
|
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
|
||||||
|
$criteria = new Criteria();
|
||||||
|
$criteria->add(\CaseConsolidatedPeer::CON_STATUS, 'ACTIVE');
|
||||||
|
$criteria->addJoin(\CaseConsolidatedPeer::TAS_UID, \AppCacheViewPeer::TAS_UID, Criteria::LEFT_JOIN);
|
||||||
|
$criteria->add(\AppCacheViewPeer::USR_UID, $userId);
|
||||||
|
$criteria->add(\AppCacheViewPeer::DEL_THREAD_STATUS, 'OPEN');
|
||||||
|
$criteria->add(\AppCacheViewPeer::APP_STATUS, 'TO_DO');
|
||||||
|
$total = \CaseConsolidatedPeer::doCount( $criteria );
|
||||||
|
$response[] = array('count' => $total, 'item' => 'CONSOLIDATED_CASES');
|
||||||
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user