Remonte le message de ligne inconnue une seule fois
This commit is contained in:
parent
7a2bf7a5ef
commit
9b32220d35
@ -45,7 +45,7 @@ class FacturationImportCdr {
|
|||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
}
|
}
|
||||||
return $nb;
|
return $nb;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Import($id_fourn)
|
function Import($id_fourn)
|
||||||
{
|
{
|
||||||
@ -55,7 +55,8 @@ class FacturationImportCdr {
|
|||||||
* Traitement
|
* Traitement
|
||||||
*/
|
*/
|
||||||
$files = array();
|
$files = array();
|
||||||
|
$unknown_lines = array();
|
||||||
|
|
||||||
if (is_dir($dir))
|
if (is_dir($dir))
|
||||||
{
|
{
|
||||||
$handle=opendir($dir);
|
$handle=opendir($dir);
|
||||||
@ -255,8 +256,12 @@ class FacturationImportCdr {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_syslog("FacturationImportCdr::Import Ligne $ligne inconnue Ligne : $cont ignoree", LOG_INFO);
|
if (!in_array($ligne, $unknown_lines))
|
||||||
array_push($this->messages,array('warning',"Ligne $ligne inconnue"));
|
{
|
||||||
|
dolibarr_syslog("FacturationImportCdr::Import Ligne $ligne inconnue Ligne : $cont ignoree", LOG_INFO);
|
||||||
|
array_push($this->messages,array('warning',"Ligne $ligne inconnue"));
|
||||||
|
}
|
||||||
|
array_push($unknown_lines, $ligne);
|
||||||
}
|
}
|
||||||
$line++;
|
$line++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user