Merge fix for reports

This commit is contained in:
Hillel Coren 2017-12-11 13:03:28 +02:00
parent 1bbd36232c
commit c7cb72546f

View File

@ -202,6 +202,7 @@ class ReportController extends BaseController
$sheet->setAutoSize(true);
});
if (count($summary)) {
$excel->sheet(trans("texts.totals"), function($sheet) use($report, $summary, $format) {
$sheet->setOrientation('landscape');
$sheet->freezeFirstRow();
@ -221,6 +222,7 @@ class ReportController extends BaseController
});
$sheet->setAutoSize(true);
});
}
})->export($format);
}