Jump to content

Annual Income reports & MySQL


Recommended Posts



I am trying to determine my annual income. For some reason the reports from WHMCS differ from what I have gathered from MySQL. I was wondering if someone can explain these differences to me:


The Annual Income Report in WHMCS reports a value of (I mangled the numbers): 12.500,-


However, if I run a query:


SELECT SUM( subtotal ) FROM tblinvoices WHERE date LIKE '2012%' it returns +/- 8500,-

even including VAT:

SELECT SUM( total ) FROM tblinvoices WHERE date LIKE '2012%' it returns +/- 10.000,-


So, basicly WHMCS's report reports a couple of thousands more then what I can find using MySQL queries. My question is: What am I missing in my MySQL query?

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.

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