mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
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);
|
$progress = agents_get_next_contact($id_agente);
|
||||||
|
$last_contact = ($d['intervalo'] * (100 - $progress) / 100);
|
||||||
|
|
||||||
|
if ($progress < 0 || $progress > 100) {
|
||||||
|
$progress = 100;
|
||||||
|
}
|
||||||
|
|
||||||
echo json_encode(
|
echo json_encode(
|
||||||
[
|
[
|
||||||
'progress' => $progress,
|
'progress' => $progress,
|
||||||
'last_contact' => ($d['intervalo'] * (100 - $progress) / 100),
|
'last_contact' => $last_contact,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user