Commit graph

781 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
d258b989f9 Merge branch 'libreplan-1.3' into adapt-planning-according-timesheets 2012-11-15 09:45:27 +01:00
Manuel Rego Casasnovas
9e4cbd2484 Show marks from timesheet dates in tasks when showing reported hours bar
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-13 18:37:15 +01:00
Manuel Rego Casasnovas
6177a5eee0 Bug #1560: Fire property change for task dates after closing allocation pop-up
FEA: ItEr77S04BugFixing
2012-11-13 13:59:25 +01:00
Manuel Rego Casasnovas
62d9221e6f Disable tasks movement for tasks updated from timesheets
Mark updatedFromTimesheets is reseted before adapting the planing in order to
move the tasks if needed.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 15:30:25 +01:00
Manuel Rego Casasnovas
acacba7911 Implement main operations in adapt planning command
* TaskElements are marked or not as updatedFromTimesheets
* TaskElement start date is set with a START_IN_FIXED_DATE constraint to the
  first date in the timesheets
* TaskElement end date is set to the last date in the timesheets if this is
  later than the current end date of the task
* Depending on if the task is marked as finishedFromTimesheets, a progress of
  type TIMESHEETS is added or not. If the task is finished, the end date is set
  according to last date in the timesheets
* TaskElement size and position is updated in the Gantt

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-06 19:20:41 +01:00
Manuel Rego Casasnovas
e9365ed1b0 Add new button to adapt planning according to timesheets
It has been added a new method ICommand.isPlannerCommand() to define if a button
should be added in the planner toolbar or in the common toolbar (save and cancel
buttons).

For the moment, we are using a hard-coded value to know how many buttons we
should add in the plannerToolbar. At this moment we have 2 buttons: reassign and
adapt planning.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-05 09:52:23 +01:00
Manuel Rego Casasnovas
82e18fb77d Revert "Bug #1320: Recalculate position of siblings when moving a task"
This reverts commit 125146ebd2 because of the
solution for bug #1320 was causing a new bug #1540.
2012-10-09 09:29:16 +02:00
Jacobo Aragunde Pérez
519ac2a5aa Simplify the way to calculate the length of money cost bars on the tasks in the
Gantt diagram.

Until now, the percentace of money was transformed into a date and then again
into a percentage.
2012-09-24 13:08:52 +02:00
Manuel Rego Casasnovas
125146ebd2 Bug #1320: Recalculate position of siblings when moving a task
When a task is moved in the Gantt, the constraint changes and it could causes
that some of its siblings should be moved, because of the parent element is
moved too.

FEA: ItEr77S04BugFixing
2012-09-21 18:32:10 +02:00
Manuel Rego Casasnovas
172c9ba195 Using debug method for logging some messages that are meant for debugging 2012-09-14 10:17:50 +02:00
Jacobo Aragunde Pérez
1295617a1d Bug #1508: Display the correct task end date in the task properties window.
FEA: ItEr76S04BugFixing
2012-07-16 16:59:44 +02:00
Lorenzo Tilve Álvaro
2d5273b1a6 Bug #1493: Modified project deadline vertical line position to show it after the deadline date
FEA: ItEr76S04BugFixing
2012-07-11 11:28:15 +02:00
Lorenzo Tilve Álvaro
201bb6e363 Bug #1493: Modified task deadline mark position to show it just after the deadline date
FEA: ItEr76S04BugFixing
2012-07-11 11:28:15 +02:00
Manuel Rego Casasnovas
9028b56c3d Remove unneeded check in TabsRegistry related to limiting resources tab
FEA: ItEr76S04BugFixing
2012-07-04 20:36:14 +02:00
Manuel Rego Casasnovas
181ed61c48 Remove unused methods and variable in TaskComponent
FEA: ItEr76S04BugFixing
2012-06-08 08:52:06 +02:00
Manuel Rego Casasnovas
5506482e42 Bug #1454: Force update task size after reassignations
FEA: ItEr76S04BugFixing
2012-06-07 18:32:43 +02:00
Susana Montes Pedreira
7364bb000d Merge branch 'master' into subcontracting 2012-05-08 18:16:09 +01:00
Manuel Rego Casasnovas
e1f91e4900 Bug #1263: Fix issue reseting the value of the textbox
The problem is fixed both in forwards and backwards planning

