diff --git a/wawi/bestellung.php b/wawi/bestellung.php index f7d69f26d..49fb95932 100644 --- a/wawi/bestellung.php +++ b/wawi/bestellung.php @@ -596,7 +596,11 @@ if($aktion == 'suche') echo ""; echo " Nur ohne Tags "; echo "\n"; - echo ""; + echo ""; + echo "\n"; + echo "Nur ohne Freigabe\n"; + echo "\n"; + echo "\n"; echo " \n"; echo "\n"; echo "\n"; @@ -629,14 +633,10 @@ if($aktion == 'suche') $filter_konto = (isset($_REQUEST['filter_konto'])?$_REQUEST['filter_konto']:''); $mitarbeiter_uid = (isset($_REQUEST['mitarbeiter_uid'])?$_REQUEST['mitarbeiter_uid']:''); $filter_firma = (isset($_REQUEST['filter_firma'])?$_REQUEST['filter_firma']:''); - if (isset ($_REQUEST['rechnung'])) - $rechnung = true; - else - $rechnung = false; - if (isset ($_REQUEST['tagsvorhanden'])) - $tagsNotExists = true; - else - $tagsNotExists = false; + $rechnung = (isset ($_REQUEST['rechnung'])?true:false); + $tagsNotExists = (isset ($_REQUEST['tagsvorhanden'])?true:false); + $ohneFreigabe = (isset ($_REQUEST['ohneFreigabe'])?true:false); + $bestellposition= (isset($_REQUEST['bestellposition'])?$_REQUEST['bestellposition']:''); $bestellung = new wawi_bestellung(); @@ -652,7 +652,7 @@ if($aktion == 'suche') if(($evon || $evon === '') && ($ebis || $ebis === '' ) && ($bvon || $bvon === '') && ($bbis || $bbis === '')) { // Filter firma oder firma id werden angezeigt - if($bestellung->getAllSearch($bestellnummer, $titel, $evon, $ebis, $bvon, $bbis, $firma_id, $oe_kurzbz, $filter_konto, $mitarbeiter_uid, $rechnung, $filter_firma, $filter_kostenstelle, $tag, $zahlungstyp, $tagsNotExists, $bestellposition)) + if($bestellung->getAllSearch($bestellnummer, $titel, $evon, $ebis, $bvon, $bbis, $firma_id, $oe_kurzbz, $filter_konto, $mitarbeiter_uid, $rechnung, $filter_firma, $filter_kostenstelle, $tag, $zahlungstyp, $tagsNotExists, $bestellposition, $ohneFreigabe)) { $brutto = 0; $gesamtpreis =0;