# Report Generator 3.X For WHMCS

# (opens new window) About Report Generator For WHMCS (opens new window)

Report Generator For WHMCS allows you to generate and manage any kind of reports using inbuilt creators.

The module lets you adjust reports to your needs through using various filters and even your own PHP code.
It also permits to display prepared reports in tables, graphs or charts.
You can also schedule the reports creation and send them over an email to specified staff members.

  • Admin Area Features

    • Generate Your Own Report Using One Of 3 Creators
    • View 30 Predefined Reports
    • Modify Report Results With Dynamic Filters
    • Generate PDF And CSV Files From Reports
    • Print Reports With A Print Preview
    • Schedule Automatic Reports With Specified Options Being Sent:
      • To Chosen Staff Members
      • To SFTP Server
    • Export & Import Reports Structure To File
    • Export Reports To XML File Format (Coming Soon)
  • Report Creation Features

    • Choose One Of 3 Creators:
      • Beginner:
        • Drag & Drop Editor
        • WHMCS Tables Only
        • Join Tables With Known Relations Only
      • Intermediate:
        • Drag & Drop Editor
        • All Tables Available
        • Modify Output With PHP
      • Advanced:
        • Write SQL Query
        • All Tables Available
        • Modify Output With PHP
    • Choose Section Display Type:
      • Data Table
      • Pie Chart
      • Area Chart
      • Column Chart
    • Create Multi-Section Reports
    • Clone Sections (Coming Soon)
    • Create Section Using Multiple Tables
    • Dynamic Filter Types:
      • Data Range Filter - Available On Report View
      • Dropdown Filter - Specify Available Options During Report Creation
      • Number Range Filter
      • Text Filter
      • Cron Date Filter - Define Date Range For Scheduled Reports
    • Live Preview Of Data Returned By Report Creator
    • Live Preview Of SQL Query Built By Report Creator
    • Live Preview Of Section Generated By Report Creator
    • Toggle Between Automatic & Manual Refreshing Of Generated Section
  • Additional Basic & Intermediate Creators Features

    • Mark Tables With Known Relations And Automatically Configure Join In Table
    • Advanced Conditioning:
      • Define Static Condition
      • Define Requested Relation Between Two Fields
      • Add Dynamic Filter As Condition
    • Output Field:
      • Field - Display Field As Is
      • Concat - Join Multiple Fields Into One
      • Substr - Display Only Part Of Chosen Field
      • Sum - Summarize All Values With The Same Value Of Group By Field
      • Count - Count All Values With The Same Value Of Group By Field
      • Max - Display Maximal Value Found Within Fields With The Same Value Of Group By Field
      • Min - Display Minimal Value Found Within Fields With The Same Value Of Group By Field
      • Avg - Display Average Of Fields With The Same Value Of Group By Field
    • Limit Amount Of Data Displayed On Report
    • Skip Chosen Amount Of First Records Displayed On Report
  • General Info

  • Predefined Reports

    • 'Clients Information' Section:
      • Customers Per Country
      • Most Valuable Clients
      • Paid Orders Report
      • Orders Report
      • Created Panels Report
      • User Accounts Created:
        • Number Of Created User Accounts By Date
        • List Of User Accounts Created
      • Business Health Status:
        • Domain Renewals For The Time Period
        • Open Tickets For The Period
        • New Invoices For The Time Period
        • Invoice Reminders For The Time Period
        • Hosting Renewals
        • Suspended Services For The Time Period
      • Complete Cases:
        • Closed & Answered Status Tickets By The Staff Member
        • Tickets Stats In Time By The Staff Member
        • Completed To-Do List Tasks By The Staff Member
        • To-Do Tasks Stats Per Status By The Staff Member
        • Orders Summary
      • Tasks And Tickets In Progress:
        • General Tickets Statistics - For Selected Staff Member Or Team In Time
        • To-Do List - Tasks Per Status For Selected Staff Member Or Team In Time
        • To-Do List - Tasks In Progress For Selected Staff Member Or Team In Time
      • Unpaid Invoices
      • Client Payment History
    • 'Services' Section:
      • Product Income In Location
      • Income Per Country
      • MRR & Churn Metrics
      • MRR & Churn Per Product
      • Orders Number
      • Orders Over The Weekdays
      • Registered Services
      • Renewals Report
      • Tasks And Tickets In Progress:
      • Transferred Domains Report
    • 'CRM Related' Section:
      • WWW Created Panels Report
      • Traders Renewals Report
      • WWW Renewals Report
      • Leads Report
    • 'Staff Members' Section:
      • Tickets In Hours
      • Ticket Replies By Admin
      • Comments On Course Of Ticket Solving
      • Ratings Of Ticket Solving Course
      • Ticket Response Rating
      • Flexible Transactions Report

