on 2025 Feb 12 9:43 AM
Hi
I have below query i want Bin location also
SELECT
T1."WhsCode",
T1."ItemCode",
T1."BatchNum" As "Batch No.",
SUM(CASE WHEN T1."Direction" = 0 THEN T1."Quantity" ELSE 0 END) -
SUM(CASE WHEN T1."Direction" = 1 THEN T1."Quantity" ELSE 0 END) AS "Quantity"
FROM IBT1 T1
LEFT JOIN OITM T2 ON T2."ItemCode" = T1."ItemCode"
GROUP BY T1."WhsCode", T1."ItemCode", T1."BatchNum"
Thanks
Request clarification before answering.
Hi,
You can have a look at below link
Hope this helps,
SonTran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.