update buang decimal
This commit is contained in:
@@ -48,7 +48,7 @@ class PelangganaktifAllExportExcel implements FromCollection, WithHeadings, With
|
||||
$this->counter++,
|
||||
$row['kodcaw'] ?? '',
|
||||
$row['details_caw'] ?? '',
|
||||
number_format($jumlah, 2),
|
||||
$jumlah,
|
||||
];
|
||||
}
|
||||
public function startCell(): string
|
||||
@@ -80,7 +80,7 @@ class PelangganaktifAllExportExcel implements FromCollection, WithHeadings, With
|
||||
|
||||
$event->sheet->mergeCells("A{$lastRow}:C{$lastRow}");
|
||||
$event->sheet->setCellValue("A{$lastRow}", 'Jumlah Keseluruhan');
|
||||
$event->sheet->setCellValue("D{$lastRow}", number_format($this->total, 2));
|
||||
$event->sheet->setCellValue("D{$lastRow}", $this->total);
|
||||
$event->sheet->getStyle("A{$lastRow}:D{$lastRow}")->getFont()->setBold(true);
|
||||
$event->sheet->getStyle("A{$lastRow}:D{$lastRow}")->getAlignment()->setHorizontal('right');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user