X7ROOT File Manager
Current Path:
/home/mysptejz/public_html/billing/modules/reports
home
/
mysptejz
/
public_html
/
billing
/
modules
/
reports
/
ðŸ“
..
📄
affiliates_overview.php
(2.59 KB)
📄
aging_invoices.php
(4.57 KB)
📄
annual_income_report.php
(3.26 KB)
📄
client.php
(4.66 KB)
📄
client_sources.php
(4.58 KB)
📄
client_statement.php
(6.88 KB)
📄
clients.php
(5.8 KB)
📄
clients_by_country.php
(2.22 KB)
📄
credits_reviewer.php
(6.06 KB)
📄
customer_retention_time.php
(9.07 KB)
📄
daily_performance.php
(4.96 KB)
📄
direct_debit_processing.php
(2.95 KB)
📄
disk_usage_summary.php
(3.19 KB)
📄
domain_renewal_emails.php
(6.09 KB)
📄
domains.php
(8.4 KB)
📄
income_by_product.php
(8.92 KB)
📄
income_forecast.php
(4.26 KB)
📄
index.php
(42 B)
📄
invoices.php
(10.36 KB)
📄
monthly_orders.php
(3.45 KB)
📄
monthly_transactions.php
(4.05 KB)
📄
new_customers.php
(4.36 KB)
📄
pdf_batch.php
(4.43 KB)
📄
product_suspensions.php
(1.55 KB)
📄
promotions_usage.php
(3.53 KB)
📄
sales_tax_liability.php
(5.65 KB)
📄
server_revenue_forecasts.php
(3.63 KB)
📄
services.php
(9.7 KB)
📄
smarty_compatibility.php
(4.35 KB)
📄
ssl_certificate_monitoring.php
(7.92 KB)
📄
support_ticket_replies.php
(2.23 KB)
📄
ticket_feedback_comments.php
(5.31 KB)
📄
ticket_feedback_scores.php
(4.5 KB)
📄
ticket_ratings_reviewer.php
(4.11 KB)
📄
ticket_tags.php
(2.99 KB)
📄
top_10_clients_by_income.php
(2.36 KB)
📄
transactions.php
(7.08 KB)
📄
vat_moss.php
(6.98 KB)
Editing: pdf_batch.php
<?php use WHMCS\Carbon; use WHMCS\Database\Capsule; use WHMCS\Invoices; use WHMCS\Module\GatewaySetting; if (!defined("WHMCS")) { die("This file cannot be accessed directly"); } $reportdata['isPrintable'] = false; $reportdata['canCsvExport'] = false; $reportdata["title"] = "Batch PDF Invoice Export"; $reportdata["description"] = <<<DESCRIPTION This tool can be used to generate and download a batch export of invoices in PDF format (one per page).<br /> Typical uses for this include producing hard paper copies for mailing to clients or record keeping. DESCRIPTION; require("../includes/gatewayfunctions.php"); if ($noresults) { infoBox("No Invoices Match Criteria", "No invoices were found matching the criteria you specified"); $reportdata["description"] .= $infobox; } $range = App::getFromRequest('range'); if (!$range) { $today = Carbon::today()->endOfDay(); $lastMonth = Carbon::today()->subDays(29)->startOfDay(); $range = $lastMonth->toAdminDateFormat() . ' - ' . $today->toAdminDateFormat(); } $clientsDropDown = $aInt->clientsDropDown($userid, false, 'userid', true); $gatewayOptions = ''; foreach (GatewaySetting::getActiveGatewayFriendlyNames() as $gateway => $friendlyName) { $gatewayOptions .= "<option value=\"{$gateway}\" selected>{$friendlyName}</option>"; } $statusOptions = ''; foreach (Invoices::getInvoiceStatusValues() as $invoiceStatusOption) { if ($invoiceStatusOption == 'Unpaid') { $isSelected = 'selected'; } else { $isSelected = ''; } $optionName = $aInt->lang('status', strtolower(str_replace(' ', '', $invoiceStatusOption))); $statusOptions .= "<option value=\"{$invoiceStatusOption}\" {$isSelected}>{$optionName}</option>"; } $reportdata["headertext"] = <<<HTML <form method="post" action="csvdownload.php?type=pdfbatch"> <table class="form" width="100%" border="0" cellspacing="2" cellpadding="3"> <tr> <td width="20%" class="fieldlabel"> Client Name </td> <td class="fieldarea"> {$clientsDropDown} </td> </tr> <tr> <td class="fieldlabel"> Filter By </td> <td class="fieldarea"> <select name="filterby" class="form-control select-inline"> <option>Date Created</option> <option>Due Date</option> <option>Date Paid</option> </select> </td> </tr> <tr> <td class="fieldlabel"> Date Range </td> <td class="fieldarea"> <div class="form-group date-picker-prepend-icon"> <label for="inputFilterDate" class="field-icon"> <i class="fal fa-calendar-alt"></i> </label> <input id="inputFilterDate" type="text" name="range" value="{$range}" class="form-control date-picker-search input-inline" /> </div> </td> </tr> <tr> <td class="fieldlabel"> Payment Methods </td> <td class="fieldarea"> <select name="paymentmethods[]" class="form-control input-250" size="8" multiple="true"> {$gatewayOptions} </select> </td> </tr> <tr> <td class="fieldlabel"> Statuses </td> <td class="fieldarea"> <select name="statuses[]" class="form-control input-150" size="6" multiple="true"> {$statusOptions} </select> </td> </tr> <tr> <td class="fieldlabel"> Sort Order </td> <td class="fieldarea"> <select name="sortorder" class="form-control select-inline"> <option>Invoice ID</option> <option>Invoice Number</option> <option>Date Paid</option> <option>Due Date</option> <option>Client ID</option> <option>Client Name</option> </select> </td> </tr> </table> <p align=center> <input type="submit" value="Download File" class="btn btn-default"> </p> </form> HTML; $report = '';
Upload File
Create Folder