From 0accb17220e8a9868a5bae13ddf3f9859dc2adbf Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Thu, 16 Dec 2010 16:47:59 +0000 Subject: [PATCH] --- include/wawi_bestellung.class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/wawi_bestellung.class.php b/include/wawi_bestellung.class.php index d0b5099e2..bb6bb4c59 100644 --- a/include/wawi_bestellung.class.php +++ b/include/wawi_bestellung.class.php @@ -25,6 +25,7 @@ require_once(dirname(__FILE__).'/basis_db.class.php'); require_once (dirname(__FILE__).'/wawi_bestelldetails.class.php'); require_once (dirname(__FILE__).'/wawi_aufteilung.class.php'); +require_once (dirname(__FILE__).'/organisationseinheit.class.php'); class wawi_bestellung extends basis_db { @@ -580,10 +581,17 @@ class wawi_bestellung extends basis_db /** * - * Liefert true zurück wenn es schon eine Freigabe auf die KST gegeben hat + * Gibt alle OEs zurück die freigegeben werden müssen */ - public function freigabeKstErfolgt() + public function FreigabeOe($bestellung_id) { + $oe = new organisationseinheit(); + $bestellung = new wawi_bestellung(); + $bestellung->load($bestellung_id); + + $oe->load($bestellung->getOe()); + + echo $oe->oe_kurzbz; }