From d43efd3eb1cf82d0016956c2d2b619412b0d1bd8 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Wed, 9 Feb 2011 15:48:45 +0000 Subject: [PATCH] =?UTF-8?q?Checkscript=20f=C3=BCr=20Freigegebene=20aber=20?= =?UTF-8?q?nicht=20gelieferte=20Bestellungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wawi/check_bestellung.php | 152 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 wawi/check_bestellung.php diff --git a/wawi/check_bestellung.php b/wawi/check_bestellung.php new file mode 100644 index 000000000..c7d7d81fa --- /dev/null +++ b/wawi/check_bestellung.php @@ -0,0 +1,152 @@ +, + * Andreas Oesterreicher and + * Karl Burkhart . + */ +require_once '../config/wawi.config.inc.php'; +require_once('auth.php'); + +require_once '../include/wawi_konto.class.php'; +require_once '../include/wawi_bestellung.class.php'; +require_once '../include/wawi_kostenstelle.class.php'; +require_once '../include/wawi_bestelldetail.class.php'; +require_once '../include/wawi_aufteilung.class.php'; +require_once '../include/wawi_bestellstatus.class.php'; +require_once '../include/wawi_zahlungstyp.class.php'; +require_once '../include/datum.class.php'; +require_once '../include/firma.class.php'; +?> + + + + Checksrikpt für Bestellungen + + + + + + + + + + + + + + + + + + +
min (Wochen):
max (Wochen):
 
+ '; + +echo ' + '; + +if(isset($_POST['submit'])) +{ + $date = new datum(); + $firma = new firma(); + if(is_numeric($min = $_POST['min']) && is_numeric($max = $_POST['max'])) + { + $bestellung = new wawi_bestellung(); + $bestellung->loadBestellungForCheck($min, $max); + + echo ' + + + + + + + + + + + + + + + '; + foreach($bestellung->result as $row) + { + $firmenname = ''; + $geliefert ='nein'; + $status = new wawi_bestellstatus(); + if(is_numeric($row->firma_id)) + { + $firma->load($row->firma_id); + $firmenname = $firma->name; + } + if($row->freigegeben == '1') + $freigegeben = 'ja'; + else + $freigegeben = 'nein'; + + if($status->isStatiVorhanden($row->bestellung_id, 'Lieferung')) + $geliefert = 'ja'; + + $brutto = $bestellung->getBrutto($row->bestellung_id); + echo ' + + + + + + + + + + + '; + } + echo ' +
Bestellnr.Bestell_IDFirmaErstellungFreigegebenGeliefertBruttoTitelLetze Änderung
'.$row->bestell_nr.''.$row->bestellung_id.''.$firmenname.''.$date->formatDatum($row->insertamum, "d.m.Y").''.$freigegeben.''.$geliefert.''.number_format($brutto, 2, ",",".").''.$row->titel.''.$date->formatDatum($row->updateamum, "d.m.Y").' '.$row->updatevon.'
'; + } +} + +?> \ No newline at end of file