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
3bcf92d4
Commit
3bcf92d4
authored
Jun 02, 2023
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove tproject = 0
parent
78e2b3d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
packages/portal/timesheet/src/Http/Controllers/FormController.php
+13
-13
No files found.
packages/portal/timesheet/src/Http/Controllers/FormController.php
View file @
3bcf92d4
...
@@ -445,18 +445,18 @@ class FormController extends Controller
...
@@ -445,18 +445,18 @@ class FormController extends Controller
->
where
(
'tp_hours'
,
0
)
->
where
(
'tp_hours'
,
0
)
->
first
();
->
first
();
//
if ($zeroedproject)
if
(
$zeroedproject
)
//
{
{
//
Tproject::where('fk_tm_id', $tmasterid)
Tproject
::
where
(
'fk_tm_id'
,
$tmasterid
)
//
->where('td_project', $projectid)
->
where
(
'td_project'
,
$projectid
)
//
->where('tp_hours', 0)
->
where
(
'tp_hours'
,
0
)
//
->delete();
->
delete
();
// Ts_detail::where('fk_tm_id', $tmasterid)
// Ts_detail::where('fk_tm_id', $tmasterid)
// ->where('td_project', $projectid)
// ->where('td_project', $projectid)
// ->where('td_hours', 0)
// ->where('td_hours', 0)
// ->delete();
// ->delete();
//
}
}
}
}
// Ts_detail::where('td_hours', 0)
// Ts_detail::where('td_hours', 0)
...
@@ -1805,7 +1805,7 @@ class FormController extends Controller
...
@@ -1805,7 +1805,7 @@ class FormController extends Controller
{
{
if
(
$zeroedproject
->
tp_hours
==
'0'
)
if
(
$zeroedproject
->
tp_hours
==
'0'
)
{
{
//
$zeroedproject->delete();
$zeroedproject
->
delete
();
}
}
}
}
...
@@ -2453,16 +2453,16 @@ class FormController extends Controller
...
@@ -2453,16 +2453,16 @@ class FormController extends Controller
// ->where('td_hours', 0)
// ->where('td_hours', 0)
// ->delete();
// ->delete();
//
if ($zeroedproject)
if
(
$zeroedproject
)
//
{
{
//
Tproject::where('id', $request->tpid)
Tproject
::
where
(
'id'
,
$request
->
tpid
)
//
->delete();
->
delete
();
// Ts_detail::where('fk_tm_id', $tmasterid)
// Ts_detail::where('fk_tm_id', $tmasterid)
// ->where('td_project', data_get($zeroedproject,'td_project'))
// ->where('td_project', data_get($zeroedproject,'td_project'))
// // ->where('td_hours', 0)
// // ->where('td_hours', 0)
// ->delete();
// ->delete();
//
}
}
// dd($datasat);
// dd($datasat);
}
}
...
...
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