Skip to content

Commit

Permalink
handtekening onder excel
Browse files Browse the repository at this point in the history
  • Loading branch information
qr committed Sep 15, 2020
1 parent 26f6707 commit e1f5d33
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Controller/AppDossierController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,8 @@ private function schuldenAsExcel(Dossier $dossier): Spreadsheet

$sheet->getStyleByColumnAndRow(1, 1, 8, 1)->getFont()->setBold(true);

$rowIndex = 0;

foreach (array_values($dossier->getSchuldItemsNotInPrullenbak()->toArray()) as $rowIndex => $schuldItem) {
/** @var $schuldItem SchuldItem */
$rowIndex = $rowIndex + 2; // one-based instead of zero-based and one for the header
Expand Down Expand Up @@ -1181,6 +1183,11 @@ private function schuldenAsExcel(Dossier $dossier): Spreadsheet
$sheet->setCellValueByColumnAndRow(3, $rowIndex, $dossier->getSumSchuldItemsNotInPrullenbak());
$sheet->getStyleByColumnAndRow(3, $rowIndex)->getNumberFormat()->setFormatCode('"€"#,##0.00_-');

$rowIndex = $rowIndex+4;

$sheet->setCellValueByColumnAndRow(1, $rowIndex, 'Naam:');
$sheet->setCellValueByColumnAndRow(4, $rowIndex, 'Datum:');
$sheet->setCellValueByColumnAndRow(6, $rowIndex, 'Handtekening:');

$sheet->getColumnDimensionByColumn(1)->setAutoSize(true);
$sheet->getColumnDimensionByColumn(2)->setAutoSize(true);
Expand Down

0 comments on commit e1f5d33

Please sign in to comment.