diff --git a/src/Command/GenerateCustomerSourceReportCommand.php b/src/Command/GenerateCustomerSourceReportCommand.php index a3f85c4a..893fe6ed 100644 --- a/src/Command/GenerateCustomerSourceReportCommand.php +++ b/src/Command/GenerateCustomerSourceReportCommand.php @@ -77,6 +77,23 @@ class GenerateCustomerSourceReportCommand extends Command 'year' => $year, ]); + // add header rows + fputcsv($fp, [ + 'Customer ID', + 'First Name', + 'Last Name', + 'Mobile Phone', + 'Landline', + 'Office Phone', + 'Fax', + 'Email Address', + 'Vehicle Manufacturer', + 'Vehicle Make', + 'Model Year', + 'Plate Number', + 'Source', + ]); + // go through rows while ($row = $stmt->fetch(PDO::FETCH_NUM)) {