Jump to content

Custom WHMCS Report including Country?


Phobic

Recommended Posts

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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated