Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2
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
1
Merge Requests
1
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
Commits
32fa5cdb
Commit
32fa5cdb
authored
Jul 08, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed rounding error in capacity planning report
parent
0c5eae26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
capacity-planning.tcl
www/absences/capacity-planning.tcl
+5
-6
No files found.
www/absences/capacity-planning.tcl
View file @
32fa5cdb
...
...
@@ -268,20 +268,19 @@ append table_main_html "</tbody></table></td>"
db_foreach projects_info_query
$title
_sql
{
if
{
$workload
ne
""
}
{
set workload_formatted
[
expr
[
round_down
[
expr
{
$workload
/
[
concat
$work
_days$floating_point_helper
]}]
100
]
* 100
]
set workload_formatted
[
string
range
$workload
_formatted 0
[
string
length
$workload
_formatted
]
-3
]
if
{
$workload
ne
""
}
{
set workload_formatted
[
expr
round
(
1000.0 *
$workload
/
$work
_days
)
/ 10.0
]
}
else
{
set workload_formatted 0
set workload 0
set workload_formatted 0
}
if
{
$workload
_formatted > 100
}
{
if
{
$workload
_formatted > 100
}
{
set workload_formatted
"<span style='color:red;font-weight:bold'>
$workload
_formatted%</span>"
}
else
{
set workload_formatted
"
$workload
_formatted%"
}
if
{
[
expr
{
$work
_days-$workload
}]
< 0
}
{
if
{[
expr
{
$work
_days-$workload
}]
< 0
}
{
set capacity_formatted
"<span style='color:red;font-weight:bold'>
[
expr
{
$work
_days-$workload
}]
</span>"
}
else
{
set capacity_formatted
[
expr
{
$work
_days-$workload
}]
...
...
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