Commit graph

1527 commits

Author SHA1 Message Date
Óscar González Fernández
d973c323cb [Bug #1322] Fix bug
The derived day assignments were not being included. This caused that
the resources associated with the derived allocation to have different
instances for the derived allocations, causing a subsequent error.

FEA: ItEr76S04BugFixing
2012-01-04 08:27:07 +01:00
Óscar González Fernández
825bae5f2b Allow to include or exclude DerivedDayAssignments
It's now possible to specify if derived assignments are included or
not when retrieving day assignments from a Task, Order and so on.
2012-01-04 08:27:06 +01:00
Jacobo Aragunde Pérez
d7e2625b18 Allow reported hours bar in gantt diagram to be wider than the task.
This bug was introduced when fixing the length of progress bars
(in the commit 13389197d9).

FEA: ItEr75S04BugFixing
2012-01-03 16:46:15 +01:00
Jacobo Aragunde Pérez
e7651d8b6c [Bug #1242] Don't allow progress end dates superior to the corresponding task end date.
This situation still happened in tasks with completition near to 100% (for
example 99%) and the 'by hours' calculation method.

FEA: ItEr75S04BugFixing
2012-01-03 16:46:15 +01:00
Jacobo Aragunde Pérez
b98c1e2b0a [Bug #1311] Replace Date objects with IntraDayDate objects in SaveCommandBuilder.
The cause of the bug was that IntraDayDates were converted into Date objects,
and then back again to an IntraDayDate with 0 EffortDuration.

FEA: ItEr75S04BugFixing
2012-01-03 16:46:15 +01:00
Jacobo Aragunde Pérez
856eab4a79 [Bug #1311] Replace Date objects with IntraDayDate objects in SaveCommandBuilder.
The cause of the bug was that IntraDayDates were converted into Date objects,
and then back again to an IntraDayDate with 0 EffortDuration.

FEA: ItEr75S04BugFixing
2012-01-03 16:45:02 +01:00
Jacobo Aragunde Pérez
bf4e13c358 [Bug #1242] Don't allow progress end dates superior to the corresponding task end date.
This situation still happened in tasks with completition near to 100% (for
example 99%) and the 'by hours' calculation method.

FEA: ItEr75S04BugFixing
2012-01-03 16:45:02 +01:00
Jacobo Aragunde Pérez
519389dc4b Allow reported hours bar in gantt diagram to be wider than the task.
This bug was introduced when fixing the length of progress bars
(in the commit 13389197d9).

FEA: ItEr75S04BugFixing
2012-01-03 16:45:02 +01:00
Manuel Rego Casasnovas
cb0e6b0957 [Bug #1321] Reseting highlighted days in calendar to prevent issue
FEA: ItEr75S04BugFixing
2012-01-03 09:01:49 +01:00
Manuel Rego Casasnovas
e499ec4652 [Bug #1321] Reseting highlighted days in calendar to prevent issue
FEA: ItEr75S04BugFixing
2012-01-03 08:57:43 +01:00
Manuel Rego Casasnovas
6f805f23f2 [Bug #1323] Fix lazy loading properly derived allocations
FEA: ItEr75S04BugFixing
2012-01-03 08:28:41 +01:00
Manuel Rego Casasnovas
3c5c14d728 [Bug #1323] Fix lazy loading properly derived allocations
FEA: ItEr75S04BugFixing
2012-01-03 08:22:05 +01:00
Jacobo Aragunde Pérez
aa6833443d [Bug #1242] Return end date directly when calculating advance and percentage is 100%.
In that case, no calculations are needed, and since the algorithm has some
defects we avoid them.

FEA: ItEr75S04BugFixing
2012-01-02 13:09:36 +01:00
Jacobo Aragunde Pérez
52111b50e7 [Bug #1242] Use IntraDayDate to draw the progress bar in leaf Tasks.
The advance bar was always drawn until the end of the day, even when the task
finished in the middle of the day, causing a weird effect.

FEA: ItEr75S04BugFixing
2012-01-02 13:09:36 +01:00
Jacobo Aragunde Pérez
13389197d9 [Bug #1242] Return end date directly when calculating advance and percentage is 100%.
In that case, no calculations are needed, and since the algorithm has some
defects we avoid them.

FEA: ItEr75S04BugFixing
2012-01-02 13:00:53 +01:00
Jacobo Aragunde Pérez
7518270ced [Bug #1242] Use IntraDayDate to draw the progress bar in leaf Tasks.
The advance bar was always drawn until the end of the day, even when the task
finished in the middle of the day, causing a weird effect.

FEA: ItEr75S04BugFixing
2012-01-02 12:59:26 +01:00
Manuel Rego Casasnovas
429eeec886 [Bug #1319] Change division method of EffortDuration
Previous method was rounding to zero instead of return a fraction.

FEA: ItEr75S04BugFixing
2012-01-02 12:35:25 +01:00
Jacobo Aragunde Pérez
e38fb82591 [Bug #1304] Make sumOfAssignedEffort return the cached value only for orders.
In other cases, the actual value will be calculated and returned, to use more
accurate data.

FEA: ItEr75S04BugFixing
2012-01-02 12:34:19 +01:00
Jacobo Aragunde Pérez
c2889c88b7 [Bug #1304] Reorder the code to improve the performance with TaskGroups.
FEA: ItEr75S04BugFixing
2012-01-02 12:34:13 +01:00
Jacobo Aragunde Pérez
7c158ad7f6 Replace attribute TaskElement.sumOfHoursAllocated with an equivalent attribute
measured in EffortDuration.

FEA: ItEr75S04BugFixing

Conflicts:

	libreplan-business/src/main/java/org/libreplan/business/planner/entities/TaskElement.java
2012-01-02 12:33:00 +01:00
Jacobo Aragunde Pérez
815f817031 [Bug #1304] Don't use the cached value sumOfHoursAllocated when drawing the
progress bars of tasks.

This unupdated cached value is causing the bug. We will use it only in company
view, where allocations can't change.

FEA: ItEr75S04BugFixing
2012-01-02 12:31:32 +01:00
Manuel Rego Casasnovas
954a45b1d6 Revert "[Bug #1319] Change division method of EffortDuration"
This reverts commit 395d6a2f5e.
2012-01-02 11:11:49 +01:00
Manuel Rego Casasnovas
395d6a2f5e [Bug #1319] Change division method of EffortDuration
Previous method was rounding to zero instead of return a fraction.

FEA: ItEr75S04BugFixing
2011-12-29 08:39:44 +01:00
Manuel Rego Casasnovas
e3136719f7 [Bug #1319] Change division method of EffortDuration
Previous method was rounding to zero instead of return a fraction.

FEA: ItEr75S04BugFixing
2011-12-29 08:22:45 +01:00
Manuel Rego Casasnovas
eb486c14c2 Hide warning messages on bottom when user is not admin
FEA: ItEr75S04BugFixing
2011-12-28 16:21:30 +01:00
Manuel Rego Casasnovas
948beb6067 Hide warning messages on bottom when user is not admin
FEA: ItEr75S04BugFixing
2011-12-28 16:17:08 +01:00
Manuel Rego Casasnovas
bb31a38392 [Bug #1288] Return null instead of zero in a just created AdvanceMeasurement
Now when you add a new advance measurement, you will have an empty value.
A test was fixed due to this change.

FEA: ItEr75S04BugFixing
2011-12-28 11:39:54 +01:00
Manuel Rego Casasnovas
07abe35d4a [Bug #1288] Fix message regarding progress type precision
FEA: ItEr75S04BugFixing
2011-12-28 11:39:50 +01:00
Lucia Garcia Fernandez
bc6d33c552 [Bug #1288] Set Decimalbox scale according to progress type precision
FEA: ItEr75S04BugFixing
2011-12-28 11:39:46 +01:00
Manuel Rego Casasnovas
492a0470c3 [Bug #1288] Return null instead of zero in a just created AdvanceMeasurement
Now when you add a new advance measurement, you will have an empty value.
A test was fixed due to this change.

FEA: ItEr75S04BugFixing
2011-12-28 11:09:27 +01:00
Manuel Rego Casasnovas
80aa4caea2 [Bug #1288] Fix message regarding progress type precision
FEA: ItEr75S04BugFixing
2011-12-28 09:52:34 +01:00
Lucia Garcia Fernandez
59759b2af5 [Bug #1288] Set Decimalbox scale according to progress type precision
FEA: ItEr75S04BugFixing
2011-12-28 09:39:34 +01:00
Manuel Rego Casasnovas
87f4993c43 [Bug #1307] Prevent changing spread progress in children when parents are consolidated
FEA: ItEr75S04BugFixing
2011-12-27 18:22:45 +01:00
Manuel Rego Casasnovas
25f9f3396f [Bug #1307] Prevent changing spread progress in children when parents are consolidated
FEA: ItEr75S04BugFixing
2011-12-27 18:15:10 +01:00
Manuel Rego Casasnovas
2b9a7ec6fc [Bug #1307] Prevent add progress measurement before consolidated day in any parent
FEA: ItEr75S04BugFixing
2011-12-27 11:37:52 +01:00
Manuel Rego Casasnovas
f6a21e9942 Refactor method getSpreadIndirectAdvanceAssignmentWithSameType to be used in more places
FEA: ItEr75S04BugFixing
2011-12-27 11:37:46 +01:00
Manuel Rego Casasnovas
355d554205 [Bug #1307] Prevent add progress measurement before consolidated day in any parent
FEA: ItEr75S04BugFixing
2011-12-27 11:25:37 +01:00
Manuel Rego Casasnovas
0d14b15448 Refactor method getSpreadIndirectAdvanceAssignmentWithSameType to be used in more places
FEA: ItEr75S04BugFixing
2011-12-27 11:24:40 +01:00
Manuel Rego Casasnovas
02993b55ea Prevent NPE editing progress measurements
FEA: ItEr75S04BugFixing
2011-12-26 13:28:17 +01:00
Manuel Rego Casasnovas
bc8c9a73fb Prevent NPE editing progress measurements
FEA: ItEr75S04BugFixing
2011-12-26 13:23:15 +01:00
Manuel Rego Casasnovas
0bf265db9b [Bug #1308] Remove unneeded preventing create default progress in containers
FEA: ItEr75S04BugFixing
2011-12-23 13:43:28 +01:00
Manuel Rego Casasnovas
e54a44fe50 [Bug #1308] Remove unneeded preventing create default progress in containers
FEA: ItEr75S04BugFixing
2011-12-23 13:33:03 +01:00
Manuel Rego Casasnovas
8f933ae7c0 [Bug #1305] Prevent adding progress measurement before last consolidated date
FEA: ItEr75S04BugFixing
2011-12-23 08:05:48 +01:00
Manuel Rego Casasnovas
250d93185a Fix messages related with progress management and consolidations
FEA: ItEr75S04BugFixing
2011-12-23 08:05:42 +01:00
Manuel Rego Casasnovas
31d82f1dea Disable some options in progress management if there is a consolidated progress
FEA: ItEr75S04BugFixing
2011-12-23 08:05:37 +01:00
Manuel Rego Casasnovas
60a4e75ac5 [Bug #1305] Prevent adding progress measurement before last consolidated date
FEA: ItEr75S04BugFixing
2011-12-23 07:41:42 +01:00
Manuel Rego Casasnovas
67d18c948c Fix messages related with progress management and consolidations
FEA: ItEr75S04BugFixing
2011-12-23 07:41:42 +01:00
Manuel Rego Casasnovas
96c3aec7bb Disable some options in progress management if there is a consolidated progress
FEA: ItEr75S04BugFixing
2011-12-23 07:21:45 +01:00
Jacobo Aragunde Pérez
b07e51204c [Bug #1304] Make sumOfAssignedEffort return the cached value only for orders.
In other cases, the actual value will be calculated and returned, to use more
accurate data.

FEA: ItEr75S04BugFixing
2011-12-22 13:45:44 +01:00
Jacobo Aragunde Pérez
4de48e1f8e [Bug #1304] Reorder the code to improve the performance with TaskGroups.
FEA: ItEr75S04BugFixing
2011-12-22 13:45:44 +01:00