Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sipeka
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
sipeka
Commits
8fbeaac1
Commit
8fbeaac1
authored
May 16, 2024
by
Siti Aisah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tes error nik
parent
93f8f257
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
app/Http/Controllers/Admin/TransaksiController.php
+10
-10
No files found.
app/Http/Controllers/Admin/TransaksiController.php
View file @
8fbeaac1
...
@@ -99,7 +99,7 @@ public function store(Request $request){
...
@@ -99,7 +99,7 @@ public function store(Request $request){
foreach
(
$reviewer
as
$r
){
foreach
(
$reviewer
as
$r
){
$isdm
=
DB
::
connection
(
'isdm'
)
->
table
(
'v_detil_pegawai'
)
->
where
(
'noktp'
,
$r
->
nik
)
->
select
(
'namalengkap'
,
'nip'
)
->
first
();
$isdm
=
DB
::
connection
(
'isdm'
)
->
table
(
'v_detil_pegawai'
)
->
where
(
'noktp'
,
$r
->
nik
)
->
select
(
'namalengkap'
,
'nip'
)
->
first
();
if
(
!
empty
(
$isdm
)){
//
if(!empty($isdm)){
$saku
=
[
$saku
=
[
'id_pengajuan'
=>
$hasil
->
id
,
'id_pengajuan'
=>
$hasil
->
id
,
...
@@ -108,14 +108,14 @@ public function store(Request $request){
...
@@ -108,14 +108,14 @@ public function store(Request $request){
'nip'
=>
$isdm
->
nip
'nip'
=>
$isdm
->
nip
];
];
}
else
{
//
} else {
$saku
=
[
//
$saku = [
'id_pengajuan'
=>
$hasil
->
id
,
//
'id_pengajuan' => $hasil->id,
'nik'
=>
$r
->
nik
,
//
'nik' => $r->nik,
'nama'
=>
$r
->
penelaah
,
//
'nama' => $r->penelaah,
'nip'
=>
'NIK belum terdaftar di ISDM. Silakan update ke Kepegawaian.'
//
'nip' => 'NIK belum terdaftar di ISDM. Silakan update ke Kepegawaian.'
];
//
];
}
//
}
Penelaah
::
query
()
->
create
(
$saku
);
Penelaah
::
query
()
->
create
(
$saku
);
}
}
...
@@ -130,7 +130,7 @@ public function store(Request $request){
...
@@ -130,7 +130,7 @@ public function store(Request $request){
DB
::
rollBack
();
DB
::
rollBack
();
return
Redirect
::
route
(
'transaksi.index'
)
return
Redirect
::
route
(
'transaksi.index'
)
->
with
(
'error'
,
'
Data kategori gagal diupdate
'
);
->
with
(
'error'
,
'
NIK tidak terdaftar, silakan update di ISDM
'
);
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment