Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-tasks
Project
Project
Details
Activity
Releases
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
project-open
intranet-timesheet2-tasks
Commits
760592f4
Commit
760592f4
authored
Aug 10, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Gantt Debugging session
parent
54115ba4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
intranet-timesheet2-tasks-procs.tcl
tcl/intranet-timesheet2-tasks-procs.tcl
+5
-1
task-delete.tcl
www/task-delete.tcl
+14
-10
No files found.
tcl/intranet-timesheet2-tasks-procs.tcl
View file @
760592f4
...
...
@@ -344,6 +344,10 @@ ad_proc -public im_timesheet_task_list_component {
db_foreach task_query_limited
$selection
{
# Replace
"0"
by
""
to make lists better readable
if
{
0 ==
$reported
_hours_cache
}
{
set reported_hours_cache
""
}
if
{
0 ==
$reported
_units_cache
}
{
set reported_units_cache
""
}
# Compatibility...
set description
$note
...
...
@@ -369,7 +373,7 @@ ad_proc -public im_timesheet_task_list_component {
set old_project_id
$project
_id
}
}
append table_body_html
"<tr
$bgcolor
(
[
expr
$ctr
% 2
]
)>
\n
"
foreach column_var
$column
_vars
{
append table_body_html
"
\t
<td valign=top>"
...
...
www/task-delete.tcl
View file @
760592f4
...
...
@@ -28,7 +28,7 @@ foreach old_id $task_id {
set old_hours_list_list
[
db_list_of_lists old_hours
"
select h.user_id as old_user_id,
h.project_id as old_project_id,
h.day as old_day,
h.day
::date
as old_day,
h.hours as old_hours,
h.billing_rate as old_billing_rate,
h.billing_currency as old_billing_currency,
...
...
@@ -58,7 +58,7 @@ foreach old_id $task_id {
set cost_id = null
where user_id = :old_user_id
and project_id = :old_project_id
and day
= :old_day
and day
::date = :old_day::date
"
db_list del_cost_item
"select im_cost__delete(cost_id) from im_costs where cost_id = :old_cost_id"
...
...
@@ -75,7 +75,7 @@ foreach old_id $task_id {
from im_hours h
where h.user_id = :old_user_id
and h.project_id = :new_id
and h.day
= :old_day
and h.day
::date = :old_day::date
"
# Reset the cost_id record of im_hours to null so that we can del the cost item
...
...
@@ -85,7 +85,7 @@ foreach old_id $task_id {
set cost_id = null
where user_id = :old_user_id
and project_id = :new_id
and day
= :old_day
and day
::date = :old_day::date
"
db_list del_cost_item
"select im_cost__delete(cost_id) from im_costs where cost_id = :new_cost_id"
...
...
@@ -93,8 +93,8 @@ foreach old_id $task_id {
db_dml del_new_hours
"
delete from im_hours
where user_id = :old_user_id
and project_id = :
old_project
_id
and day
= :old_day
and project_id = :
new
_id
and day
::date = :old_day::date
"
set hours
[
expr
$old
_hours +
$new
_hours
]
...
...
@@ -103,7 +103,7 @@ foreach old_id $task_id {
# Insert a new im_hours entry with the summed up hours
db_dml insert
"
insert into im_hours (user_id, project_id, day, hours, billing_rate, billing_currency, note)
values (:old_user_id, :
old_project_id, :old_day
, :hours, :old_billing_rate, :old_billing_currency, :note)
values (:old_user_id, :
new_id, :old_day::date
, :hours, :old_billing_rate, :old_billing_currency, :note)
"
}
...
...
@@ -128,11 +128,15 @@ foreach old_id $task_id {
# ToDo: cost-project relationships with acs_rels
}
}
# Create the necessary cost items for the timesheet hours
im_timesheet2_sync_timesheet_costs -project_id
$project
_id
}
# Create the necessary cost items for the timesheet hours
im_timesheet2_sync_timesheet_costs
# Update timesheet caches
im_cost_cache_sweeper
#
# Using "/intranet-timesheet2-tasks/task-action" to the deletion
...
...
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