mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-02-11 12:10:09 +01:00
produktion PDF added etiketten
This commit is contained in:
parent
4b4a1dbbda
commit
f5565f54a2
@ -133,6 +133,7 @@ class ProduktionPDF extends BriefpapierCustom {
|
|||||||
|
|
||||||
$produktionsartikel = $this->app->DB->SelectRow("
|
$produktionsartikel = $this->app->DB->SelectRow("
|
||||||
SELECT
|
SELECT
|
||||||
|
a.id,
|
||||||
a.name_de,
|
a.name_de,
|
||||||
a.nummer,
|
a.nummer,
|
||||||
a.internerkommentar,
|
a.internerkommentar,
|
||||||
@ -158,6 +159,25 @@ class ProduktionPDF extends BriefpapierCustom {
|
|||||||
$bodytext['Interne Bemerkung'] = $data['internebemerkung'];
|
$bodytext['Interne Bemerkung'] = $data['internebemerkung'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sql = "SELECT
|
||||||
|
etiketten.name,
|
||||||
|
al.amount
|
||||||
|
FROM article_label al
|
||||||
|
INNER JOIN artikel a ON a.id = al.article_id
|
||||||
|
INNER JOIN etiketten ON etiketten.id = al.label_id
|
||||||
|
WHERE
|
||||||
|
al.type = 'produktion' AND al.article_id = ".$produktionsartikel['id'];
|
||||||
|
$produktionsetiketten = $this->app->DB->SelectArr($sql);
|
||||||
|
|
||||||
|
if (!empty($produktionsetiketten)) {
|
||||||
|
$komma = "";
|
||||||
|
foreach ($produktionsetiketten as $produktionsetikett) {
|
||||||
|
$etikettentext .= $komma.$produktionsetikett['name']." (".$produktionsetikett['amount'].")";
|
||||||
|
$komma = ", ";
|
||||||
|
}
|
||||||
|
$bodytext['Etiketten'] = $etikettentext;
|
||||||
|
}
|
||||||
|
|
||||||
$nlbr = "";
|
$nlbr = "";
|
||||||
foreach ($bodytext as $key => $value) {
|
foreach ($bodytext as $key => $value) {
|
||||||
$body .= $nlbr.$key.":\n".$value;
|
$body .= $nlbr.$key.":\n".$value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user