Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sibiling
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syaifur
sibiling
Commits
a0bc6837
Commit
a0bc6837
authored
Oct 23, 2024
by
syaifurplus
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' of
https://git.dinustek.com/syaifurplus/sibiling
into development
parents
ccc2f943
36fa53e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
ImportTransaksi.php
app/Libraries/ShouldQueue/ImportTransaksi.php
+4
-6
No files found.
app/Libraries/ShouldQueue/ImportTransaksi.php
View file @
a0bc6837
...
...
@@ -17,7 +17,7 @@ use Maatwebsite\Excel\Facades\Excel;
class
ImportTransaksi
{
public
static
function
isNewTeacher
(
$nip
,
$name
)
public
static
function
isNewTeacher
(
$nip
,
$n
uptk
,
$n
ame
)
{
$result
=
[];
$newTeacher
=
true
;
...
...
@@ -25,14 +25,12 @@ class ImportTransaksi
$status
=
1
;
$status_user
=
1
;
$isGuru
=
ImportDapodikGuruModel
::
where
(
'nip'
,
$nip
)
->
first
();
$isGuru
=
ImportDapodikGuruModel
::
where
(
'nip'
,
$nip
)
->
orWhere
(
'nuptk'
,
$nuptk
)
->
first
();
if
(
isset
(
$isGuru
))
{
// $newTeacher = false;
$newMsg
=
"Data dengan NIP "
.
$nip
.
" sudah ada !"
;
$status
=
2
;
}
if
(
!
is_numeric
(
$nip
)
||
$nip
==
null
||
strlen
(
$nip
)
<
10
)
{
}
else
if
(
!
is_numeric
(
$nip
)
||
$nip
==
null
||
strlen
(
$nip
)
<
10
)
{
$newTeacher
=
false
;
$newMsg
=
"Data dengan NIP "
.
$nip
.
" bukan numeric, data kosong atau nip kurang dari 10 !"
;
$status
=
0
;
...
...
@@ -85,7 +83,7 @@ class ImportTransaksi
public
static
function
importGuruSplit
(
$data
)
{
$isNewTeacher
=
self
::
isNewTeacher
(
$data
[
'nip'
],
$data
[
'nama'
]);
$isNewTeacher
=
self
::
isNewTeacher
(
$data
[
'nip'
],
$data
[
'n
uptk'
],
$data
[
'n
ama'
]);
$dataArray
=
[
'idUser'
=>
$data
[
'idUser'
],
...
...
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