Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9169

Sales opportunity link with Sales quote

$
0
0

Dear Experts,

 

I have this query where I have linked the Sales opportunity and Sales quotation .

 

SELECT Distinct  T0.[OpprId] as 'Opportunity',T4.[SlpName],T0.[CardCode], T2.Cardname, T0.[OpenDate] as 'Enquiry Date', T3.[ItemCode], T3.[Dscription],T3.[Quantity], T0.[MaxSumLoc] as 'Sales Quotation amount',T0.[CloseDate] as ' Opportunity close date',T0.[Status] as 'Opportunity Status', T2.[DocEntry],T2.[DocNum] as 'SQ Number',T2.DocStatus, T2.[DocDate]

 

FROM OOPR T0

  JOIN OPR1 T1 ON T1.OpprId = T0.OpprId and T1.ObjType='23'

  left join OQUT T2 on t2.DocEntry =  T1.[DocID]

  left JOIN QUT1 T3 ON T2.DocEntry = T3.DocEntry
  
INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode

WHERE T4.[SlpName]='[%0]'

 

 

I am getting the output but  I want a single list of Sales opportunity for a multiple quotations liked to the opportunity.

sales_opp.png

 

As in the pic the opportunity 19 there are 2 Sales quotations. Can we make Sales quotation amount to appear in total for one opportunity. 

 

So when we export in excel we can get Total amount of that opportunity . and also count of the opportunity for a particular sales employee

 

Thanks & Regards

Darshan Desai


Viewing all articles
Browse latest Browse all 9169

Trending Articles



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