mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added that supervisor outcomes should be given priority along with final outcomes
This commit is contained in:
@@ -1228,12 +1228,13 @@ function end_case($operator_id)
|
|||||||
//
|
//
|
||||||
|
|
||||||
//Look for any calls where none should be tried again (this should be a final outcome)
|
//Look for any calls where none should be tried again (this should be a final outcome)
|
||||||
|
//OR if the call has been refered to the supervisor
|
||||||
$sql = "SELECT c.call_id, c.outcome_id
|
$sql = "SELECT c.call_id, c.outcome_id
|
||||||
FROM `call` as c, `outcome` as o
|
FROM `call` as c, `outcome` as o
|
||||||
WHERE c.case_id = '$case_id'
|
WHERE c.case_id = '$case_id'
|
||||||
AND c.outcome_id = o.outcome_id
|
AND c.outcome_id = o.outcome_id
|
||||||
AND o.tryanother = 0
|
AND o.tryanother = 0
|
||||||
AND o.outcome_type_id = 4
|
AND (o.outcome_type_id = 4 OR o.outcome_type_id = 2)
|
||||||
ORDER BY c.call_id DESC
|
ORDER BY c.call_id DESC
|
||||||
LIMIT 1";
|
LIMIT 1";
|
||||||
|
|
||||||
@@ -1289,10 +1290,12 @@ function end_case($operator_id)
|
|||||||
ORDER BY o.contacted DESC,c.call_id DESC
|
ORDER BY o.contacted DESC,c.call_id DESC
|
||||||
LIMIT 1";
|
LIMIT 1";
|
||||||
|
|
||||||
$t = $db->GetRow($sql);
|
$t = $db->GetRow($sql);
|
||||||
|
|
||||||
if (!empty($t))
|
if (!empty($t))
|
||||||
$outcome = $t['outcome_id'];
|
{
|
||||||
|
$outcome = $t['outcome_id'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ($count >= 1) //one or more numbers to be tried again - first code as eligible if ever eligible...
|
else if ($count >= 1) //one or more numbers to be tried again - first code as eligible if ever eligible...
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user