Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-reporting
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-reporting
Commits
88a0da1a
Commit
88a0da1a
authored
Oct 10, 2019
by
cosine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed new times + absences report per month
parent
9e9ad8af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
timesheet-monthly-hours-absences2.tcl
www/timesheet-monthly-hours-absences2.tcl
+23
-19
No files found.
www/timesheet-monthly-hours-absences2.tcl
View file @
88a0da1a
...
...
@@ -13,7 +13,6 @@ ad_page_contract {
{
level_of_detail 3
}
{
output_format
"html"
}
{
report_user_id 0
}
{
report_project_status_id 76
}
{
daily_hours 0
}
{
different_from_project_p
""
}
{
report_cost_center_id 0
}
...
...
@@ -107,10 +106,6 @@ if {$different_from_project_p eq ""} {
set
criteria
[
list
]
if
{
$report
_project_status_id ne
""
&&
$report
_project_status_id > 0
}
{
lappend criteria
"p.report_project_status_id in (
[
join
[
im_sub_categories
$report
_project_status_id
]
","
]
)"
}
if
{
0 ne
$report
_user_id &&
""
ne
$report
_user_id
}
{
lappend criteria
"u.user_id = :report_user_id"
}
...
...
@@ -248,18 +243,35 @@ set project_vars {
}
set
user_header
{
"
\#
colspan=44 <a href=
$this
_url&user_id=
$user
_id&level_of_detail=3
target=_blank><img src=/intranet/images/plus_9.gif width=9 height=9 border=0></a>
<b><a href=
$user
_url
$user
_id>
$user
_name</a></b>"
}
set
user_footer
{
""
""
}
# Add rows for days
set
counters
[
list
]
for
{
set
d 1
}
{
$d
<=
$report
_year_month_days_in_month
}
{
incr
d
}
{
lappend header0
"Day
$d
"
lappend project_vars
"
\$
hours_
$d
"
}
set
user_header
{
"
\#
colspan=44 <a href=
$this
_url&user_id=
$user
_id&level_of_detail=3
target=_blank><img src=/intranet/images/plus_9.gif width=9 height=9 border=0></a>
<b><a href=
$user
_url
$user
_id>
$user
_name</a></b>"
set counter
[
list
\
pretty_name
"Hours day_
$d
"
\
var hours_$
{
d
}
_subtotal
\
reset
\$
user_id
\
expr
"
\$
hours_
${d}
+0"
\
]
lappend counters
$counter
lappend user_footer
"<b>
\$
hours_
${d}
_subtotal</b>"
}
# Disable project headers for CSV output
# in order to create one homogenous exportable lst
if
{
"csv"
==
$output
_format
}
{
set project_header
""
}
...
...
@@ -275,7 +287,7 @@ set report_def [list \
header
$project
_vars
\
content
{}
\
]
\
footer
{}
\
footer
$user
_footer
\
]
# Global Footer Line
...
...
@@ -321,12 +333,6 @@ switch $output_format {
[
im_user_select -include_empty_p 1 report_user_id
$report
_user_id
]
</td>
</tr>
<tr>
<td class=form-label>Project Status</td>
<td class=form-widget>
[
im_category_select -include_empty_p 1
"Intranet Project Status"
report_project_status_id
""
]
</td>
</tr>
<tr>
<td class=form-label>Format</td>
<td class=form-widget>
...
...
@@ -371,8 +377,6 @@ set absence_array_list [list]
set
last_value_list
[
list
]
set
class
"rowodd"
set
counters
[
list
]
#------------------------
# Initialize
...
...
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