3d274f1f by Manish Mihsra

Added correction to campaign wise report and disabled drop down when agent on Predictive-wait

1 parent 5111eb8b
......@@ -218,9 +218,9 @@ class ReportController extends Controller
foreach ($crmcallObjs as $key => $crmcallObj) {
$reportArr[$crmcallObj->client]['dials']++;
if($crmcallObj->user_id != 0) $reportArr[$crmcallObj->client]['connects']++;
if($crmcallObj->status == "ANSWER") $reportArr[$crmcallObj->client]['connects']++;
if(strstr($crmcallObj->userstatus, "Contacted"))$reportArr[$crmcallObj->client]['contacts']++;
if($crmcallObj->user_id != 0)$reportArr[$crmcallObj->client]['contacts']++;
if(stristr($crmcallObj->usersubstatus, "follow"))$reportArr[$crmcallObj->client]['callbacks']++;
if(strstr($crmcallObj->status, "NOANSWER"))$reportArr[$crmcallObj->client]['no_answer']++;
......@@ -245,7 +245,7 @@ class ReportController extends Controller
$finalArr[$key]['connects_per'] = round(($report['connects'] / $report['dials']) * 100, 2);
$finalArr[$key]['no_answer_per'] = round(($report['no_answer'] / $report['dials']) * 100, 2);
$finalArr[$key]['busy_per'] = round(($report['busy'] / $report['dials']) * 100, 2);
$finalArr[$key]['abandoned_per'] = round(($report['abandoned'] / $report['dials']) * 100, 2);
$finalArr[$key]['abandoned_per'] = round(($report['abandoned'] / $report['connects']) * 100, 2);
$finalArr[$key]['sit_tones_per'] = round(($report['sit_tones'] / $report['dials']) * 100, 2);
}
......
......@@ -1249,6 +1249,7 @@ function updateDialerUI()
if(kstychCall['mCallState']=="Wait")
{
if(kstychDialer['mDialerState']!="Manual"){$("#dialerstate_btn").parent().attr("disabled",false)};
if(kstychDialer['mDialerSubState']=="Predictive"){$("#dialerstate_btn").parent().attr("disabled",true)};
if(kstychDialer['mmanualallow']=='Yes')$("#manualdialnumber_txt").attr("disabled",false);
else $("#manualdialnumber_txt").attr("disabled",true);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!