Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-core
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
sencha-core
Commits
98c2ed0b
Commit
98c2ed0b
authored
Mar 29, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Now rounding Work to 2 decimals
parent
3f5dbaab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
GanttTreePanel.adp
www/view/gantt/GanttTreePanel.adp
+6
-1
No files found.
www/view/gantt/GanttTreePanel.adp
View file @
98c2ed0b
...
...
@@ -197,6 +197,9 @@ Ext.define('PO.view.gantt.GanttTreePanel', {
var planned_units = model.get('planned_units');
if (0 == model.childNodes.length) {
// A leaf task - just show the units
if ("" == planned_units) return "";
var pu = parseFloat(planned_units);
if ("number" == typeof pu) { planned_units = Math.round(100.0 * pu) / 100.0 }
if ("" != planned_units) { planned_units = planned_units + "h"; }
return planned_units;
} else {
...
...
@@ -213,6 +216,8 @@ Ext.define('PO.view.gantt.GanttTreePanel', {
}
}
});
var pu = parseFloat(plannedUnits);
if ("number" == typeof pu) { plannedUnits = Math.round(100.0 * pu) / 100.0 }
return "<b>"+plannedUnits+"h</b>";
}
}},
...
...
@@ -323,7 +328,7 @@ Ext.define('PO.view.gantt.GanttTreePanel', {
store: 'taskCostCenterStore',
displayField: 'cost_center_name',
valueField: 'cost_center_id',
matchFieldWidth: false
matchFieldWidth: false
},
renderer: function(value) {
if ("" == value) return "";
...
...
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