root пре 4 година
родитељ
комит
aa46f68655
2 измењених фајлова са 51 додато и 50 уклоњено
  1. 49
    48
      app/Http/Controllers/Api/CompoundResourceController.php
  2. 2
    2
      app/Jobs/StoreCompoundEPBT.php

+ 49
- 48
app/Http/Controllers/Api/CompoundResourceController.php Прегледај датотеку

'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => '03', "modul" => '03',
"penguatkuasa" => '',
"penguatkuasa" => '-',
"cpn_created" => Carbon::now()->toDateTimeString(), "cpn_created" => Carbon::now()->toDateTimeString(),
]; ];
$kpd = $request->kpd; $kpd = $request->kpd;


$compound = Compound::where('jenis', $request->jenis)->where('kpd', $kpd)->first(); $compound = Compound::where('jenis', $request->jenis)->where('kpd', $kpd)->first();
dd($compound);
if (!empty($compound)) { if (!empty($compound)) {


'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"notis_created" => Carbon::now()->toDateTimeString(), "notis_created" => Carbon::now()->toDateTimeString(),
]; ];
}elseif($request->jenis == 'Pelbagai_KT'){ }elseif($request->jenis == 'Pelbagai_KT'){
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => '03', "modul" => '03',
"penguatkuasa" => '',
"penguatkuasa" => '-',
"cpn_created" => Carbon::now()->toDateTimeString(), "cpn_created" => Carbon::now()->toDateTimeString(),
]; ];
} }
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
"tindakan" => '',
"tempoh" => '',
"tindakan" => '-',
"tempoh" => '-',
"notis_created" => Carbon::now()->toDateTimeString(), "notis_created" => Carbon::now()->toDateTimeString(),
]; ];
} }
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
"tindakan" => '',
"tempoh" => '',
"tindakan" => '-',
"tempoh" => '-',
"notis_created" => Carbon::now()->toDateTimeString(), "notis_created" => Carbon::now()->toDateTimeString(),
]; ];
} }
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',
'akta' => $faulty->deed_law_id, 'akta' => $faulty->deed_law_id,
'seksyen_kesalahan' => $faulty->_id, 'seksyen_kesalahan' => $faulty->_id,
'jumlah_asal_kompaun' => $faulty->amount, 'jumlah_asal_kompaun' => $faulty->amount,
'jumlah_kemaskini_kompaun' => '',
'jumlah_kemaskini_kompaun' => '-',
'dikeluarkan' => $staff->_id, 'dikeluarkan' => $staff->_id,
"status" => 'Belum Bayar', "status" => 'Belum Bayar',
"amount_payment" => '',
"receipt" => '',
"amount_payment" => '-',
"receipt" => '-',
"modul" => $request->modul, "modul" => $request->modul,
"penguatkuasa" => '',
"penguatkuasa" => '-',
"no_telefon" => $request->tel, "no_telefon" => $request->tel,
"no_akaun_lesen" => $request->lesen, "no_akaun_lesen" => $request->lesen,
"maklumat_tambahan" => '-', "maklumat_tambahan" => '-',

+ 2
- 2
app/Jobs/StoreCompoundEPBT.php Прегледај датотеку



if($epbt_faulty){ if($epbt_faulty){


info($epbt_faulty[0]->kesalahan);
info($epbt_faulty);
$roads = CodeMukim::where('MKM_MNAMA', $compound['nama_kawasan'])->first(); $roads = CodeMukim::where('MKM_MNAMA', $compound['nama_kawasan'])->first();


array_push($k, array_push($k,
strtoupper($this->kpd), //no kompaun strtoupper($this->kpd), //no kompaun
'TES' //strtoupper($kod_kompaun), //kodKompaun
'TES', //strtoupper($kod_kompaun), //kodKompaun
$compound->Deedlaw->akkod, //kod akta $compound->Deedlaw->akkod, //kod akta
strtoupper($compound->Faulty->nama), //keterangan kesalahan strtoupper($compound->Faulty->nama), //keterangan kesalahan
$compound->created_at->toDateString(), //tarikh $compound->created_at->toDateString(), //tarikh

Loading…
Откажи
Сачувај