Perubahan NIP petik kolom NIP, NPWP, dan Nomor Rekening semua export excel
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Exports;
|
||||
|
||||
use App\Exports\Concerns\ForcesTextColumns;
|
||||
use App\Models\Rekapitulasi\P1;
|
||||
use App\Models\Rekapitulasi\R13;
|
||||
use App\Models\Rekapitulasi\THR;
|
||||
@@ -11,6 +12,7 @@ use Illuminate\Support\Facades\DB;
|
||||
use Maatwebsite\Excel\Concerns\FromCollection;
|
||||
use Maatwebsite\Excel\Concerns\ShouldAutoSize;
|
||||
use Maatwebsite\Excel\Concerns\WithColumnFormatting;
|
||||
use Maatwebsite\Excel\Concerns\WithCustomValueBinder;
|
||||
use Maatwebsite\Excel\Concerns\WithHeadings;
|
||||
use Maatwebsite\Excel\Concerns\WithMapping;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
@@ -33,8 +35,15 @@ class DetailTotalRemunerasiExport implements WithMultipleSheets
|
||||
}
|
||||
}
|
||||
|
||||
class DetailTotalRemunerasiSheet implements FromCollection, ShouldAutoSize, WithColumnFormatting, WithHeadings, WithMapping, WithStyles, WithTitle
|
||||
class DetailTotalRemunerasiSheet implements FromCollection, ShouldAutoSize, WithColumnFormatting, WithCustomValueBinder, WithHeadings, WithMapping, WithStyles, WithTitle
|
||||
{
|
||||
use ForcesTextColumns;
|
||||
|
||||
protected function nipColumns(): array
|
||||
{
|
||||
return ['C'];
|
||||
}
|
||||
|
||||
protected array $bulanNamas = [
|
||||
1 => 'Januari', 2 => 'Februari', 3 => 'Maret', 4 => 'April',
|
||||
5 => 'Mei', 6 => 'Juni', 7 => 'Juli', 8 => 'Agustus',
|
||||
@@ -124,7 +133,7 @@ class DetailTotalRemunerasiSheet implements FromCollection, ShouldAutoSize, With
|
||||
return [
|
||||
$row['no'],
|
||||
$row['nama'],
|
||||
$row['nip'] !== '' ? "'".$row['nip'] : '',
|
||||
$row['nip'],
|
||||
$row['pangkat'],
|
||||
$row['golongan'],
|
||||
$row['jabatan_fungsional'],
|
||||
|
||||
Reference in New Issue
Block a user