Re: 'Work'-field for tasks keep increasing...

Benjamin BAYART <[email protected]> Wed, 23 Apr 2003 11:02:25 +0200
Newsgroups gmane.comp.gnome.apps.mr-project.user
Message-ID <[email protected]>
Le Tue, Apr 22, 2003 at 11:04:39PM +0200, Allan Beaufour Larsen:
> 
> I have just created a new project, and it seems to work fine except for
> one thing: Every time I enter a value in a work-field it gets increased
> when I leave it. That is: If I enter '2d 9t' it ends up being '3d', and
> '3d' ends up being '3d 1t'. It also increases if I doubleclick the field
> (or print). Weird, and extremely annoying...
> 
> It seems like the error is provoked by the fact that I changed the hours
> of a working day. I changed the working days to go from '9:00-12:00' and
> '12:40-20:00'. If I change them back, it works fine. Do you by any
> chance have some (hidden) expectations for how long a working day is?

For what I've seen in the sources, there are a lot of places where there
are suppositions that a working day is 8 hours. At least in several
places in the gantt stuff.

It shouldn't be that hard to fix, but there are a lot of places where to
check everything is ok.

And there a few places where it's verry hard to handle: suppose a case
where there are different kind of working days (full day, morning only,
afternoon only), which one is the "basic" day to be used when one is
displaying the amount of work for a task?

For what I've seen, if you say "1d" in the "work" cell, it's handled as
"8 hours". Just because one need to handle a convenient way to decide
this point. And, in a case like yours, in one day of duration there can
be more than one day of work. So, keep in mind: work and duration are
not equal for you.

I tried to use you working time, and got funny stuff but not the one
you describe:
- when I write "1d" in the task tree (gantt or tasks view), it's handled
  as a full work-day (as defined in the calendar)
- it displays "1d" in the task tree
- then I edit the task, and it displays "1.3" in the "work" field
- if I change it to be "1", close, re-edit, it comes back to 1.3, still
  1d in the task tree.
- if I change to "8h" in the task tree, in the edit dialog it's
  displayed as "1.0".

So, there are strange things, but probably only in the graphical part,
and not really in the calculations. When MrProject reads, it reads
working days as defined in the calendar, but when it displays in the
task dialog, it displays in 8-hours working days independantly of the
calendar.

It should perhaps be reported as a bug...

Regards,

	Benjamin.