From 5d17c47f7e5abd44cd515a6b1e4b2b2416869b13 Mon Sep 17 00:00:00 2001 From: BTMS2 Date: Tue, 20 May 2025 12:52:10 +0800 Subject: [PATCH] update buang decimal --- .../LaporanKeseluruhan/PelangganaktifAllExportExcel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Exports/LaporanKeseluruhan/PelangganaktifAllExportExcel.php b/app/Exports/LaporanKeseluruhan/PelangganaktifAllExportExcel.php index 853d0fa..96d8889 100644 --- a/app/Exports/LaporanKeseluruhan/PelangganaktifAllExportExcel.php +++ b/app/Exports/LaporanKeseluruhan/PelangganaktifAllExportExcel.php @@ -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'); },