fix(query): shipmentPallets change from last move to production date
This commit is contained in:
@@ -4,10 +4,12 @@ LagerAbteilungKurzBez as lane,
|
|||||||
Produktionslos as lotNum,
|
Produktionslos as lotNum,
|
||||||
lfdnr as runningNumber,
|
lfdnr as runningNumber,
|
||||||
IdAdresse as addressID,
|
IdAdresse as addressID,
|
||||||
BewegungsDatumMax as lastMove, IdArtikelVarianten as article
|
ProduktionsDatumMin as productionDate,
|
||||||
|
IdArtikelVarianten as article
|
||||||
from AlplaPROD_test1.dbo.V_LagerPositionenBarcodes (nolock)
|
from AlplaPROD_test1.dbo.V_LagerPositionenBarcodes (nolock)
|
||||||
where IdArtikelVarianten = [article]
|
where IdArtikelVarianten = [article]
|
||||||
and LagerAbteilungKurzBez in ([lanes])
|
and LagerAbteilungKurzBez in ([lanes])
|
||||||
|
and IdWarenlager not in (1)
|
||||||
and GesperrtAktivSum in (0)
|
and GesperrtAktivSum in (0)
|
||||||
order by CASE
|
order by CASE
|
||||||
WHEN BewegungsDatumMax <= DATEADD(DAY, -[fifo], GETDATE()) THEN 0
|
WHEN BewegungsDatumMax <= DATEADD(DAY, -[fifo], GETDATE()) THEN 0
|
||||||
|
|||||||
Reference in New Issue
Block a user