Modification de la requeête pour prendre en compte la nouvelle facturation, issue #0001125
This commit is contained in:
parent
d537133386
commit
dbe5b2075a
@ -624,7 +624,31 @@ class Gestion extends WsScore
|
|||||||
// Vue détaillée ou uniquement les infos payantes
|
// Vue détaillée ou uniquement les infos payantes
|
||||||
if ($detail==0) {
|
if ($detail==0) {
|
||||||
$detail='Non';
|
$detail='Non';
|
||||||
$strDetail=" AND (page LIKE 'greffe_%' OR page LIKE 'inpi_%' OR page='kbis' OR page LIKE 'indiscore%' OR page='privileges' OR page='commandeAsso') AND (params<>'' OR page LIKE 'indiscore%' AND tarifIndiscore<>0) AND (params NOT LIKE '%erreur%' OR params LIKE '%erreur 17%') ";
|
//$strDetail=" AND (page LIKE 'greffe_%' OR page LIKE 'inpi_%' OR page='kbis' OR page LIKE 'indiscore%' OR page='privileges' OR page='commandeAsso') AND (params<>'' OR page LIKE 'indiscore%' AND tarifIndiscore<>0) AND (params NOT LIKE '%erreur%' OR params LIKE '%erreur 17%') ";
|
||||||
|
$strDetail = ' AND ( ';
|
||||||
|
$pages = array('greffe_actes', 'greffe_bilans', 'kbis', 'indiscore', 'indiscore2', 'indiscore3', 'rapport2', 'rapport3');
|
||||||
|
$totalPages = count($pages);
|
||||||
|
$i=0;
|
||||||
|
foreach( $pages as $pages ) {
|
||||||
|
switch($page)
|
||||||
|
{
|
||||||
|
case 'greffe_actes':
|
||||||
|
case 'greffe_bilans':
|
||||||
|
$strDetail.= "(l.page = '".$page."' AND l.params<>'' AND (l.params NOT LIKE '%erreur%' OR l.params LIKE '%erreur 17%'))";
|
||||||
|
break;
|
||||||
|
case 'kbis':
|
||||||
|
$strDetail.= "(l.page = '".$page."' AND l.params<>'' AND l.params<>'1/1/0//' AND l.params<>'0/1/0//')";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$strDetail.= "l.page = '".$page."'";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
if ( $i<$totalPages) {
|
||||||
|
$strDetail.= ' OR ';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$strDetail = ' ) ';
|
||||||
} elseif($detail==1) {
|
} elseif($detail==1) {
|
||||||
$detail='Oui';
|
$detail='Oui';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user