Skip to content

Commit 3d337f6

Browse files
committed
fixed column not marked as currency correctly
1 parent 8ccf158 commit 3d337f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExcelGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function applyColumnFormat(): void
323323

324324
//needed for currencies
325325
if (null !== ($formatCode = $formatter->getFormatCode())) {
326-
$format['formatCode'] = $formatCode;
326+
$format['numberFormat']['formatCode'] = $formatCode;
327327
}
328328

329329
$sheet->getStyle($column->getName() . ':' . $column->getName())

0 commit comments

Comments
 (0)