mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 23:01:14 +01:00
Bugfix produktion list
This commit is contained in:
parent
348d946637
commit
ef8b6f7a1f
@ -74,11 +74,11 @@ class Produktion {
|
|||||||
(" . $app->YUI->IconsSQL_produktion('p') . ") AS `icons`,
|
(" . $app->YUI->IconsSQL_produktion('p') . ") AS `icons`,
|
||||||
p.id
|
p.id
|
||||||
FROM produktion p
|
FROM produktion p
|
||||||
INNER JOIN produktion_position pp ON pp.produktion = p.id
|
LEFT JOIN produktion_position pp ON pp.produktion = p.id
|
||||||
INNER JOIN artikel a ON pp.artikel = a.id
|
LEFT JOIN artikel a ON pp.artikel = a.id
|
||||||
";
|
";
|
||||||
|
|
||||||
$where = " pp.stuecklistestufe = 1 ";
|
$where = " (pp.stuecklistestufe = 1 OR pp.stuecklistestufe IS NULL) ";
|
||||||
$count = "SELECT count(DISTINCT p.id) FROM produktion p INNER JOIN produktion_position pp ON pp.produktion = pp.id WHERE $where";
|
$count = "SELECT count(DISTINCT p.id) FROM produktion p INNER JOIN produktion_position pp ON pp.produktion = pp.id WHERE $where";
|
||||||
// $groupby = "";
|
// $groupby = "";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user