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

Re: Goods Isuue with Batch Number wise.

$
0
0

Hi Santosh,

As per your requirement please try the given Query...

SELECT T0.[ItemCode], T0.[ItemName], T0.[BatchNum], sum(T0.[Quantity]) as 'Issued Qty',T1.OnHand FROM IBT1 T0 Inner Join OITM T1 on T1.ItemCode=T0.ItemCode WHERE T0.[Direction] =1 and T0.[DocDate] between  '[%0]' and '[%1]' GROUP BY T0.[ItemCode], T0.[BatchNum],T0.[ItemName],T1.OnHand

 

Please Note On hand value comes multiple times if same item with same batch but different quantity issued...


Viewing all articles
Browse latest Browse all 8927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>