mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
Bugfixes Report
x
This commit is contained in:
parent
8fe43e827a
commit
eba98fd51d
@ -170,7 +170,7 @@ final class Bootstrap
|
|||||||
*
|
*
|
||||||
* @return ReportColumnFormatter
|
* @return ReportColumnFormatter
|
||||||
*/
|
*/
|
||||||
public function onInitReportColumnFormatter(ContainerInterface $container): ReportColumnFormatter
|
public static function onInitReportColumnFormatter(ContainerInterface $container): ReportColumnFormatter
|
||||||
{
|
{
|
||||||
return new ReportColumnFormatter();
|
return new ReportColumnFormatter();
|
||||||
}
|
}
|
||||||
|
@ -88,10 +88,16 @@ class ReportPdfExportService extends AbstractReportExportService
|
|||||||
$prepareHeaderLine = false;
|
$prepareHeaderLine = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gettype($columnKey != 'int'))
|
||||||
|
{
|
||||||
|
$columnKey = 0;
|
||||||
|
}
|
||||||
|
$keyint = $columnKey + 1;
|
||||||
|
|
||||||
$columnCounter = 0;
|
$columnCounter = 0;
|
||||||
foreach($row as $columnKey=>$columnValue){
|
foreach($row as $columnKey=>$columnValue){
|
||||||
$pdf->Cell($colWidths[$columnCounter],6,$this->stringReadyForPdf($columnValue),'LRTB',0,$colAligns[$columnCounter],true);
|
$pdf->Cell($colWidths[$columnCounter],6,$this->stringReadyForPdf($columnValue),'LRTB',0,$colAligns[$columnCounter],true);
|
||||||
if(!empty($sumcolsa) && in_array($columnKey+1,$sumcolsa, false))
|
if(!empty($sumcolsa) && in_array($keyint,$sumcolsa, false))
|
||||||
{
|
{
|
||||||
if(empty($sums[$columnKey])){
|
if(empty($sums[$columnKey])){
|
||||||
$sums[$columnKey] = 0;
|
$sums[$columnKey] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user