From 2e5b23fcc969ca1e6eb66cb3b292eb9be6aaba33 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Mon, 26 Sep 2011 07:46:51 +0000 Subject: [PATCH] =?UTF-8?q?anzeige=20der=20tags=20im=20freigabemail=20hinz?= =?UTF-8?q?ugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wawi/bestellung.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/wawi/bestellung.php b/wawi/bestellung.php index 415ced4db..bf8e4d3d3 100644 --- a/wawi/bestellung.php +++ b/wawi/bestellung.php @@ -2336,6 +2336,16 @@ function getDetailRow($i, $bestelldetail_id='', $sort='', $menge='', $ve='', $be function sendFreigabeMails($uids, $bestellung, $user) { global $date; + $tags = new tags(); + $tags->GetTagsByBestellung($bestellung->bestellung_id); + $tagsAusgabe=''; + foreach($tags->result as $res) + { + if($tagsAusgabe!='') + $tagsAusgabe.=', '; + + $tagsAusgabe.=$res->tag; + } $msg = ''; $kst_mail = new wawi_kostenstelle(); @@ -2356,6 +2366,7 @@ function sendFreigabeMails($uids, $bestellung, $user) $email.="Kontaktperson: ".$besteller->titelpre.' '.$besteller->vorname.' '.$besteller->nachname.' '.$besteller->titelpost."
"; $email.="Erstellt am: ".$date->formatDatum($bestellung->insertamum,'d.m.Y')."
"; $email.="Kostenstelle: ".$kst_mail->bezeichnung."
Konto: ".$konto_mail->kurzbz."
"; + $email.="Tags: ".$tagsAusgabe."
"; $email.="Link: zur Bestellung "; @@ -2422,6 +2433,16 @@ function sendZentraleinkaufFreigegeben($bestellung) function sendBestellerMail($bestellung, $status) { global $date; + $tags = new tags(); + $tags->GetTagsByBestellung($bestellung->bestellung_id); + $tagsAusgabe=''; + foreach($tags->result as $res) + { + if($tagsAusgabe!='') + $tagsAusgabe.=', '; + + $tagsAusgabe.=$res->tag; + } $msg = ''; $kst_mail = new wawi_kostenstelle(); @@ -2449,7 +2470,8 @@ function sendBestellerMail($bestellung, $status) $email.="Firma: ".$firma_mail->name."
"; $email.="Erstellt am: ".$date->formatDatum($bestellung->insertamum,'d.m.Y')."
"; $email.="Kostenstelle: ".$kst_mail->bezeichnung."
Konto: ".$konto_mail->kurzbz."
"; - + $email.="Tags: ".$tagsAusgabe."
"; + $email.="Link: zur Bestellung "; $mail = new mail($bestellung->besteller_uid.'@'.DOMAIN, 'no-reply', 'Bestellung '.$bestellung->bestell_nr, 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Link vollständig darzustellen.');