Phobic Posted October 11, 2012 Share Posted October 11, 2012 Hi, I'm trying to do up a quick custom report, similar to the current transactions CSV - However, I only need the following information in it; 1) Invoice ID 2) Full name 3) Transaction ID 4) Amount paid 5) Country Preferably, I would like to be able to split this by month. I'm looking to get this done up to make it easier to balance our tax books. If anyone could assist me with this, I'd greatly appreciate it. 0 Quote Link to comment Share on other sites More sharing options...
Phobic Posted October 11, 2012 Author Share Posted October 11, 2012 Hey all, Just thought I'd post and say I solved this myself - did it through standard SQL rather than go through the WHMCS reports. If anyone else ever finds themselves needing this, the query is; SELECT tblinvoices.id AS 'Invoice ID', tblclients.id AS 'User ID', tblinvoices.datepaid AS 'Date Paid', tblinvoices.total AS 'Total paid', tblclients.country AS 'Country' FROM tblinvoices, tblclients WHERE tblclients.id = tblinvoices.id AND tblinvoices.status = 'Paid' AND tblinvoices.datepaid LIKE '2012-05%'; Mods can feel free to lock this now 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.