Maintenance DBH dan DAK
This commit is contained in:
@@ -4,10 +4,18 @@ use App\Models\TempRealisasiBelanja;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\Importable;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class RealisasiBelanjaImport implements ToModel, WithStartRow
|
||||
{
|
||||
use Importable;
|
||||
protected $jenisDana;
|
||||
protected $subjenisDana;
|
||||
|
||||
public function __construct($jenisDana, $subjenisDana){
|
||||
$this->jenisDana = $jenisDana;
|
||||
$this->subjenisDana = $subjenisDana;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
@@ -30,11 +38,12 @@ class RealisasiBelanjaImport implements ToModel, WithStartRow
|
||||
"nama_sub_kegiatan"=>$row[10],
|
||||
"kode_rsk"=>$row[11],
|
||||
"nama_rsk"=>$row[12],
|
||||
// "kode_rekening"=>$row[13],
|
||||
// "nama_rekening"=>$row[14],
|
||||
"jumlah_anggaran"=>$row[13],
|
||||
"volume_satuan"=>$row[14],
|
||||
"unit_satuan"=>$row[15]
|
||||
"unit_satuan"=>$row[15],
|
||||
"jenis_dana"=>$this->jenisDana,
|
||||
"sub_jenis_dana"=>$this->subjenisDana,
|
||||
"userid"=>Auth::user()->id
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user