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

Replace outcome codes 34,35 with 42,43 (Max call attempts/ Max calls reached)

This commit is contained in:
Adam Zammit
2015-08-03 14:15:48 +10:00
parent 4f91b49d50
commit d3259a2447
3 changed files with 5 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ else
//assigned to operator
// call restrictions and outside times, operator skill and filter outcomes 10,25,28,34,35,40
// call restrictions and outside times, operator skill and filter outcomes 10,25,28,42,43,40
$sql = "SELECT COUNT( DISTINCT sv.sample_id) as count_samples
FROM `sample` as s
JOIN `sample_var` as sv on( s.sample_id = sv.sample_id )
@@ -149,7 +149,7 @@ else
AND s.import_id IN ($siid)
AND !(si.call_restrict = 1 AND cr.day_of_week IS NULL)
AND ou.outcome_type_id IN( SELECT outcome_type_id FROM operator_skill WHERE operator_id = '$operator_id')
AND ou.outcome_id NOT IN (10,25,28,34,35,40)";
AND ou.outcome_id NOT IN (10,25,28,42,43,40)";
$cases_count = $db->GetRow($sql);
if ($cases_count['count_samples'] == 0){