Commit 0490b471 authored by Anthony Geourjon's avatar Anthony Geourjon
Browse files

Fix tax percentage bug on the gantt

parent b9ae5cbd
......@@ -113,9 +113,25 @@ root.controller('TaskOverviewCtrl', ['$scope', '$stateParams','$http', '$interva
//if(task.maxDate) task.maxDate = task.maxDate.substring(0,task.maxDate.indexOf(" "));
//if(task.beginDate) task.beginDate = task.beginDate.substring(0,task.beginDate.indexOf(" "));
if(!task.totalProgress) task.totalProgress=0;
/*if(!task.totalProgress)
task.totalProgress=0;*/
if(!task.totalProgress) {
task.totalProgress=0;
}
if(task.work) {
task.totalProgress = task.work.reduce(function(acc,e){
acc += e.totalProgress;
return acc;
}, 0);
}
task.totalProgress = Math.max(0,Math.min(100,task.totalProgress));
if(task.totalProgress>=100 && task.column<4) {
if(task.totalProgress>=100 && task.column<4) {
task.column=3;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment