update buang decimal

This commit is contained in:
BTMS2
2025-05-20 12:52:10 +08:00
parent 61d4b056e1
commit 5d17c47f7e
@@ -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');
},