Error percentage (status) Project

View: New views
1 Messages — Rating Filter:   Alert me  

Error percentage (status) Project

by Leeny78 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The percentage (status) of completion of a project is different if I see it as part of a project (menuaction=projectmanager.projectmanager_ui.index) to
if I see it as an element(menuaction=projectmanager.projectmanager_elements_ui.index&pm_id). To resolve this problem I changed the pm_completation. I modified the calculation in this way (I add): (module class.projectmanager_ui.inc.php function db2data)
if (isset($data['pm_id']))
{
        if ($data['pm_planned_time'])
             if ($data['pm_replanned_time'])
                $data['pm_completion'] = round($data['pm_used_time'] *100/ $data['pm_replanned_time'],1);
             else
                $data['pm_completion'] = round($data['pm_used_time'] *100/ $data['pm_planned_time'],1);
}

Correct?
Verison EGW: 1.6.002