Correction requete ou
This commit is contained in:
parent
ccb98bdbb9
commit
cb7399f7f2
@ -234,7 +234,7 @@ function commandesListe($type, $etat, $date, $mode = ''){
|
||||
}
|
||||
if ($mode!='-'){
|
||||
if ($mode == 'G') {
|
||||
$q->orWhereIn('typeCommande', array('', $mode));
|
||||
$q->andWhereIn('typeCommande', array('', $mode));
|
||||
} else {
|
||||
$q->andWhere('typeCommande = ?', $mode);
|
||||
}
|
||||
@ -242,7 +242,8 @@ function commandesListe($type, $etat, $date, $mode = ''){
|
||||
if (!hasModeEdition()){
|
||||
$q->andWhere('login = ?', $_SESSION['tabInfo']['login']);
|
||||
}
|
||||
|
||||
FB::log($q->getSqlQuery(), 'QUERY');
|
||||
FB::log($q->getFlattenedParams(), 'PARAMS');
|
||||
//Résultat
|
||||
$commandes = $q->execute();
|
||||
|
||||
@ -250,7 +251,6 @@ function commandesListe($type, $etat, $date, $mode = ''){
|
||||
$outputCommandes = array();
|
||||
if($type!='-' && count($commandes)>0){
|
||||
foreach ($commandes as $commande){
|
||||
FB::log($commande->refDocument, 'ref');
|
||||
if (filtreTypeCommande($type, $commande->refDocument)){
|
||||
$outputCommandes[] = $commande;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user