903d6aaf by Manish Mihsra

Added one more new column in call log report - Predictive Mode

1 parent f0ce5e68
......@@ -220,6 +220,7 @@ if(Input::has("dllogxls"))
$fieldsarr[$tcol++]='DID';
$fieldsarr[$tcol++]='WaitSec';
$fieldsarr[$tcol++]='CallSec';
if($dashboarduser->username == 'admin')$fieldsarr[$tcol++]='cTalkSec';
$fieldsarr[$tcol++]='TalkSec';
$fieldsarr[$tcol++]='DispoSec';
$fieldsarr[$tcol++]='Remarks';
......@@ -236,7 +237,7 @@ if(Input::has("dllogxls"))
{
$row = $baseRow++;
$col = 0;
if($aline->type == "Auto" || $aline->type == "AutoCall")
if($dashboarduser->username != 'admin' && ($aline->type == "Auto" || $aline->type == "AutoCall"))
{
$aline->waitSec = 0;
$aline->callSec = 0;
......@@ -305,6 +306,7 @@ if(Input::has("dllogxls"))
$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit($aline->did);
$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->waitSec/1000,2)));
$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->callSec/1000,2)));
if($dashboarduser->username == 'admin')$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->ctalkSec/1000,2)));
$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($talktime/1000,2)));
$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->dispoSec/1000,2)));
/*$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit($aline->userremarks);*/
......@@ -351,7 +353,7 @@ foreach($alist as $aline)
{
$clientcode="";
if($aline->type == "Auto" || $aline->type == "AutoCall")
if($dashboarduser->username != 'admin' && ($aline->type == "Auto" || $aline->type == "AutoCall"))
{
$aline->waitSec = 0;
$aline->callSec = 0;
......@@ -418,8 +420,13 @@ foreach($alist as $aline)
<td>".$aline->dialline_id."</td>
<td>".$aline->did."</td>
<td>".gmdate("H:i:s",round($aline->waitSec/1000,2))."</td>
<td>".gmdate("H:i:s",round($aline->callSec/1000,2))."</td>
<td>".gmdate("H:i:s",$finalTalkTime)."</td>
<td>".gmdate("H:i:s",round($aline->callSec/1000,2))."</td>";
if($dashboarduser->username == 'admin'){
$outstr.="<td>".gmdate("H:i:s",round($aline->ctalkSec/1000,2))."</td>";
}
$outstr.="<td>".gmdate("H:i:s",$finalTalkTime)."</td>
<td>".gmdate("H:i:s",round($aline->dispoSec/1000,2))."</td>
<td>$recstr</td>
</tr>";
......@@ -895,6 +902,7 @@ series: [{
<th>DID</th>
<th>WaitSec</th>
<th>CallSec</th>
@if($dashboarduser->username == 'admin')<th>cTalkSec</th>@endif
<th>TalkSec</th>
<th>DispoSec</th>
<th>Recording</th>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!