Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7e12ab23
authored
2017-10-30 19:36:21 +0530
by
Yashwant
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Login report - duration mismatch error
1 parent
90b9b0c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
application/resources/views/layout/module/dialer/agenttime.blade.php
application/resources/views/layout/module/dialer/agenttime.blade.php
View file @
7e12ab2
...
...
@@ -21,7 +21,7 @@ $logdateto =(isset($_GET['logdateto']))? strtotime($_GET['logdateto']." ".$logt
$campaign
=
(
isset
(
$_GET
[
'campaign'
]))
?
$_GET
[
'campaign'
]
:
"All"
;
// testing input
//$logtime = 9;$logtimeto = 20;$logdate = strtotime("2017-10-
03 ".$logtime.":00:00");$logdateto = strtotime("2017-10-03
".$logtimeto.":00:00");$campaign = 'All';
//$logtime = 9;$logtimeto = 20;$logdate = strtotime("2017-10-
26 ".$logtime.":00:00");$logdateto = strtotime("2017-10-26
".$logtimeto.":00:00");$campaign = 'All';
// testing input
$alist
=
CRMCallArchive
::
where
(
'user_id'
,
'!='
,
0
)
->
where
(
'created_at'
,
'>='
,
date
(
"Y-m-d H:i:s"
,
$logdate
+
$timeoffset
))
->
where
(
'created_at'
,
'<='
,
date
(
"Y-m-d H:i:s"
,
$logdateto
+
$timeoffset
));
...
...
@@ -103,7 +103,7 @@ foreach($alist as $aline)
$totaltime
=
$aline
->
callSec
+
$talktime
+
$aline
->
dispoSec
;
$reportarray
[
$userid
][
"oncall"
]
+=
$totaltime
/
1000
;
//$reportarray[$userid]["Wait"]+=$aline->waitSec/1000;
//
$reportarray[$userid]["Wait"]+=$aline->waitSec/1000;
$reportarray
[
$userid
][
"Call"
]
+=
$aline
->
callSec
/
1000
;
$reportarray
[
$userid
][
"Talk"
]
+=
$talktime
/
1000
;
$reportarray
[
$userid
][
"Dispo"
]
+=
$aline
->
dispoSec
/
1000
;
...
...
@@ -201,6 +201,11 @@ if(count($userLogin)) foreach ($userLogin as $userid => $value)
$reportarray
[
$userid
][
"SessionTotal"
]
=
$value
[
'duration'
];
$reportarray
[
$userid
][
"Total"
]
=
$value
[
'duration'
]
-
$break_time
;
$reportarray
[
$userid
][
"Wait"
]
=
$reportarray
[
$userid
][
"Total"
]
-
$reportarray
[
$userid
][
'oncall'
];
if
(
$reportarray
[
$userid
][
"Wait"
]
<
0
){
$reportarray
[
$userid
][
"Total"
]
+=
abs
(
$reportarray
[
$userid
][
"Wait"
]);
$reportarray
[
$userid
][
"SessionTotal"
]
+=
abs
(
$reportarray
[
$userid
][
"Wait"
]);
$reportarray
[
$userid
][
"Wait"
]
=
0
;
}
}
$highestColumn
=
sizeof
(
$reporthead
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment