v.2.27
Fixed reports
This commit is contained in:
@@ -10,7 +10,7 @@ class GETReports extends HRCCommand implements HRCCommandInterface {
|
||||
protected $signature = 'getreports';
|
||||
|
||||
public function command($input, $output = null) {
|
||||
$reports = Report::all();
|
||||
$reports = Report::select('id', 'name', 'report_type', 'start_date', 'end_date')->orderBy('id', 'desc')->get();
|
||||
if ($reports) {
|
||||
foreach ($reports as $key => $report) {
|
||||
$data[] = array(
|
||||
|
||||
Reference in New Issue
Block a user