feat(missing inv): adding a way to check for missing data in case it dose pull on the correct days
This commit is contained in:
18
lstV2/server/services/sqlServer/querys/eom/missingHistInv.ts
Normal file
18
lstV2/server/services/sqlServer/querys/eom/missingHistInv.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export const missingHistInv = `
|
||||
use AlplaPROD_test1
|
||||
declare @histDate date = '[eomHistDate]'
|
||||
SELECT
|
||||
IdArtikelVarianten AS article,
|
||||
ArtikelVariantenBez AS articleDescription,
|
||||
ArtikelVariantenTypBez,
|
||||
IdArtikelVariantenTyp,
|
||||
Datum,
|
||||
Menge AS total_QTY,
|
||||
x.IdWarenlager,
|
||||
w.LagerTyp,
|
||||
w.Bezeichnung
|
||||
FROM dbo.V_LagerBestandsHistorie (nolock) x
|
||||
join
|
||||
dbo.T_WarenLager as w on x.IdWarenlager=w.IdWarenLager
|
||||
where w.LagerTyp NOT IN ('4','5','6') AND CONVERT(DATE, Datum) LIKE @histDate
|
||||
`;
|
||||
Reference in New Issue
Block a user