Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc-beu-v2
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
3d274f1f
authored
2019-08-27 07:08:39 +0000
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added correction to campaign wise report and disabled drop down when agent on Predictive-wait
1 parent
5111eb8b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
application/app/Http/Controllers/ReportController.php
application/public/assets/js/dialer.js
application/app/Http/Controllers/ReportController.php
View file @
3d274f1
...
...
@@ -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
[
'
dial
s'
])
*
100
,
2
);
$finalArr
[
$key
][
'abandoned_per'
]
=
round
((
$report
[
'abandoned'
]
/
$report
[
'
connect
s'
])
*
100
,
2
);
$finalArr
[
$key
][
'sit_tones_per'
]
=
round
((
$report
[
'sit_tones'
]
/
$report
[
'dials'
])
*
100
,
2
);
}
...
...
application/public/assets/js/dialer.js
View file @
3d274f1
...
...
@@ -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
);
...
...
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