eger Posted April 16, 2010 Share Posted April 16, 2010 I would like to find a way to view which products/services are in use by clients. I thought I was able to do this before a long time ago. But I can't seem to find out how. I would like to cleanup some of my products. But I am not sure which are being used and which are not. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted April 16, 2010 Share Posted April 16, 2010 Clients tab, choose "List all products/Services" from the dropdown. Click "search/filter" and search on whatever product you want to find. Gives a total at the top. 0 Quote Link to comment Share on other sites More sharing options...
eger Posted April 16, 2010 Author Share Posted April 16, 2010 I thought I saw a page once that showed an overview... With lots of products that could be tedious work. I figured out how to mangle some SQL together to show this. Maybe this could be thrown together as an add-on module (unfortunately I don't know how those work yet). SELECT `tblproducts`.`id` AS 'Product ID', `tblproducts`.`name` AS 'Product Name', COUNT( `tblhosting`.`id` ) AS 'In Use', `tblproductgroups`.`name` AS 'Group' FROM `tblproducts` LEFT JOIN `tblproductgroups` ON `tblproducts`.`gid` = `tblproductgroups`.`id` LEFT JOIN `tblhosting` ON `tblproducts`.`id` = `tblhosting`.`packageid` GROUP BY `tblhosting`.`packageid` Hope this might help someone in the future! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.