Retourne la liste des opportunités filtrées selon le user connecté
function TS_NOOA_mobile_liste_opportunite($id_type_opportunite, $id_list_type_opportunite, $id_type_client) {
global $_POST;
global $global_api_retour;
global $srv;
$id_user = $_POST['userID'];
$search = $_POST['search'];
$statuts = $_POST['statuts'];
$offset = $_POST['offset'];
$listStatus = implode(",", $statuts);
// On cherche les user de la franchise pour avoir seulement les clients de la franchise
$userInfo = get_UserIdentification($id_user, '', $id_type_client, '');
// ... (truncated)
↩️ Returns
(array)
⚠️ Throws
Exception:
🔧 TS_NOOA_mobile_single_opportunite
Retourne l'opportunité
function TS_NOOA_mobile_single_opportunite($id_type_opportunite, $id_list_type_opportunite, $id_type_client) {
global $_POST;
global $global_api_retour;
global $id_type;
global $id_obje;
global $user;
global $srv;
global $navi_session;
$id_type = $id_type_opportunite;
$id_obje = $_POST['opportuniteID'];
// ... (truncated)
↩️ Returns
(array)
⚠️ Throws
Exception:
🔧 TS_NOOA_mobile_modify_opportunite
Retourne l'opportunité mise à jour
function TS_NOOA_mobile_modify_opportunite($id_type_opportunite, $id_list_type_opportunite, $id_type_client) {
global $_POST;
global $global_api_retour;
global $id_type;
global $id_obje;
global $user;
global $srv;
global $navi_session;
$id_type = $id_type_opportunite;
$id_obje = $_POST['opportuniteID'];
// ... (truncated)