Menu

#307 Project Status

current_version
closed
nobody
None
5
2016-01-31
2005-07-01
bjorn2404
No

Maybe I'm missing something here but when I go to
create a project a status bar and dropdown list doesn't
come up.

The only things that show in appointments are "started"
and "target date"

Discussion

  • Oscar

    Oscar - 2005-08-09

    Logged In: YES
    user_id=1309205

    I've had the same problem, but after looking at the code I
    found this works different than the manual describes; I
    assume this is new in the current release but not yet
    documented.

    There's no way to set the status manually; it's done
    automatic by calculating the estimated work hours and the
    completed work hours; it that's more than 0%, the project
    started.

    There's a bug however, due to which hours are only
    calculated when a task is finished.
    You can fix this easily:
    Open modules/projects/inc/projects_func.inc.php
    Go to line 376; there you'll find the line:
    $Qdone = "SELECT SUM(hours) as done FROM mgw_projects_tasks
    WHERE project_id=".(int)$id." AND status=0";

    Change that to:
    $Qdone = "SELECT SUM(usedhours) as done FROM
    mgw_projects_tasks WHERE project_id=".(int)$id;

    Note: This doesn't give a proper calculation of
    %-to-complete when the number of used hours is not equal to
    the estimated hours; it's just a quick workaround.
    I'm working on a patch for own use, and submit it in Patches
    when done.

     
  • Oscar

    Oscar - 2005-08-09

    Logged In: YES
    user_id=1309205

    I've created a path for this; see patch# 1255159 in "Patches".
    Hope this helps

     
  • Matthieu PAINEAU

    • Status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB