2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Merged from Trunk

This commit is contained in:
Adam Zammit
2014-09-01 12:32:47 +10:00
59 changed files with 7534 additions and 1721 deletions

View File

@@ -1881,7 +1881,7 @@ function update_row_quota($questionnaire_id,$case_id = false)
if ($update)
update_quota_priorities($questionnaire_id);
$db->CompleteTrans();
return false;
@@ -2127,7 +2127,7 @@ function end_case($operator_id)
//code as eligible if ever eligible, or if referred to the supervisor, code as that if last call
$sql = "SELECT c.outcome_id as outcome_id
FROM `call` as c
JOIN outcome AS o ON ( c.outcome_id = o.outcome_id AND (o.eligible = 1 OR o.outcome_type_id = 2) )
JOIN outcome AS o ON ( c.outcome_id = o.outcome_id AND (o.eligible = 1 OR o.outcome_type_id = 2 OR o.outcome_type_id = 1) )
WHERE c.case_id = '$case_id'
ORDER BY c.call_id DESC";