From 95f203b12c13979050cc4fd91461ca90c610c9e8 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Tue, 1 Oct 2024 13:50:55 +0200 Subject: [PATCH] seriennummern briefpapier seriennummern_beleg_position --- www/lib/dokumente/class.briefpapier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/lib/dokumente/class.briefpapier.php b/www/lib/dokumente/class.briefpapier.php index 8dc3b0a7..445ccea5 100644 --- a/www/lib/dokumente/class.briefpapier.php +++ b/www/lib/dokumente/class.briefpapier.php @@ -316,9 +316,9 @@ class Briefpapier extends SuperFPDF { FROM seriennummern s INNER JOIN - seriennummern_lieferschein_position slp ON slp.seriennummer = s.id + seriennummern_beleg_position slp ON slp.beleg_typ = 'lieferschein' AND slp.seriennummer = s.id WHERE - slp.lieferschein_position = $posid + slp.beleg_position = $posid "; $values = (array) $this->app->DB->SelectArr($sql); return(implode(', ',array_column($values,'seriennummer')));