FEA: ItEr76S04BugFixing
2012-04-30 18:22:22 +02:00
Manuel Rego Casasnovas
7d9f997f3c Bug #1416: Reload resources text in parent tasks too
Removed call to reload resources text from progress consolidation window and
advanced allocation window as it was not needed.

FEA: ItEr76S04BugFixing
2012-04-19 16:11:59 +02:00
Manuel Rego Casasnovas
41610cad2b Change the order and labels of the filtering area
FEA: ItEr76S23ImproveFilteringArea
2012-04-13 09:50:43 +02:00
Susana Montes Pedreira
2008ea6744 Merge branch 'master' into subcontracting-merger-master 2012-04-10 16:36:55 +01:00
Manuel Rego Casasnovas
3ca4f222f1 Bug #1402: Invalidate the TaskComponents instead of the whole GanttPanel
FEA: ItEr76S04BugFixing
2012-04-10 13:39:50 +02:00
Manuel Rego Casasnovas
979ac144b1 Merge branch 'money-cost-monitoring-system' 2012-03-27 17:51:02 +02:00
Manuel Rego Casasnovas
120534e6ff Disable Money Cost Bar in company view to avoid performance issues
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-26 10:27:15 +02:00
Manuel Rego Casasnovas
7500675a41 Add option to print money cost bar
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-20 17:58:13 +01:00
Susana Montes Pedreira
755387110d Merge branch 'master' into subcontracting 2012-03-20 10:03:51 +00:00
Manuel Rego Casasnovas
0d1cff5feb Remove method getMoneyCostBarPercentage from ITaskFundamentalProperties
This method is not need as it's only used in a private method inside
TaskElementAdapter.

FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-19 12:44:38 +01:00
Manuel Rego Casasnovas
ac430aba6a Using the new MoneyCostCalculator to print the new Money Cost bar
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-19 12:23:18 +01:00
Manuel Rego Casasnovas
abb5851afb Add new money cost bar at this moment using value, icon and color of reported hours
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-16 11:51:32 +01:00
Lorenzo Tilve Álvaro
b3338e7246 Bug 1383: Fixed corner case of deadline and current day right position
The background position of the current day and deadline was outside the
visible area in the timetracker watermark columns when it was on the
last day of the interval.

A better alignment with the tasks layer (reducing the 3px max deviation)
on this cases can be achieved by revamping how lines and borders are
represented on the watermark layer.

FEA: ItEr76S04BugFixing
2012-12-31 15:18:02 +01:00
Lorenzo Tilve Álvaro
1ec4d83e95 Bug 1383: Fixed corner case of deadline and current day right position
The background position of the current day and deadline was outside the
visible area in the timetracker watermark columns when it was on the
last day of the interval.

A better alignment with the tasks layer (reducing the 3px max deviation)
on this cases can be achieved by revamping how lines and borders are
represented on the watermark layer.

FEA: ItEr76S04BugFixing
2012-03-05 12:22:42 +01:00
Lorenzo Tilve Álvaro
01741d2de6 Added vertical line in scheduling perspective to display project start date
FEA: ItEr76S04BugFixing
2012-03-05 12:22:05 +01:00
Jacobo Aragunde Pérez
bc94cb2c3d Bug #1344: Fix bug moving the addition of ConstraintViolationListeners to
doAfterCompose instead of constructor.

When doAfterCompose is run, we are sure we are ready to send messages to the
client side.

FEA: ItEr76S04BugFixing
2012-03-02 13:47:48 +01:00
Jacobo Aragunde Pérez
4c25361d1d Bug #1344: Fix bug moving the addition of ConstraintViolationListeners to
doAfterCompose instead of constructor.

When doAfterCompose is run, we are sure we are ready to send messages to the
client side.