# Installation

This tutorial will show you how to successfully install and configure Report Generator For WHMCS. (opens new window)

We will guide you step by step through the whole installation and configuration process.

  1. Log in to our client area and download the module.
Report Generator 3.X For WHMCS: download the module from the client area Downloads tab with the Download button
  1. In the downloaded file you will find two packages that support different PHP versions.
    As presented on the screen below, the first one is dedicated to PHP 5.6 up to PHP 7.0, while the second one is aimed at PHP 7.1 up to PHP 7.2.
    It does not apply to open source versions.
    Note: You can check the current PHP version in your WHMCS. To do so, proceed to 'Utilities' › 'System' › 'PHP Info'.

    Report Generator 3.X For WHMCS: downloaded archive with the PHP56_TO_PHP70 and PHP71_TO_PHP72 zip packages in a file
  2. Extract the downloaded file and choose the one with the right PHP version. Upload and extract the PHP file into the main WHMCS directory.
    The content of PHP version files should look like this.

    Report Generator 3.X For WHMCS: module files extracted into a folder with the modules directory
  3. When you install Report Generator For WHMCS for the first time you have to rename 'license_RENAME.php' file.
    File is located in 'modules/addons/reportgenerator/license_RENAME.php'. Rename it from 'license_RENAME.php' to 'license.php'.

    Report Generator 3.X For WHMCS: renaming licenseRENAME.php to license.php in the report generator addon folder
  4. In order to configure your license key, you have to edit a previously renamed 'license.php' file.'
    Enter your license key between quotation marks as presented on the following screen. You can find your license key in our client area→ 'My Products'.

    Report Generator 3.X For WHMCS: license.php file with the license key entered between quotation marks
  5. Now, set up the 'storage' folder as writable.
    This folder should be available at 'your_whmcs/modules/addons/reportgenerator/'.

    Report Generator 3.X For WHMCS: file manager with the storage folder set to writable permissions rwxrwxrwx
  6. Now you have to activate the module in your WHMCS system.
    Log in to your WHMCS admin area. Go to 'Setup' → 'Addon Modules'. Afterwards, find 'Report Generator' and press 'Activate' button.

    Report Generator 3.X For WHMCS: WHMCS Addon Modules list with the Activate button next to Report Generator
  7. In the next step you need to permit access to this module.
    To do so, click on 'Configure' button, tick 'Full Administrator' and press 'Save Changes'.

    Report Generator 3.X For WHMCS: WHMCS Addon Modules access control with Full Administrator ticked and Save Changes
  8. You have just successfully installed Report Generator!
    You can access the module at 'Addons' → 'Report Generator'.

Report Generator 3.X For WHMCS: Report Generator module main page in the WHMCS admin area with five report categories

# Configuration and Management

Report Generator For WHMCS allows you to create custom reports using drag & drop WYSIWYG builder.
Module also offers additional useful features like predefined reports, import/export of reports, generating reports in PDF and CSV, ability to send them to admins and much more.

# Predefined Reports

'Reports' the main section of the module, gives a preview of all available reports, those predefined as well as those you create by yourself.
Predefined reports are divided into five categories plus custom reports if you have some.

Clients Information - eleven predefined reports that will show statistics on data related to your clients, for example statistics on placed orders, tasks, etc.

Report Generator 3.X For WHMCS: Clients Information category expanded with eleven predefined reports and Show buttons

