Correction base de données

This commit is contained in:
Michael RICOIS 2012-09-10 08:08:53 +00:00
parent b703307f7c
commit 4c2db4ef20

View File

@ -240,11 +240,11 @@ class DashboardController extends Zend_Controller_Action
array('id', 'reference', 'fichier', 'nbLigneTotales', 'nbLigneTraites', 'error', 'dateAdded', 'dateStart', 'dateStop')
)
->join(
array('c' => 'comptages'), 'i.idComptage = c.id',
array('c' => 'ciblage_comptages'), 'i.idComptage = c.id',
array('')
)
->join(
array('criteres' => 'criteres'), 'i.idCriteres = criteres.id',
array('criteres' => 'ciblage_criteres'), 'i.idCriteres = criteres.id',
array('')
);
$sql->where('i.dateStop = ?', 0)
@ -262,11 +262,11 @@ class DashboardController extends Zend_Controller_Action
array('id', 'reference', 'fichier', 'nbLigneTotales', 'nbLigneTraites', 'error', 'dateAdded', 'dateStart', 'dateStop')
)
->join(
array('c' => 'comptages'), 'i.idComptage = c.id',
array('c' => 'ciblage_comptages'), 'i.idComptage = c.id',
array('')
)
->join(
array('criteres' => 'criteres'), 'i.idCriteres = criteres.id',
array('criteres' => 'ciblage_criteres'), 'i.idCriteres = criteres.id',
array('')
);
$sql->where('criteres.idClient = ?', $user->idClient)
@ -331,7 +331,7 @@ class DashboardController extends Zend_Controller_Action
}
$profil = new stdClass();
$profil->labels = $profilLabels;
$profil->tarif = $result['tarifLigne'];
//$profil->tarif = $result['priceLine'];
$profil->reference = $result['reference'];
$this->view->assign('profil', $profil);
}