Resolve "Customer source report" #1441

Merged
korina.cordero merged 6 commits from 539-customer-source-report into master 2021-03-02 02:38:45 +00:00
Showing only changes of commit b7c722d8e9 - Show all commits

View file

@ -48,19 +48,9 @@ class GenerateCustomerSourceReportCommand extends Command
$month = $input->getArgument('month');
$csv_file = $input->getArgument('csv_file');
$start_date = DateTime::createFromFormat('Y-m-d', $year . '-' . $month . '-01');
$end_date = DateTime::createFromFormat('Y-m-d', $year . '-' . $month . '-01');
$start_date->setTime(0, 0);
$str_start_date = $start_date->format('Y-m-d H:i:s');
$end_date->modify('last day of this month');
$end_date->setTime(23, 59);
$str_end_date = $end_date->format('Y-m-d H:i:s');
// get all mobile user customer id hash
$resq_cust_ids = $this->getRESQCustomerIDs();
// TODO: error checking for file
$fp = fopen($csv_file, 'w');