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
4284bd17
authored
2019-08-28 06:41:59 +0000
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Worked on correcting minor errors
1 parent
e261c73c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
application/app/Http/Controllers/ReportController.php
application/public/assets/js/dialer.js
application/app/Http/Controllers/ReportController.php
View file @
4284bd1
...
...
@@ -242,12 +242,30 @@ class ReportController extends Controller
if
(
!
isset
(
$finalArr
[
$key
][
'sit_tones'
]))
$finalArr
[
$key
][
'sit_tones'
]
=
0
;
if
(
!
isset
(
$finalArr
[
$key
][
'abandoned'
]))
$finalArr
[
$key
][
'abandoned'
]
=
0
;
if
(
$report
[
'dials'
]
>
0
)
{
$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
[
'connects'
])
*
100
,
2
);
$finalArr
[
$key
][
'sit_tones_per'
]
=
round
((
$report
[
'sit_tones'
]
/
$report
[
'dials'
])
*
100
,
2
);
}
else
{
$finalArr
[
$key
][
'connects_per'
]
=
0
;
$finalArr
[
$key
][
'no_answer_per'
]
=
0
;
$finalArr
[
$key
][
'busy_per'
]
=
0
;
$finalArr
[
$key
][
'sit_tones_per'
]
=
0
;
}
if
(
$report
[
'connects'
]
>
0
)
{
$finalArr
[
$key
][
'abandoned_per'
]
=
round
((
$report
[
'abandoned'
]
/
$report
[
'connects'
])
*
100
,
2
);
}
else
{
$finalArr
[
$key
][
'abandoned_per'
]
=
0
;
}
}
$data
[
"reportArr"
]
=
$finalArr
;
...
...
application/public/assets/js/dialer.js
View file @
4284bd1
...
...
@@ -336,6 +336,7 @@ function dialerAddConfCall()
function
incomingCall
(
calllog
,
crmid
,
numnchn
)
{
incomingbeep
.
play
();
if
(
kstychDialer
[
"mDialerSubState"
]
==
"Predictive"
)
$
(
"#dialerstate_btn"
).
parent
().
attr
(
"disabled"
,
false
);
//document.getElementById("hangup").play();
$
(
"#dialersearchresults"
).
html
(
'<div id=divworking></div><div style="clear:both"></div>'
);
...
...
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