diff --git a/wawi/bestellung.php b/wawi/bestellung.php
index d121ec709..ca64175cd 100644
--- a/wawi/bestellung.php
+++ b/wawi/bestellung.php
@@ -459,6 +459,8 @@ if($aktion == 'suche')
$konto = new wawi_konto();
$konto->getAll();
$konto_all = $konto->result;
+ $zahlungstyp = new wawi_zahlungstyp();
+ $zahlungstyp->getAll();
$kostenstelle = new wawi_kostenstelle();
$oe_berechtigt = new organisationseinheit();
@@ -482,7 +484,7 @@ if($aktion == 'suche')
echo "
\n";
echo "| Titel | \n";
echo " | \n";
- echo "
\n";
+ echo "
\n";
echo "\n";
echo "| Erstelldatum | \n";
echo "von bis | \n";
@@ -543,10 +545,39 @@ if($aktion == 'suche')
{
echo '\n";
}
-
echo "\n";
echo "\n";
echo "
\n";
+ echo "\n";
+ echo "| Zahlungstyp: | \n";
+ echo "\n";
+ echo " | \n";
+ echo "
\n";
+ echo "\n";
+ echo "| Tag: | \n";
+ echo " | \n";
+ echo "
\n";
+
+ echo "";
+
+
+ echo "\n";
echo "
\n";
echo "| Änderung durch: | \n";
echo " \n";
@@ -558,6 +589,10 @@ if($aktion == 'suche')
echo " | Nur ohne Rechnung | \n";
echo " | \n";
echo "
\n";
+ echo "";
+ echo "| Nur ohne Tags | ";
+ echo " | \n";
+ echo "
";
echo "| |
\n";
echo " |
\n";
echo "\n";
@@ -578,6 +613,8 @@ if($aktion == 'suche')
$ebis = (isset($_REQUEST['ebis'])?$_REQUEST['ebis']:'');
$bvon = (isset($_REQUEST['bvon'])?$_REQUEST['bvon']:'');
$bbis = (isset($_REQUEST['bbis'])?$_REQUEST['bbis']:'');
+ $tag = (isset($_REQUEST['tag'])?$_REQUEST['tag']:'');
+ $zahlungstyp = (isset($_REQUEST['filter_zahlungstyp'])?$_REQUEST['filter_zahlungstyp']:'');
$firma_id = (isset($_REQUEST['firma_id'])?$_REQUEST['firma_id']:'');
if(!isset($_REQUEST['filter_oe_kurzbz']) || $_REQUEST['filter_oe_kurzbz'] == 'opt_auswahl')
$oe_kurzbz = '';
@@ -592,6 +629,10 @@ if($aktion == 'suche')
$rechnung = true;
else
$rechnung = false;
+ if (isset ($_REQUEST['tagsvorhanden']))
+ $tagsNotExists = true;
+ else
+ $tagsNotExists = false;
$bestellung = new wawi_bestellung();
@@ -607,7 +648,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, $filter_tag))
+ 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))
{
$brutto = 0;
$gesamtpreis =0;