From a57b478221f9c442c6c5df53a765edbac78158d5 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 3 Jul 2007 14:41:39 +0000 Subject: [PATCH] Synchro --- htdocs/telephonie/communication.class.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/telephonie/communication.class.php b/htdocs/telephonie/communication.class.php index 1c48cd8166c..f8d398dc9b6 100644 --- a/htdocs/telephonie/communication.class.php +++ b/htdocs/telephonie/communication.class.php @@ -100,16 +100,14 @@ class CommunicationTelephonique { else { /* Fin Numéros spéciaux */ - if (! $tarif_achat->cout($num, $this->cout_temp_achat, $this->cout_fixe_achat, $tarif_libelle_achat)) + if ($tarif_achat->cout($num, $this->cout_temp_achat, $this->cout_fixe_achat, $tarif_libelle_achat) == 0) { - print "3- Tarif achat manquant pour $num\n"; dolibarr_syslog("CommunicationTelephonique::Cout Tarif achat manquant pour $num"); - $error++; + //$error++; } - if (! $tarif_vente->cout($num, $this->cout_temp_vente, $this->cout_fixe_vente, $this->tarif_libelle_vente)) + if ($tarif_vente->cout($num, $this->cout_temp_vente, $this->cout_fixe_vente, $this->tarif_libelle_vente) == 0) { - print "3- Tarif vente manquant pour $num\n"; dolibarr_syslog("CommunicationTelephonique::Cout Tarif vente manquant pour $num"); $error++; }