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

Re: Need a query for Purchase vs Sales

$
0
0

hi

this query brings only ap invoices with project wise and i want sales also like that

SELECT T0.[DocEntry],T0.[DocNum], T0.[DocDate], T0.[TaxDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription],T1.[FreeTxt] "Item Full Desc.", T1.[Quantity], T1.[Price], T1.[TaxCode], T1.[GTotal] FROM OPCH T0  INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OWHS T2 ON T1.WhsCode = T2.WhsCode WHERE T2.[WhsName] =[%0] and T1.[TargetType] !='19' and T0.[DocDate]>=[%1] and T0.[DocDate] <=[%2]


Viewing all articles
Browse latest Browse all 9190

Trending Articles



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