Services - nine different reports ready to analyze any services related data like income, renewals or transfers in your system.

Report Generator 3.X For WHMCS: Services category expanded with predefined reports list and Show buttons

CRM Related - four ground reports based on your CRM data. Please note that you can see them only if you are using our CRM For WHMCS module.
More about CRM For WHMCS can be found here (opens new window), instructions how to configure your CRM.

Report Generator 3.X For WHMCS: CRM Related category with four reports and the View CRM For WHMCS Features button

Staff Members - three predefined reports related to staff members and tickets department.

Report Generator 3.X For WHMCS: Staff Members category with three predefined ticket related reports

Custom reports - all reports that you have personally created using our inbuilt creators.

Report Generator 3.X For WHMCS: Custom category with a list of created reports and Show and Delete buttons

# Report View

Press 'Show' button next to a report you are interested in.

Report Generator 3.X For WHMCS: Services reports list with the Show button highlighted next to Registered Services

Depending on the type of report you choose, you can set the time frames within which you want to see the statistics.
Provide the beginning and ending dates, then press 'Filter' button. Fresh report will be generated on the run.

Report Generator 3.X For WHMCS: Registered Services report with date range filter, column chart, pie chart and table

In case of some reports, filtering is impossible due to the stable content of the report.

Report Generator 3.X For WHMCS: Aging Invoices report with a table of periods and a pie chart, without a filter

You can always view a printable version of the report or generate a PDF or CSV which can be saved on your disk.

Report Generator 3.X For WHMCS: report view with View Printable Version, Generate PDF and Generate CSV buttons

# Creating Report

In this section we will show you how to prepare a few exemplary reports.
We will now show you how to develop three different reports, each one will slightly more complicated than the previous one.
The first steps are the same for each advancement level.

Press 'Create Report'.

Report Generator 3.X For WHMCS: Chart Types page with Column, Pie, Table and Area chart widgets after clicking Create

Now select the type of chart that you wish to achieve in the final result.
You may generate a 'Colum', 'Pie', 'Table' or 'Area' chart. For presentation purposes we will start with a Table chart.
Press it to select.

Report Generator 3.X For WHMCS: Chart Types page with the Table Chart Widget selected

It is time to select the creator type. You can generate your report with:

  • creator for beginners
  • creator for admins on an intermediate level
  • creator for professionals - expert
    Let's begin with the easiest one - 'Beginner'.
Report Generator 3.X For WHMCS: Creator Types page with Beginner, Intermediate and Advanced SQL creators

# Beginner - Unpaid Invoices Per Clients

When you enter the creator, the first things you can see is a wide description table with example.
When you are familiar with it, press and it will be automatically hidden.

The very first steps of creating a report is defining base table, only when it is selected, you may move to the next steps.
Depending on what your report is going to analyze, you must now find appropriate table.
For example if you want to create a report that will base on clients, then find such WHMCS table.
If you want to join it with another table, then drag it and drop into 'Join Additional Information', note that you may join only tables highlighted in blue.

Report Generator 3.X For WHMCS: Beginner creator with Clients base table and Invoices joined in Join Additional

Now, let's move to 'Display If' section. From available 'Fields' drag option that you want to select.

Report Generator 3.X For WHMCS: Beginner creator Display If section with an empty condition drop area

We have decided to drag 'Status' and provide its value: 'Unpaid'. Then only unpaid invoices will be taken into consideration in the final report.

Report Generator 3.X For WHMCS: Where condition dialog with status column, equals condition and Unpaid value

Let's move to 'Select Fields To Display On Final Report' section. Drag from ' Fields' ' section any ones that you wish to see on your report.

Report Generator 3.X For WHMCS: Select Fields To Display On Final Report section with name, due date, total, payment

You can also decide the way the entries will be sorted.
On the screen below you can see sorting by invoice due date in descending order.

Report Generator 3.X For WHMCS: Order By dialog with due date column and ascending direction

Let's check how our report will look like.
You can see there a list of clients, due date of their unpaid invoices together with the amount to pay and a selected payment method.

Report Generator 3.X For WHMCS: Unpaid Invoices report table with client name, due date, total and payment method

