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")) ...@@ -220,6 +220,7 @@ if(Input::has("dllogxls"))
220 $fieldsarr[$tcol++]='DID'; 220 $fieldsarr[$tcol++]='DID';
221 $fieldsarr[$tcol++]='WaitSec'; 221 $fieldsarr[$tcol++]='WaitSec';
222 $fieldsarr[$tcol++]='CallSec'; 222 $fieldsarr[$tcol++]='CallSec';
223 if($dashboarduser->username == 'admin')$fieldsarr[$tcol++]='cTalkSec';
223 $fieldsarr[$tcol++]='TalkSec'; 224 $fieldsarr[$tcol++]='TalkSec';
224 $fieldsarr[$tcol++]='DispoSec'; 225 $fieldsarr[$tcol++]='DispoSec';
225 $fieldsarr[$tcol++]='Remarks'; 226 $fieldsarr[$tcol++]='Remarks';
...@@ -236,7 +237,7 @@ if(Input::has("dllogxls")) ...@@ -236,7 +237,7 @@ if(Input::has("dllogxls"))
236 { 237 {
237 $row = $baseRow++; 238 $row = $baseRow++;
238 $col = 0; 239 $col = 0;
239 if($aline->type == "Auto" || $aline->type == "AutoCall") 240 if($dashboarduser->username != 'admin' && ($aline->type == "Auto" || $aline->type == "AutoCall"))
240 { 241 {
241 $aline->waitSec = 0; 242 $aline->waitSec = 0;
242 $aline->callSec = 0; 243 $aline->callSec = 0;
...@@ -305,6 +306,7 @@ if(Input::has("dllogxls")) ...@@ -305,6 +306,7 @@ if(Input::has("dllogxls"))
305 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit($aline->did); 306 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit($aline->did);
306 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->waitSec/1000,2))); 307 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->waitSec/1000,2)));
307 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->callSec/1000,2))); 308 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->callSec/1000,2)));
309 if($dashboarduser->username == 'admin')$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->ctalkSec/1000,2)));
308 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($talktime/1000,2))); 310 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($talktime/1000,2)));
309 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->dispoSec/1000,2))); 311 $objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit(gmdate("H:i:s",round($aline->dispoSec/1000,2)));
310 /*$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit($aline->userremarks);*/ 312 /*$objPHPExcel->getActiveSheet()->getCellByColumnAndRow($col++,$row)->setValueExplicit($aline->userremarks);*/
...@@ -351,7 +353,7 @@ foreach($alist as $aline) ...@@ -351,7 +353,7 @@ foreach($alist as $aline)
351 { 353 {
352 $clientcode=""; 354 $clientcode="";
353 355
354 if($aline->type == "Auto" || $aline->type == "AutoCall") 356 if($dashboarduser->username != 'admin' && ($aline->type == "Auto" || $aline->type == "AutoCall"))
355 { 357 {
356 $aline->waitSec = 0; 358 $aline->waitSec = 0;
357 $aline->callSec = 0; 359 $aline->callSec = 0;
...@@ -418,8 +420,13 @@ foreach($alist as $aline) ...@@ -418,8 +420,13 @@ foreach($alist as $aline)
418 <td>".$aline->dialline_id."</td> 420 <td>".$aline->dialline_id."</td>
419 <td>".$aline->did."</td> 421 <td>".$aline->did."</td>
420 <td>".gmdate("H:i:s",round($aline->waitSec/1000,2))."</td> 422 <td>".gmdate("H:i:s",round($aline->waitSec/1000,2))."</td>
421 <td>".gmdate("H:i:s",round($aline->callSec/1000,2))."</td> 423 <td>".gmdate("H:i:s",round($aline->callSec/1000,2))."</td>";
422 <td>".gmdate("H:i:s",$finalTalkTime)."</td> 424
425 if($dashboarduser->username == 'admin'){
426 $outstr.="<td>".gmdate("H:i:s",round($aline->ctalkSec/1000,2))."</td>";
427 }
428
429 $outstr.="<td>".gmdate("H:i:s",$finalTalkTime)."</td>
423 <td>".gmdate("H:i:s",round($aline->dispoSec/1000,2))."</td> 430 <td>".gmdate("H:i:s",round($aline->dispoSec/1000,2))."</td>
424 <td>$recstr</td> 431 <td>$recstr</td>
425 </tr>"; 432 </tr>";
...@@ -895,6 +902,7 @@ series: [{ ...@@ -895,6 +902,7 @@ series: [{
895 <th>DID</th> 902 <th>DID</th>
896 <th>WaitSec</th> 903 <th>WaitSec</th>
897 <th>CallSec</th> 904 <th>CallSec</th>
905 @if($dashboarduser->username == 'admin')<th>cTalkSec</th>@endif
898 <th>TalkSec</th> 906 <th>TalkSec</th>
899 <th>DispoSec</th> 907 <th>DispoSec</th>
900 <th>Recording</th> 908 <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!