|
|
|
@ -5,7 +5,6 @@ use App\Libraries\AldLibrary;
|
|
|
|
|
use App\Libraries\KpdlLibrary; |
|
|
|
|
|
|
|
|
|
class Perubahan extends \App\Controllers\Kewilayahan\Kytp |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
protected function dataPerilakuPembayaran($request) |
|
|
|
|
{ |
|
|
|
@ -90,7 +89,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
|
|
|
|
|
->where('A.NIP_AR_PENGAMPU', session('nip')) |
|
|
|
|
->where('A.KPPADM_PENGAMPU', session('kppadm')) |
|
|
|
|
->groupEnd(); |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi |
|
|
|
|
//zona |
|
|
|
|
$npwp->orGroupStart() |
|
|
|
|
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) |
|
|
|
@ -109,7 +108,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
|
|
|
|
|
->where('C.KPPADM', session('kppadm')) |
|
|
|
|
->where('A.KPPADM_PENGAMPU', session('kppadm')) |
|
|
|
|
->groupEnd(); |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor |
|
|
|
|
//zona |
|
|
|
|
$npwp->orGroupStart() |
|
|
|
|
->where('A.KPPADM_ZONA', session('kppadm')) |
|
|
|
@ -221,7 +220,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
|
|
|
|
|
->where('A.NIP_AR_PENGAMPU', session('nip')) |
|
|
|
|
->where('A.KPPADM_PENGAMPU', session('kppadm')) |
|
|
|
|
->groupEnd(); |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi |
|
|
|
|
//zona |
|
|
|
|
$npwp->orGroupStart() |
|
|
|
|
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) |
|
|
|
@ -240,7 +239,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
|
|
|
|
|
->where('C.KPPADM', session('kppadm')) |
|
|
|
|
->where('A.KPPADM_PENGAMPU', session('kppadm')) |
|
|
|
|
->groupEnd(); |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor |
|
|
|
|
//zona |
|
|
|
|
$npwp->orGroupStart() |
|
|
|
|
->where('A.KPPADM_ZONA', session('kppadm')) |
|
|
|
@ -353,7 +352,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
|
|
|
|
|
->where('A.NIP_AR_PENGAMPU', session('nip')) |
|
|
|
|
->where('A.KPPADM_PENGAMPU', session('kppadm')) |
|
|
|
|
->groupEnd(); |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi |
|
|
|
|
//zona |
|
|
|
|
$npwp->orGroupStart() |
|
|
|
|
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) |
|
|
|
@ -372,7 +371,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
|
|
|
|
|
->where('C.KPPADM', session('kppadm')) |
|
|
|
|
->where('A.KPPADM_PENGAMPU', session('kppadm')) |
|
|
|
|
->groupEnd(); |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor |
|
|
|
|
//zona |
|
|
|
|
$npwp->orGroupStart() |
|
|
|
|
->where('A.KPPADM_ZONA', session('kppadm')) |
|
|
|
@ -483,7 +482,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
|
|
|
|
|
->where('A.NIP_AR_PENGAMPU', session('nip')) |
|
|
|
|
->where('A.KPPADM_PENGAMPU', session('kppadm')) |
|
|
|
|
->groupEnd(); |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi |
|
|
|
|
//zona |
|
|
|
|
$npwp->orGroupStart() |
|
|
|
|
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) |
|
|
|
@ -502,7 +501,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
|
|
|
|
|
->where('C.KPPADM', session('kppadm')) |
|
|
|
|
->where('A.KPPADM_PENGAMPU', session('kppadm')) |
|
|
|
|
->groupEnd(); |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor |
|
|
|
|
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor |
|
|
|
|
//zona |
|
|
|
|
$npwp->orGroupStart() |
|
|
|
|
->where('A.KPPADM_ZONA', session('kppadm')) |
|
|
|
|