FEA: ItEr76S04BugFixing
2012-03-02 13:44:26 +01:00
Óscar González Fernández
7665af0247 Some API docs for the entering/reentering part 2012-03-01 18:21:30 +01:00
Óscar González Fernández
59c8a98a72 Remove uneeded parameters to prevent redundant invocations to scheduling algorithm.
When a task is potentially modified is not needed to change the start
and the end date. This was causing two invokations of the
"dependencies" algorithm. Now only one is done.
2012-03-01 18:19:08 +01:00
Óscar González Fernández
79b06a8212 Use more accurate name 2012-03-01 18:14:26 +01:00
Óscar González Fernández
a9e5ae5cbe Bug #1354: Fix bug
Although the constraint is not applied it must be provided. Otherwise
the dominating forces would not take it into account. Normally this
wasn't a problem since if the secondary point date changes it was
provided. But it can happen that the secondary point doesn't change,
in that case the constraint must still be taken into account.
2012-03-01 18:14:26 +01:00
Óscar González Fernández
b58315b5df Some API docs for the entering/reentering part 2012-03-01 17:47:24 +01:00
Óscar González Fernández
ee88157afb Remove uneeded parameters to prevent redundant invocations to scheduling algorithm.
When a task is potentially modified is not needed to change the start
and the end date. This was causing two invokations of the
"dependencies" algorithm. Now only one is done.
2012-03-01 17:47:24 +01:00
Óscar González Fernández
bc8da4d84a Use more accurate name 2012-03-01 17:47:24 +01:00
Óscar González Fernández
93d5667769 Bug #1354: Fix bug
Although the constraint is not applied it must be provided. Otherwise
the dominating forces would not take it into account. Normally this
wasn't a problem since if the secondary point date changes it was
provided. But it can happen that the secondary point doesn't change,
in that case the constraint must still be taken into account.
2012-03-01 17:47:24 +01:00
Lorenzo Tilve Álvaro
d91016f532 Added vertical line in scheduling perspective to display project start date
FEA: ItEr76S04BugFixing
2012-03-01 10:29:53 +01:00
Jacobo Aragunde Pérez
10a5ddf5a6 Bug #1282, #1376: Prevent exception when deleting a milestone inside a container.
The order in the deletion of the different objects related with the task was
wrong and it was causing an exception.

Moreover, the exception was breaking the flow of execution in our application
and preventing that the size of container was updated.

FEA: ItEr76S04BugFixing
2012-02-16 17:15:14 +01:00
Jacobo Aragunde Pérez
0be7843279 Bug #1282, #1376: Prevent exception when deleting a milestone inside a container.
The order in the deletion of the different objects related with the task was
wrong and it was causing an exception.

Moreover, the exception was breaking the flow of execution in our application
and preventing that the size of container was updated.

FEA: ItEr76S04BugFixing
2012-02-16 17:14:55 +01:00
Lorenzo Tilve Álvaro
aeffc18fe6 Bug #1343: Only closed projects in company view perspective are displayed in grey
The tasks inside closed projects are now being shown as usual, and not marked
as closed projects in the company view.

FEA: ItEr76S04BugFixing
2012-02-15 17:41:58 +01:00
Jacobo Aragunde Pérez
2b3c74e320 Bug #1343: Added method isRoot() to gantt tasks.
With this method we will be able to know which tasks are projects.

FEA: ItEr76S04BugFixing
2012-02-15 17:41:58 +01:00
Lorenzo Tilve Álvaro
d22811670c Bug #1343: Only closed projects in company view perspective are displayed in grey
The tasks inside closed projects are now being shown as usual, and not marked
as closed projects in the company view.

FEA: ItEr76S04BugFixing
2012-02-15 17:35:22 +01:00
Jacobo Aragunde Pérez
b6a622c7ae Bug #1343: Added method isRoot() to gantt tasks.
With this method we will be able to know which tasks are projects.

FEA: ItEr76S04BugFixing
2012-02-15 17:35:22 +01:00
Jacobo Aragunde Pérez
56c8fdaea0 Remove unnecessary method.
FEA: ItEr76S04BugFixing
2012-02-14 17:50:22 +01:00