Jump to content

Income Amounts


kx10Ltd

Recommended Posts

Hi Guys,

 

I'm trying to make myself a little addon for WHMCS. Since my phone (old, I know), does not have browser capabilities, I am making a small script to send me a text every so often.

 

I have managed to pull some amounts of data so far, for example, if there any any open tickets, total active customers and server uptime, but I want to try and get the income figures sent to me as well.

 

Does anyone know how to do this or where to pull the right info from in the SQL tables?

 

Thanks!

Link to comment
Share on other sites

For example, I want to be able to compile the following into a text message:

 

Income:

Today: £x.xx

This Month: £x.xx

This Year: £x.xx

 

Still too much WHMSish shorthand ;)

 

I'd *translate* that into something like

"Today Amount" - total of all amounts received (transactions) - ignoring payment-processor fees - summary only, not split by gateway - for today's date...

 

What some people think of "income" is turnover, for others it's received amount, for others profit - despite these all having their own "proper" names, I cant be sure f you're using a colloquialism or a definition ;)

 

Once you do that it's relatively easy...

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