View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Problem with priority conflict between "regular between 2 dates" and "as soon as possible" - Page 2 - ProjeQtOr
 

Problem with priority conflict between "regular between 2 dates" and "as soon as possible"

More
28 Jan 2013 12:54 - 28 Jan 2013 12:56 #7 by babynus

Easy to implement in the code?

not too hard, as is is exactly as ASAP, with just higher priority.

But why not give priorities to manage the priorities of different planning mode?

Because in most cases when you add a task as "regular between dates", you won't change priority. Therefore you really need it to be planned before other ones, even with higher priority.
Also because it is actual running way, and I don't want to change rules that may lead to change planning calculation for existing plannings.

Babynus
Administrator of ProjeQtOr web site
Last edit: 28 Jan 2013 12:56 by babynus.

Please Log in or Create an account to join the conversation.

More
28 Jan 2013 14:18 - 28 Jan 2013 14:45 #8 by JCDe
Ok I understand.
I'm planning to test this week, to make sure the behavior is OK.
If it's OK, I'll create in the user menu (profile CDP) can choose its planning mode (with or without management priorities for planning modes)

In the code /model/PlanningElement, method sortPlanningElements($list) i don't find :
$crit=($elt->idPlanningMode=='2' or  $elt->idPlanningMode=='3' or  $elt->idPlanningMode=='7')?'0':'1';

but i found :
static function comparePlanningElementSimpleOld($a, $b) {
    // idPlanningMode '2'=>REGUL '3'=>FULL '7'=>HALF
  	if ( ($a->idPlanningMode=='2' or  $a->idPlanningMode=='3' or  $a->idPlanningMode=='7') and 
         ($b->idPlanningMode!='2' and $a->idPlanningMode!='3' and $a->idPlanningMode!='7') ) {
      return -1;
    }
    if ( ( $b->idPlanningMode=='2' or $b->idPlanningMode=='3' or $b->idPlanningMode=='7') and 
         ($a->idPlanningMode!='2' and $a->idPlanningMode!='3' and $a->idPlanningMode!='7') ) {
      return +1;
    }
    if ($a->priority<$b->priority) {
      return -1;
    }
    if ($a->priority>$b->priority) {
      return +1;
    }
    
    if ($a->wbsSortable<$b->wbsSortable) {
      return -1;
    }
    if ($a->wbsSortable>$b->wbsSortable) {
      return +1;
    }
    return 0;       

I puts in the comment section of code ?
    // idPlanningMode '2'=>REGUL '3'=>FULL '7'=>HALF
  	if ( ($a->idPlanningMode=='2' or  $a->idPlanningMode=='3' or  $a->idPlanningMode=='7') and 
         ($b->idPlanningMode!='2' and $a->idPlanningMode!='3' and $a->idPlanningMode!='7') ) {
      return -1;
    }
    if ( ( $b->idPlanningMode=='2' or $b->idPlanningMode=='3' or $b->idPlanningMode=='7') and 
         ($a->idPlanningMode!='2' and $a->idPlanningMode!='3' and $a->idPlanningMode!='7') ) {
      return +1;
    }

Thanks for your support
Last edit: 28 Jan 2013 14:45 by JCDe.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.046 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.