, * 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

Check Bestellungen

min (Wochen):
max (Wochen):
 
 
'; echo ' '; $date = new datum(); $firma = new firma(); $bestellung = new wawi_bestellung(); if($type=='nichtgeliefert') $bestellung->loadBestellungNichtGeliefert(); else if(is_numeric($min) && is_numeric($max)) { $bestellung->loadBestellungForCheck($min, $max); } else die('Fehlerhafte Parameter'); echo ' '; foreach($bestellung->result as $row) { $firmenname = ''; $geliefert ='nein'; $bestellt ='nein'; $status = new wawi_bestellstatus(); if(is_numeric($row->firma_id)) { $firma->load($row->firma_id); $firmenname = $firma->name; } if($row->freigegeben) $freigegeben = 'ja'; else $freigegeben = 'nein'; if($status->isStatiVorhanden($row->bestellung_id, 'Lieferung')) $geliefert = 'ja'; if($status->isStatiVorhanden($row->bestellung_id, 'Bestellung')) $bestellt = 'ja'; $brutto = $bestellung->getBrutto($row->bestellung_id); echo ' '; } echo '
Bestellnr. Bestell_ID Firma Erstellung Freigegeben Geliefert Bestellt Brutto Titel Letze Änderung
'.$row->bestell_nr.' '.$row->bestellung_id.' '.$firmenname.' '.$date->formatDatum($row->insertamum, "d.m.Y").' '.$freigegeben.' '.$geliefert.' '.$bestellt.' '.number_format($brutto, 2, ",",".").' '.$row->titel.' '.$date->formatDatum($row->updateamum, "d.m.Y").' '.$row->updatevon.'
'; ?>