Bugfix lecture du fournisseur

This commit is contained in:
Rodolphe Quiedeville 2007-07-11 13:34:36 +00:00
parent 029c1f9f56
commit 972a102756

View File

@ -444,8 +444,6 @@ class FacturationCalcul {
$nbnat = 0; $nbnat = 0;
$duree = 0; $duree = 0;
$fournisseur_id = TELEPHONIE_GRILLE_VENTE_DEFAUT_ID ;
$tarif_spec = TELEPHONIE_GRILLE_VENTE_DEFAUT_ID ; $tarif_spec = TELEPHONIE_GRILLE_VENTE_DEFAUT_ID ;
$sql = "SELECT d.grille_tarif"; $sql = "SELECT d.grille_tarif";
@ -471,6 +469,8 @@ class FacturationCalcul {
$db->free($resql); $db->free($resql);
} }
$fournisseur_id = $ligne->fournisseur_id;
dolibarr_syslog("FacturationCalcul::CalculateBill Utilisation du tarif ".$tarif_spec." pour la ligne ".$ligne->id); dolibarr_syslog("FacturationCalcul::CalculateBill Utilisation du tarif ".$tarif_spec." pour la ligne ".$ligne->id);
$tarif_achat = new TelephonieTarif($db, $tarif_spec, "achat", $fournisseur_id); $tarif_achat = new TelephonieTarif($db, $tarif_spec, "achat", $fournisseur_id);