I am wondering how the black bar in the Gantt Charts is defined. While Milestones and tasks are clear, I would like to adjust also the black bar in the Gantt charts, but it seems that I cannot change it. To which Database entry is it related, than I could just change the date in the database,
thx, Dominik
Start date is creation date of the project.
End date is current date as there is no end/due date field on project level.
Basically we should add start and end date to project to manage this more properly.
I noticed there is a field "completed_on" the project level, which would be very userful as enddate for the Gantt Chart. Your conclusion to be able to manage a start and end date would be great, if we could alter the query for the Gantt chart to define the enddate with "completed_on", we could initially set those dates by hand in the database. I did that for the last August projects, which already gives the Gantt Chart a clearer structure, you´ll find it under http://www.intersein.net/pp087/index.php?c=reports&a=index&active_project=40&1313682907 or in the attached jpg
I guess it would be a change in that code in report.class.php:
/*
* There is no start date in project i take the created date project
* fields "created_on"
*/
//start date project
$rows = $start_row;
$start_date = Localization::instance()->formatDate($project->getCreatedOn(),0,"Y-m-d");
$project_name = $project->getName();
$label = lang('project') . ': ' . substr(utf8_decode($project_name),0,40);
where the below lines could be changed to something like getCompleted on() ... but as you know I am now php programmer...maybe I should start to learn some basics sometime ... :-)
//$mydate = date('Y-m-d');
$mydate = Localization::instance()->formatDate($project->getCompletedOn(),0,"Y-m-d");
$data = array(
array($rows++,ACTYPE_GROUP,$label,$start_date,$mydate,'')
);
$graph->SetSimpleFont(FF_FONT1,FS_BOLD,18);
$graph->CreateSimple($data);
Thx