Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dockers
3f-timesheet
Commits
370e76f2
Commit
370e76f2
authored
Mar 15, 2024
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
email approval, add checking condition, timesheet master sts 3
parent
8bf72fa7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
app/Console/Commands/Approval.php
+3
-0
packages/portal/timesheet/src/Model/VwTpStatus.php
+6
-0
No files found.
app/Console/Commands/Approval.php
View file @
370e76f2
...
@@ -78,6 +78,9 @@ class Approval extends Command
...
@@ -78,6 +78,9 @@ class Approval extends Command
->
where
(
'tp_project_type'
,
1
)
->
where
(
'tp_project_type'
,
1
)
->
with
(
'pelulus'
)
->
with
(
'pelulus'
)
->
with
(
'staffdetails'
)
->
with
(
'staffdetails'
)
->
whereHas
(
'tm'
,
function
(
$query
)
{
$query
->
where
(
'tm_timesheet_master_sts'
,
3
);
})
->
distinct
()
->
distinct
()
->
get
();
->
get
();
...
...
packages/portal/timesheet/src/Model/VwTpStatus.php
View file @
370e76f2
...
@@ -4,6 +4,7 @@ namespace Portal\Timesheet\Model;
...
@@ -4,6 +4,7 @@ namespace Portal\Timesheet\Model;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Notifications\Notifiable
;
use
Illuminate\Notifications\Notifiable
;
use
Portal\Timesheet\Model\Ts_master
;
class
VwTpStatus
extends
Model
class
VwTpStatus
extends
Model
{
{
...
@@ -36,6 +37,11 @@ class VwTpStatus extends Model
...
@@ -36,6 +37,11 @@ class VwTpStatus extends Model
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Staff_info'
,
'fk_users'
,
'tp_pd'
);
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Staff_info'
,
'fk_users'
,
'tp_pd'
);
}
}
public
function
tm
()
{
return
$this
->
hasOne
(
Ts_master
::
class
,
'id'
,
'fk_tm_id'
);
}
/**
/**
* undocumented function
* undocumented function
*
*
...
...
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