Ajoute les infos de fourn et fichier_cdr sur les communications
This commit is contained in:
parent
e27299460c
commit
cc444251e1
@ -74,6 +74,10 @@ if ( $db->query($sql) )
|
|||||||
dolibarr_syslog("Communications à traiter ".$row[0]);
|
dolibarr_syslog("Communications à traiter ".$row[0]);
|
||||||
$db->free();
|
$db->free();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -289,6 +293,7 @@ function calcul($client, $db, &$total_cout_achat, &$total_cout_vente, &$total_co
|
|||||||
$comms = array();
|
$comms = array();
|
||||||
|
|
||||||
$sql = "SELECT t.idx, t.ligne, t.montant, t.duree, t.num, t.date, t.heure, t.dest";
|
$sql = "SELECT t.idx, t.ligne, t.montant, t.duree, t.num, t.date, t.heure, t.dest";
|
||||||
|
$sql .= " , t.fichier, t.fk_fournisseur";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_import_cdr as t";
|
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_import_cdr as t";
|
||||||
$sql .= " WHERE t.ligne = ".$client;
|
$sql .= " WHERE t.ligne = ".$client;
|
||||||
|
|
||||||
@ -303,14 +308,16 @@ function calcul($client, $db, &$total_cout_achat, &$total_cout_vente, &$total_co
|
|||||||
|
|
||||||
$comm = new CommunicationTelephonique();
|
$comm = new CommunicationTelephonique();
|
||||||
|
|
||||||
$comm->index = $objp->idx;
|
$comm->index = $objp->idx;
|
||||||
$comm->ligne = $objp->ligne;
|
$comm->ligne = $objp->ligne;
|
||||||
$comm->date = $objp->date;
|
$comm->date = $objp->date;
|
||||||
$comm->heure = $objp->heure;
|
$comm->heure = $objp->heure;
|
||||||
$comm->duree = $objp->duree;
|
$comm->duree = $objp->duree;
|
||||||
$comm->dest = $objp->dest;
|
$comm->dest = $objp->dest;
|
||||||
$comm->numero = $objp->num;
|
$comm->numero = $objp->num;
|
||||||
$comm->montant = $objp->montant;
|
$comm->montant = $objp->montant;
|
||||||
|
$comm->fichier_cdr = $objp->fichier;
|
||||||
|
$comm->fournisseur = $objp->fk_fournisseur;
|
||||||
|
|
||||||
$comms[$i] = $comm;
|
$comms[$i] = $comm;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user