frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register
Hello m'Managerians !
What do you think m'Manager 2.0 should be ? What features SHOULD or MUST be implemented right now ! Request or Vote here

Count clients

edited June 2017 in Features Request

Hi Managerians,
A user asked for a way to get clients count. He wants to get all active/inactive clients for a given period. The next release will integrate this request. But if you hate waiting, here is a non-official code to achieve this.
1. Download the functions_helper.php.txt file attached to this message
2. Rename it to functions_helper.php and upload it to application/helpers/ to replace the current file. You are DONE !
3. The function literal is count_clients($status, $period=null) . So you can now use anywhere this code <?php echo count_clients('all', 'this_month'); ?> It will return an integer.

Note that the options available are:
$status: all, active, inactive
$period: this_month, last_month, this_year, last_year

If you are comfortable with php and mysql, you can set a more flexible date range with a dynamic calendar. Don't hesitate to post here your code. Let's Build Together a Great App !
Eric

Tagged:

Comments

This discussion has been closed.

m'Manager

| Let's Build Together a Great App !
If you are a happy user, send me a coffee.
2015 - 2107 © m'Manager.
Powered by VanillaForums, Designed by ThemeSteam

Recent Donations

  • Joni Mueller from https://pixelita.com/ - 63€
  • HeyrmanD from https://locco-palace.be - 25€
  • Patricia from Sjopz.com - 10€
  • AskinSavascisi from wolftech.com - 3€
  • Get In Touch