I need query which should display all production orders for a date range with the Item Code “labour “in the BOM
SELECT T0.[DueDate],
T0.[DocNum],
T0.[U_CustName],
T0.[PlannedQty],
T2.[Dscription],
T1.[PlannedQty],
T2.[LineTotal]
FROM OWOR T0 INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry, RDR1 T2
WHERE T0.[DueDate] = >[%0] T0.[DueDate] <[%1] T1.[ItemCode] IS NOT NULL[%2]
ORDER BY T0.[DocNum]
Thanks and regards
Rahul