Re: Zucker Report Opportunities Break down

Originally Posted by
nvdp2002 Hi Thanks
The reason for going via the listings template way was that when i ran the sequal query
SELECT opportunities.name, opportunities.amount, opportunities.date_closed
FROM opportunities, accounts_opportunities
WHERE opportunities.deleted = 0
AND opportunities.assigned_user_id='$SUGAR_USER_ID'
AND opportunities.id = accounts_opportunities.opportunity_id
Then the accounts name would be the same as the opportunities name, depending on the order of the query. Like if the accounts name was ABC and the opportunities name was DEF then the report would show DEF DEF or ABC ABC depending on which name got called second.
Try the query in PHPMyAdmin and see if it works correctly there or not.
What do you think the cookie monster eats ?
Bookmarks