Take a look at the full creator view.
Save the changes when your report is ready.
Apart form the options used to generate this report, there are also 'Group By' and ' Limit'.
We will show how to use them in other examples.

Report Generator 3.X For WHMCS: full Beginner creator view with tables, conditions, sort, fields, limit and query

Finally, name your report and describe it shortly.

Report Generator 3.X For WHMCS: Save Report dialog with report name and description fields and Save button

When everything is ready, you can see your report. You can always:

  1. Edit your report section

  2. Delete report section

  3. Print the report

  4. Generate PDF version

  5. Generate CSV version

  6. Add new section to the report

  7. Delete the whole report

Report Generator 3.X For WHMCS: custom report view for Unpaid Invoices Per Client with numbered action buttons

# Intermediate Creator

When you open the creator, the overall view is very similar to the 'Beginner' creator type.
Here you also select items depending on your needs and drag them into proper fields.

Report Generator 3.X For WHMCS: Intermediate creator with Currencies base table, joined Clients, group by and field

The difference here is the possibility to make adjustments to your report with the use of PHP language.
Whenever you commit any changes remember to save the section.

Report Generator 3.X For WHMCS: Intermediate creator with the Parse Your Data Using PHP code box and Save Section button

# Advanced Creator

This creator allows to use advanced option, such as writing an SQL query. Just provide correct variables in the box on the left.

Report Generator 3.X For WHMCS: Advanced creator with an SQL query editor and the Add New Filter button

You can also add a filter that will be used while searching through the report. Give the details corresponding to your needs the most and save changes.

Report Generator 3.X For WHMCS: Filters dialog with Date Range Filter type, title and date range, and Save button

# Schedule Report

At 'Schedule Reports' section, you can point which reports will be sent directly to administrators.
Press 'Schedule Report' to begin.

Report Generator 3.X For WHMCS: Scheduled Reports page with a table of rules and the Schedule Report button

Box with a form to fill in will appear. Start by selecting the report you want to schedule.
On the dropdowm menu you will find all reports available in you module including your custom reports.
Please note that the form may slightly differ depending on the selected report type.
Afterwards, specify the conditions, how often reports should be sent, time period for which the report shall be generated and way of sending, by email or by FTP etc.
Additionally, provide staff email addresses or FTP/SFTP details.
Confirm through pressing 'Add Rule' button.

Report Generator 3.X For WHMCS: Add Rule dialog with report, date range, time period, action type and recipients

As you can see on the following screen, all scheduled reports are listed in the table with report name, frequency and assigned admin users.
Each of planned relations can be removed or edited at any time, use action buttons to do so.

Report Generator 3.X For WHMCS: Scheduled Reports table listing rules with Edit and Delete action buttons

At the end you have to add a cron job as shown below (each 24 hours suggested).

php -q /your_whmcs/modules/addons/reportgenerator/cron/cron.php   

Do not forget to replace 'your_whmcs' with your WHMCS root location.

# Import/Export

'Import/Export' section allows to quickly import your saved previously reports if you have for example stored them on your external disk for later use.
Just select file and press 'Import'. Imported report will appear on the list of your custom reports.

Report Generator 3.X For WHMCS: Import and Export page with a selected .rep file and the Import button

Underneath, you can see a list of your custom reports. Press 'Export' button to save its files on your disk.

Report Generator 3.X For WHMCS: Import and Export page with the list of custom reports and Export buttons

# Tips

  1. If you want to edit your custom report and make it more complicated, you may do it with a more advanced creator.
    When you are editing a report you may choose from the beginning which creator type you are going to use.

  2. Report Generator For WHMCS requires ZipArchive PHP library installed on your server.

# Update Instructions

Essential guidance through the process of updating the module is offered here.

Keep in mind there is a quick and easy option in our client area that will let you upgrade the license of your module to an open source version at any time - and at a lower price!
To take advantage of it, simply use the License Upgrade button located on the product's page and a discounted invoice will be generated automatically.

# Common Problems

  1. When you have problems with connection, check whether your SELinux or firewall does not block ports.