From 4fdfce15b6493697f4bbfb8c737008c33936331a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 15 Dec 2010 10:31:25 +0000 Subject: [PATCH] =?UTF-8?q?-=20Auswertungen=20in=20WaWi=20Men=C3=BC=20inte?= =?UTF-8?q?griert=20-=20Tags=20Auswertung=20filtert=20nun=20korrekt=20auf?= =?UTF-8?q?=20Kostenstellen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/tw/wawi_menu_main.inc.php | 8 ++++++++ vilesci/statistik/wawi_tags.php | 4 +++- wawi/index.php | 6 +++--- wawi/rechnung.php | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/include/tw/wawi_menu_main.inc.php b/include/tw/wawi_menu_main.inc.php index 1282dd16e..427f2ff2a 100644 --- a/include/tw/wawi_menu_main.inc.php +++ b/include/tw/wawi_menu_main.inc.php @@ -58,6 +58,14 @@ $menu=array ( 'name'=>'Personensuche', 'link'=>'https://cis.technikum-wien.at/cis/private/tools/psearch.php', 'target'=>'content', ) + ), + 'Auswertungen'=> array + ( + 'name'=>'Auswertungen', 'opener'=>'true', 'hide'=>'false','permissions'=>array('wawi/bestellung','wawi/rechnung'), + 'Tags'=>array + ( + 'name'=>'Tags', 'permissions'=>array('wawi/bestellung'),'link'=>'../vilesci/statistik/wawi_tags.php', 'target'=>'content', + ) ) ); diff --git a/vilesci/statistik/wawi_tags.php b/vilesci/statistik/wawi_tags.php index e33691741..48aa4c82f 100644 --- a/vilesci/statistik/wawi_tags.php +++ b/vilesci/statistik/wawi_tags.php @@ -84,7 +84,7 @@ if(isset($_POST['show'])) $kst_tags=array(); $tags_array=array(); - + $kstIN=$db->implode4SQL($_POST['kst']); //Tabelle auf Basis der Bestellungen $qry = "SELECT (menge*preisprove*(100+mwst)/100) as brutto, tbl_bestellung.bestellung_id, @@ -100,6 +100,7 @@ if(isset($_POST['show'])) OR EXISTS (SELECT 1 FROM wawi.tbl_bestelldetailtag WHERE bestelldetail_id=tbl_bestelldetail.bestelldetail_id) ) + AND kostenstelle_id IN($kstIN) "; if($result = $db->db_query($qry)) @@ -148,6 +149,7 @@ if(isset($_POST['show'])) tbl_bestellung.insertamum>='$gj->start' AND tbl_bestellung.insertamum<'$gj->ende' AND EXISTS (SELECT 1 FROM wawi.tbl_bestellungtag WHERE bestellung_id=tbl_bestellung.bestellung_id) AND tbl_rechnung.freigegeben + AND kostenstelle_id IN ($kstIN) "; if($result = $db->db_query($qry)) diff --git a/wawi/index.php b/wawi/index.php index c2f2561ad..f928692af 100644 --- a/wawi/index.php +++ b/wawi/index.php @@ -31,9 +31,9 @@ echo ' WaWi - Warenwirtschaft - - - + + + <body> <h1>Error</h1> diff --git a/wawi/rechnung.php b/wawi/rechnung.php index 2e882effe..26d152d5d 100644 --- a/wawi/rechnung.php +++ b/wawi/rechnung.php @@ -351,7 +351,7 @@ elseif($aktion == 'new') echo '<h1>Rechnung Neu</h1>'; echo '<form action="rechnung.php" method="GET">'; echo '<input type="hidden" name="method" value="update"/>'; - echo '<SELECT name="kostenstelle_id">'; + echo 'Kostenstelle: <SELECT name="kostenstelle_id">'; $kostenstelle = new wawi_kostenstelle(); $kostenstelle->loadArray($rechte->getKostenstelle('wawi/rechnung'));