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

Re: Need to add account code and account name in customization

$
0
0

Hi,

 

Try This:

 

SELECT t0.DocNum, t0.DocDate,T0.Filler,t3.WhsName [From Whse] ,t3.Location ,

(SELECT x.[Location] FROM OLCT x WHERE x.[Code]= t3.Location) [Location Name],

t1.ItemCode,t1.Dscription ,t1.Quantity, t1.StockPrice[Item Cost Unit Price] ,

t1.StockSum[Total Item Cost], T1.Price [Info Price] , t1.LineTotal ,

t4.WhsName[To Whs Name], (SELECT x.[Location] FROM OLCT x WHERE x.[Code]= t4.Location) [To Whs Location] ,(T1.Price - t1.StockSum) [GP], T5.[AcctCode], T5.[AcctName]

FROM OWTR T0  INNER JOIN WTR1 T1 ON T0.DocEntry = T1.DocEntry

inner join OWHS t3 on t0.Filler = t3.WhsCode

Inner join OWHS t4 on t1.WhsCode = t4.WhsCode

Inner join OACT t5 on T1.AcctCode = t5.AcctCode

where T0.Filler = 'B1RET ' or  t4.WhsCode = 'B1RET '

 

Regards,


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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