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
9c3ec069
Commit
9c3ec069
authored
Oct 05, 2005
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Opus5 Fixes.
- Added default for new-page for im_timesheet_tasks for CostCenter and Material
parent
fd17e99c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
new.tcl
www/new.tcl
+24
-0
No files found.
www/new.tcl
View file @
9c3ec069
...
...
@@ -99,6 +99,30 @@ ad_form \
ad_form -extend -name task -on_request
{
# Populate elements from local variables
# ToDo: Check if these queries get too slow if the
# system is in use during a lot of time...
# Set default UoM to Hour
set uom_id
[
im_uom_hour
]
# Set default CostCenter to most used CostCenter
set cost_center_id
[
db_string default_cost_center
"
select cost_center_id
from im_timesheet_tasks
group by cost_center_id
order by count(*) DESC
limit 1
"
-default
""
]
# Set default Material to most used Material
set material_id
[
db_string default_cost_center
"
select material_id
from im_timesheet_tasks
group by material_id
order by count(*) DESC
limit 1
"
-default
""
]
}
-select_query
{
select m.*
...
...
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