From c85750047ce2188d93141c6969b9df1fe6542167 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 11 Jul 2007 18:50:42 +0000 Subject: [PATCH] synchro --- htdocs/telephonie/communication.class.php | 6 +++--- htdocs/telephonie/tarifs/config/grilles.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/telephonie/communication.class.php b/htdocs/telephonie/communication.class.php index 364da4a1462..dc3e6a162f0 100644 --- a/htdocs/telephonie/communication.class.php +++ b/htdocs/telephonie/communication.class.php @@ -81,7 +81,7 @@ class CommunicationTelephonique { $dureenat += $objp->duree; $nbnat++; - $num = "00".substr($this->numero, 1); + $num = "00".$this->numero; $this->remise = $ligne->remise; //} @@ -106,14 +106,14 @@ class CommunicationTelephonique { if ($tarif_achat->cout($num, $this->cout_temp_achat, $this->cout_fixe_achat, $tarif_libelle_achat) == 0) { dolibarr_syslog("CommunicationTelephonique::Cout Tarif achat manquant pour $num"); - array_push($this->messages, array('warning',"Tarif achat manquant pour le numero $num")); + array_push($this->messages, array('warning',"Tarif achat manquant pour le numero $this->numero")); //$error++; } if ($tarif_vente->cout($num, $this->cout_temp_vente, $this->cout_fixe_vente, $this->tarif_libelle_vente) == 0) { dolibarr_syslog("CommunicationTelephonique::Cout Tarif vente manquant pour $num"); - array_push($this->messages, array('error',"Tarif vente manquant pour le numero $num")); + array_push($this->messages, array('error',"Tarif vente manquant pour le numero $this->numero")); $error++; } //} diff --git a/htdocs/telephonie/tarifs/config/grilles.php b/htdocs/telephonie/tarifs/config/grilles.php index f43a54ac99e..70a9c4ad6a5 100644 --- a/htdocs/telephonie/tarifs/config/grilles.php +++ b/htdocs/telephonie/tarifs/config/grilles.php @@ -109,7 +109,7 @@ foreach($grilles as $grille) print ""; print ''.$grille[1]."\n"; print ''.$grille[2]."\n"; - print ''.$langs->trans("Delete")."\n"; + print ''.$langs->trans("Delete")."\n"; print "\n"; } print "";