support multi-line values in excel invoices (#1507)

This commit is contained in:
Kevin Papst
2020-02-29 20:06:45 +01:00
committed by GitHub
parent ec31d206e2
commit 72b73bc9a6
6 changed files with 65 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ namespace App\Invoice\Renderer;
use App\Entity\InvoiceDocument;
use App\Invoice\InvoiceModel;
use PhpOffice\PhpSpreadsheet\Cell\Cell;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
@@ -59,6 +60,8 @@ abstract class AbstractSpreadsheetRenderer extends AbstractRenderer
$entryRow = 0;
Cell::setValueBinder(new AdvancedValueBinder());
foreach ($worksheet->getRowIterator() as $row) {
$sheetValues = false;
foreach ($row->getCellIterator() as $cell) {