From 1d1f59fdae7593b3fc21c0645c9e93755fefb8b1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 5 Dec 2005 13:35:19 +0000 Subject: [PATCH] Ajout du cas de rejet --- .../script/commande_presel_statut.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/htdocs/telephonie/script/commande_presel_statut.php b/htdocs/telephonie/script/commande_presel_statut.php index fef2713cdac..8dcf1f2717d 100644 --- a/htdocs/telephonie/script/commande_presel_statut.php +++ b/htdocs/telephonie/script/commande_presel_statut.php @@ -262,6 +262,31 @@ function GetPreselection_byRef($db, $host, $user_login, $user_passwd, $ids) } } + if ($situation_key == 'TRAITE_OK / ATTENTE') + { + $ligne = new LigneTel($db); + + if ($ligne->fetch($cli) == 1) + { + if ($ligne->statut == 2) + { + $statut = 7; + $date_mise_service = strftime(time()); + $datea = $db->idate($date_mise_service); + + if ($ligne->set_statut($user, $statut, $datea) <> 0) + { + $error++; + print "ERROR\n"; + } + } + } + else + { + print "Erreur de lecture\n"; + } + } + } else {