Jump to content

Help creating report with starting date


Arthur Jansen

Recommended Posts

Hi There,

I'm looking for a way to create a report with a list with the name of the cliënt, the name of the product and the starting date.

Strangely enough when you go to Reports > Services there is no way to select the starting date there.

When contacting support they just send me here: https://docs.whmcs.com/Reports#Creating_your_own_Reports

But I have no idea how this works, and the option to select de starting date is just a missing feature (see screenshot).

Anyone here who can help me getting this report?

Schermafbeelding 2019-11-21 om 17.14.02.png

Link to comment
Share on other sites

20 hours ago, Arthur Jansen said:

Anyone here who can help me getting this report?

1. duplicate the /modules/reports/services.php file and call it services_startdate.php (or anything you like - but this will be it's visible name on the report index page and sidebar... the reason to duplicate the file is because if you edited the original, the auto updater would overwrite it with its own file...

2. edit the duplicate report and change...

$filterfields = array("id"=>"ID","userid"=>"User ID","clientname"=>"Client Name","orderid"=>"Order ID","packageid"=>"Product ID","server"=>"Server ID","domain"=>"Domain Name","dedicatedip"=>"Dedicated IP","assignedips"=>"Assigned IPs","firstpaymentamount"=>"First Payment Amount","amount"=>"Recurring Amount","billingcycle"=>"Billing Cycle","nextduedate"=>"Next Due Date","paymentmethod"=>"Payment Method","domainstatus"=>"Status","username"=>"Username","password"=>"Password","notes"=>"Notes","subscriptionid"=>"Subscription ID","suspendreason"=>"Suspend Reason");

to...

$filterfields = array("id"=>"ID","userid"=>"User ID","clientname"=>"Client Name","orderid"=>"Order ID","regdate"=>"Start Date","packageid"=>"Product ID","server"=>"Server ID","domain"=>"Domain Name","dedicatedip"=>"Dedicated IP","assignedips"=>"Assigned IPs","firstpaymentamount"=>"First Payment Amount","amount"=>"Recurring Amount","billingcycle"=>"Billing Cycle","nextduedate"=>"Next Due Date","paymentmethod"=>"Payment Method","domainstatus"=>"Status","username"=>"Username","password"=>"Password","notes"=>"Notes","subscriptionid"=>"Subscription ID","suspendreason"=>"Suspend Reason");

xTZmjUt.png

ZJz3ONZ.png

if you need to move where the checkbox is displayed (and hence it's column position in the output), you can just adjust the position of the "regdate"=>"Start Date" code in the above array.

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