feat(querys): plant query for gln and label data for sscc and other info
This commit is contained in:
12
server/services/sqlServer/querys/dataMart/plantInfo.ts
Normal file
12
server/services/sqlServer/querys/dataMart/plantInfo.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export const plantInfo = `
|
||||
select werkkurzbez as plantToken,
|
||||
gln,
|
||||
IdAdressen as addressId,
|
||||
Bezeichnung as addressDecriptuion,
|
||||
Strasse as streetAddress,
|
||||
plz as zipcode,
|
||||
ort as cityState
|
||||
--,*
|
||||
from alplaprod_test1.dbo.T_Adressen where werkkurzbez = '[token]'
|
||||
|
||||
`;
|
||||
@@ -1,3 +1,20 @@
|
||||
export const labelData = `
|
||||
select Barcode as barcode from alplaprod_test1.dbo.V_LagerPositionenBarcodes (NOLOCK) where lfdnr = [rn]
|
||||
select x.Barcode as barcode,
|
||||
Produktionslos as lot,
|
||||
x.IdArtikelVarianten as article,
|
||||
x.ArtikelVariantenBez as description,
|
||||
m.Standort as machineLocation,
|
||||
m.Bezeichnung as machineDescription,
|
||||
e.IdEtikettenDrucker as printer,
|
||||
x.LfdNr as runningNr
|
||||
from alplaprod_test1.dbo.V_LagerPositionenBarcodes x (NOLOCK)
|
||||
left join
|
||||
alplaprod_test1.dbo.T_EtikettenGedruckt as e
|
||||
on x.Lfdnr = e.LfdNr
|
||||
|
||||
left join
|
||||
alplaprod_test1.dbo.T_Maschine as m on
|
||||
e.IdMaschine = m.IdMaschine
|
||||
|
||||
where x.lfdnr = [rn] and x.IdWarenlager not in(6)
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user