Retourne la liste des commandes filtrées selon l'user connecté
function TS_NOOA_mobile_liste_commandes($id_type_commande, $id_type_client, $id_type_devis) {
global $_POST;
global $global_api_retour;
global $srv;
$id_user = $_POST['userID'];
$search = $_POST['search'];
$offset = $_POST['offset'];
$statuts = $_POST['statuts'];
// Vérification de l'authentification du user
$verificationConnexion = TS_NOOA_mobile_verif_login($id_user);
if ($verificationConnexion['success'] == 401) {
// ... (truncated)
↩️ Returns
(array)
⚠️ Throws
Exception:
🔧 TS_NOOA_mobile_single_commande
Retourne la commande
function TS_NOOA_mobile_single_commande($id_type_commande, $id_type_client, $id_type_devis) {
global $_POST;
global $global_api_retour;
global $id_type;
global $id_obje;
global $user;
global $srv;
global $navi_session;
$id_type = $id_type_commande;
$id_obje = $_POST['commandeID'];
// ... (truncated)
↩️ Returns
(array)
⚠️ Throws
Exception:
🔧 TS_NOOA_mobile_modify_commande
Retourne la commande mise à jour
function TS_NOOA_mobile_modify_commande($id_type_commande, $id_type_client, $id_type_devis) {
global $_POST;
global $global_api_retour;
global $id_type;
global $id_obje;
global $user;
global $srv;
global $navi_session;
$id_type = $id_type_commande;
$id_obje = $_POST['commandeID'];
// ... (truncated)