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

Re: Help in query to get LPP in sales invoice report

$
0
0

Hi Ketki,

Try Below Query



SELECT T0.[DocNum], T0.[DocDate], T0.[CardName],t1.U_Part_No,t1.Dscription, T2.FrgnName as 'Part No.', T1.GrossBuyPr as 'LPP', t1.Quantity,T1.PriceBefDi as 'Unitprice',

(SELECT U0.[CalcPrice] FROM OINM U0 WHERE U0.[TransType] in (18,20) and T1.[ItemCode]=U0.[ItemCode] and U0.[DocDate] =(Select Max(DocDate) from oinm where U0.[ItemCode]=ItemCode))as 'price1' FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode where T0.[DocDate]='2013-11-27' and  T1.ItemCode='FBT03511'

 

regards,

Raviraj


Viewing all articles
Browse latest Browse all 10671

Trending Articles



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