Next contact fixes
This commit is contained in:
parent
13086b596c
commit
551a21ed86
|
@ -75,11 +75,16 @@ if (is_ajax()) {
|
|||
);
|
||||
|
||||
$progress = agents_get_next_contact($id_agente);
|
||||
$last_contact = ($d['intervalo'] * (100 - $progress) / 100);
|
||||
|
||||
if ($progress < 0 || $progress > 100) {
|
||||
$progress = 100;
|
||||
}
|
||||
|
||||
echo json_encode(
|
||||
[
|
||||
'progress' => $progress,
|
||||
'last_contact' => ($d['intervalo'] * (100 - $progress) / 100),
|
||||
'last_contact' => $last_contact,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue