From bfb364181616992087cede9a27d943b248e5f796 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 8 Nov 2005 13:42:45 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20gestion=20des=20num=E9ros=20sp=E9ciaux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../telephonie/script/facturation-verif.php | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/htdocs/telephonie/script/facturation-verif.php b/htdocs/telephonie/script/facturation-verif.php index 0305f6fc150..0250bdd0b7d 100644 --- a/htdocs/telephonie/script/facturation-verif.php +++ b/htdocs/telephonie/script/facturation-verif.php @@ -84,19 +84,27 @@ if ( $resql ) } /* Recherche du tarif */ - - if (! $tarif_achat->cout($numero, $x, $y, $z)) - { - print "\nTarif achat manquant pour $numero\n"; - exit(1); - } - - if (! $tarif_vente->cout($numero, $x, $y, $z)) - { - print "\nTarif vente manquant pour $numero\n"; - exit(1); - } + /* Numéros spéciaux */ + if (substr($numero,4,1) == 8) + { + + } + else + { + if (! $tarif_achat->cout($numero, $x, $y, $z)) + { + print "\nTarif achat manquant pour $numero\n"; + exit(1); + } + + if (! $tarif_vente->cout($numero, $x, $y, $z)) + { + print "\nTarif vente manquant pour $numero\n"; + exit(1); + } + } + print "."; $i++; }