mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
Bugfix lager wert calculation of prices added geloescht != 1 and date range
This commit is contained in:
parent
5638f18770
commit
ecd86d120a
@ -451,7 +451,7 @@ class Lager extends GenLager {
|
||||
FROM
|
||||
einkaufspreise minek
|
||||
WHERE
|
||||
einkaufspreise.artikel = minek.artikel AND DATE(
|
||||
einkaufspreise.geloescht != 1 AND einkaufspreise.artikel = minek.artikel AND DATE(
|
||||
REPLACE
|
||||
(
|
||||
COALESCE(gueltig_bis, '9999-12-31'),
|
||||
@ -482,7 +482,17 @@ class Lager extends GenLager {
|
||||
)
|
||||
) >= DATE('".$datum."')
|
||||
)
|
||||
)
|
||||
) AND DATE(
|
||||
REPLACE
|
||||
(
|
||||
COALESCE(
|
||||
einkaufspreise.gueltig_bis,
|
||||
'9999-12-31'
|
||||
),
|
||||
'0000-00-00',
|
||||
'9999-12-31'
|
||||
)
|
||||
) >= DATE('".$datum."')
|
||||
GROUP BY
|
||||
artikel,
|
||||
waehrung
|
||||
|
Loading…
Reference in New Issue
Block a user