Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9656

Production Schedule With Labour Criteria

$
0
0

Hello All

I have a query to display the production schedule for a given day

What i need to do is. I need the query to exclude any production order that have "SUNDRY LABOUR" as an ItemCode

I don't know what condition i need to use to exclude it

 

Please help

 

My query is as below

 

SELECT DISTINCT T0.[Printed],

T0.[DueDate],

T0.[DocNum] as 'Prod ord#',

T0.[OriginNum] as 'S/O#',

T0.[U_CustOrd] as 'Cust. Ord #',

T0.[U_CustName],

T0.PlannedQty as 'Qty',

T0.[ItemCode],

T2.[ItemName],

T0.[U_Type],

T0.[U_Colour],

T0.[U_Colour_Desc],

T0.[Comments],

T0.[Status]

FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode

WHERE T0.[Status] != 'L' and T0.[Status] != 'C' and T0.DueDate >= '[%0]' and T0.DueDate <= '[%1]' ORDER BY T0.[DueDate]


Viewing all articles
Browse latest Browse all 9656

Trending Articles