Merged in izztai-feat-pelanggan-aktif (pull request #101)

update buang decimal
This commit is contained in:
izzati zulkifli
2025-05-20 04:53:03 +00:00
@@ -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');
},