on 04-27-2018 5:02 AM
Greetings,
Hi, i am not good in writing a query, appreciate if someone can provide me a query report as below:
Whse, Item No, Serial/ Batch No, Mfr Serial No, Current Serial/ Batch No Cost, Opening Qty, Opening Value, Closing Qty.
Thank you
Regard
Ng
Start with this
SELECTDISTINCTT0.itemcode,
T0.itemname,
T0.docdate,
T0.doctype,
T0.docnum,
T0.loccode,
t4.distnumberAS[BatchNumber],
T1.quantity,
T5.calcpriceAS[Price]
FROM[oitl]T0
INNERJOIN[itl1]T1
ONT1.[logentry]=T0.[logentry]
INNERJOINobtnT4
ONT1.mdabsentry=T4.absentry
INNERJOIN[oitm]T2
ONT2.[itemcode]=T0.[itemcode]
INNERJOINoinmT5
ONT0.itemcode=T5.itemcode
ANDT0.loccode=T5.warehouse
ANDT0.appdocnum=T5.base_ref
Regards
Kennedy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
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.