Commit graph

1980 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
fd16bbf8f8 Released 1.0.1 version.
* Bump to 1.0.1.
* Updated NEWS file.
* Updated debian package changelog.

FEA: ItEr67S03CommunityMaterialItEr66S03
2011-01-14 10:22:39 +01:00
Manuel Rego Casasnovas
24776f915d A new LiquiBase issue with MySQL again.
Execute the next SQL sentences in your database if you want to keep working with
your current database:

UPDATE databasechangelog
    SET md5sum='3:2e945615b34f87a232f914a37cbab56a'
    WHERE id='add-new-column-enable_critical_chain_support' AND
        author='jaragunde' AND
        filename='src/main/resources/db.changelog-1.0.xml';

FEA: ItEr68S04BugFixing
2011-01-13 11:39:46 +01:00
Manuel Rego Casasnovas
6910d88c8f Now fixing a issue added in previous commit 8d5c9dfe issue with PostgreSQL.
Execute the next SQL sentences in your database if you want to keep working
with your current database:

UPDATE databasechangelog
    SET md5sum='3:cb4aacdb6fe744a677baa0884ab4bc59'
    WHERE id='add-new-column-enable_critical_chain_support' AND
        author='jaragunde' AND
        filename='src/main/resources/db.changelog-1.0.xml';

FEA: ItEr68S04BugFixing
2011-01-13 11:33:13 +01:00
Manuel Rego Casasnovas
8d5c9dfe1d Fixed LiquiBase issue with MySQL.
Execute the next SQL sentences in your database if you want to keep working with
your current database:

UPDATE databasechangelog
    SET md5sum='3:e32f913dd4429f4471ec850003dfc6d2'
    WHERE id='add-new-column-enable_critical_chain_support' AND
        author='jaragunde' AND
        filename='src/main/resources/db.changelog-1.0.xml';

UPDATE databasechangelog
    SET md5sum='3:71ae3b8d8998329d68e95d8ad2135745'
    WHERE id='use-capacity-instead-of-effort_duration-and-not_over_assignable' AND
        author='ogonzalez' AND
        filename='src/main/resources/db.changelog-1.0.xml';

FEA: ItEr68S04BugFixing
2011-01-12 20:27:20 +01:00
Óscar González Fernández
67a4164878 Allow to edit the extra hours for CalendarExceptionType
FEA: ItEr68OTS05IntroducionLimiteSobreasignacionCalendarios
2011-01-12 18:24:42 +01:00
Óscar González Fernández
24323893ba Now CalendarExceptionType uses a Capacity instead of the field duration and notAssignable
FEA: ItEr68OTS05IntroducionLimiteSobreasignacionCalendarios
2011-01-12 18:24:42 +01:00
Susana Montes Pedreira
ae89ad6cf3 [Bug #785] Add improvements in companies list.
it sorts the list by company name.
it changes a label by other one to facilitate the understanding.
it adds the delete operation of a company with some constraints.

FEA : ItEr67S04BugFixing
2011-01-11 16:28:04 +01:00
Susana Montes Pedreira
e9792d3707 [Bug #784] Sort results of add criterion combo in resource edition
FEA : ItEr67S04BugFixing
2011-01-11 16:25:06 +01:00
Manuel Rego Casasnovas
d5bb6b6f88 Released 1.0.0 version.
* Bump to 1.0.0.
* Updated NEWS and TODO files.
* Updated debian package.

FEA: ItEr67S03CommunityMaterialItEr66S03
2011-01-07 16:46:07 +01:00
Diego Pino Garcia
094e7b7080 Replace literal 'NIF' for 'Company ID' (companies) or 'ID' (workers)
FEA: ItEr67S04BugFixing
2011-01-05 18:21:30 +01:00
Manuel Rego Casasnovas
db10e8d982 Changed LiquiBase identifier of last change as it's longer than 63 chars.
FEA: ItEr67S04BugFixing
2011-01-05 14:56:04 +01:00
Manuel Rego Casasnovas
146cc38239 Changed "advance" for "progress" as it was a wrong translation and difficult to understand by final users.
FEA: ItEr67S04BugFixing
2011-01-05 13:54:01 +01:00
Óscar González Fernández
a5f1cf4f65 [Bug #786] Fix bug
The error was happening due to using Dates instead of LocalDates. The
start of the satisfaction was in the middle of a day and the received
Date was at the start, so the first day was considered outside of the
criterion satisfaction's interval. Criterion satisfactions now use
LocalDates instead of Dates and this problem is fixed.

FEA: ItEr67S04BugFixing
2011-01-05 13:21:33 +01:00
Óscar González Fernández
7dc622d17c Avoid exception
The named parameter must be provided always otherwise this can happen:

Caused by: org.hibernate.QueryException: Not all named parameters have been set: [name] [Select t from OrderElementTemplate t where t.parent = NULL and  LOWER(t.infoComponent.name) like  LOWER(:name)]
	at org.hibernate.impl.AbstractQueryImpl.verifyParameters(AbstractQueryImpl.java:291)

FEA: ItEr67S04BugFixing
2011-01-05 11:19:39 +01:00
Óscar González Fernández
dad38c8d6c Avoid potentially dangerous divide operation
FEA: ItEr67S04BugFixing
2011-01-04 19:29:06 +01:00
Óscar González Fernández
0902b0a129 Fix bug
This exception was happening:
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
	at java.math.BigDecimal.divide(BigDecimal.java:1616)
	at org.navalplanner.business.orders.daos.OrderElementDAO.average(OrderElementDAO.java:345)
	at org.navalplanner.business.orders.daos.OrderElementDAO.calculateAverageEstimatedHours(OrderElementDAO.java:334)

FEA: ItEr67S04BugFixing
2011-01-04 17:46:56 +01:00
Manuel Rego Casasnovas
bfdf697bf5 Fixed translation problem in workers and machines list related with limiting resources column.
FEA: ItEr67S04BugFixing
2011-01-04 17:33:21 +01:00
Óscar González Fernández
63d1749f33 [Bug #780] Fix bug
Initializing the hours group with the introduced hours parameter. It's
also needed to assign it a code, otherwise it would fail when saving.

FEA: ItEr67S04BugFixing
2011-01-04 17:21:23 +01:00
Manuel Rego Casasnovas
edfc986b0d Small fixes in debian/ folder and bump to version 0.9.2.
FEA: ItEr67S03CommunityMaterialItEr66S03
2011-01-04 16:07:27 +01:00
Manuel Rego Casasnovas
e0aa75641d [Bug #783] Fixed problem with ResourceEnum translation.
FEA: ItEr67S04BugFixing
2011-01-04 11:40:45 +01:00
Óscar González Fernández
2ff4c92213 [Bug #774] Fix bug
Using DurationBetweenDates to calculate initial lengh for tasks.

FEA: ItEr67S04BugFixing
2011-01-03 16:55:34 +01:00
Óscar González Fernández
266d9d4fe1 Use the same condition
FEA: ItEr67S04BugFixing
2011-01-03 16:55:34 +01:00
Óscar González Fernández
160a9abf17 Check for null
FEA: ItEr67S04BugFixing
2011-01-03 16:55:34 +01:00
Óscar González Fernández
f33e8f8cf8 [Bug #775] Fix bug
The minusDuration contained an error that caused to reach the end of
the loop before it should.

When calculating the current duration, the workable days given were
the rounded up version which caused the problem in the third snapshot.

FEA: ItEr67S04BugFixing
2011-01-03 13:49:31 +01:00
Óscar González Fernández
8fc16549b2 Add handy methods
FEA: ItEr67S04BugFixing
2011-01-03 13:49:31 +01:00
Óscar González Fernández
45fb180da0 Take into account if the allocation has consolidations
If the task has consolidations is must be allocated in a forwards way.

FEA: ItEr66OTS07PlanificacionHaciaAtrasItEr65OTS03
2010-12-29 22:17:35 +01:00
Óscar González Fernández
a2e8c3ea2e Rename method to reflect better is meaning
FEA: ItEr66OTS07PlanificacionHaciaAtrasItEr65OTS03
2010-12-29 22:15:42 +01:00
Óscar González Fernández
3ca8b84b8d Fix bug
It avoids exception when doing a reassignation and there is an
unsatisfied generic allocation. Now in that case new resources mathing
the criterions are queried.

FEA: ItEr66S04BugFixing
2010-12-29 19:23:03 +01:00
Óscar González Fernández
cfc3551e31 Provide IResourceDAO to DatesHandler
It's going to be needed to avoid error when trying to do allocation on
an unsatisfied generic allocation.

FEA: ItEr66S04BugFixing
2010-12-29 19:23:03 +01:00
Óscar González Fernández
a42018bfc5 Ensure that getResourcesPerDay never returns null
FEA: ItEr66S04BugFixing
2010-12-29 19:23:03 +01:00
Óscar González Fernández
9a9afdc5c9 Instead of delegating call the inner object
FEA: ItEr66S04BugFixing
2010-12-29 19:23:03 +01:00
Diego Pino Garcia
765375425a Fix bug Exception launched when clicking on Edit Task 'Found resources' panel: doesn't implement comparable
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-29 18:08:48 +01:00
Óscar González Fernández
207ba45e5e Improve the stickiness of the parameters specified by the user
After doing an allocation if the task was moved to a place where it
cannot be satisfied the parameters specified by the user were
overriden with zero like values.

Now it keeps the fields originalTotalAssignment and resourcesPerDay so
if the allocation can be satisfied again it uses the original values.

FEA: ItEr66S04BugFixing
2010-12-28 21:20:29 +01:00
Óscar González Fernández
3f5f8b4332 Introduce factory
This makes clearer the meaning of the method

FEA: ItEr66S04BugFixing
2010-12-28 21:20:24 +01:00
Óscar González Fernández
9caf32dcc6 [Bug #773] Fix bug
After saving the order, the constraints are updated for each task
unless it already has some allocations done to it.

FEA: ItEr66S04BugFixing
2010-12-27 15:38:15 +01:00
Óscar González Fernández
cfa4060d4e Rename method
Now it reflects better its meaning.

FEA: ItEr66S04BugFixing
2010-12-27 15:38:15 +01:00
Diego Pino Garcia
c7f51c0a72 Add method queueuOf() retrieves all diferent queues for a set of queue elements
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 13:55:41 +01:00
Diego Pino Garcia
ef137d2637 Fix bug advance gap until allocation time
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 13:55:34 +01:00
Diego Pino Garcia
b4de7e098e Fix bug in getHoursInGapUntilAllocatingAndGoingToTheEnd(), don't add 0 hour days if the total number of hours to allocate were already completed
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 12:05:58 +01:00
Diego Pino Garcia
f92ff825ea Fix bug a task in a queue can only be reloaded if it was previously inserted in that queue
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:48:59 +01:00
Diego Pino Garcia
1898219281 Added toString() method
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:46:06 +01:00
Manuel Rego Casasnovas
7a19c3f830 Updated Debian package and bump version to 0.9.1.
FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-23 00:20:49 +01:00
Óscar González Fernández
fc01b5d223 Take into account the allocation direction
The scheduling window must do the scheduling according to the last
allocation direction. The start and end dates are updated depending on
the type of scheduling done.

FEA: ItEr66S04BugFixing
2010-12-22 19:03:40 +01:00
Óscar González Fernández
621d72508e Expose methods for allocating from end to start
FEA: ItEr66S04BugFixing
2010-12-22 19:03:39 +01:00
Óscar González Fernández
5112be9c6e [Bug #760] Fix corner case
When the calculated value was end date and the task was moved
backwards with a new end date that is before to the old start date and
the allocation cannot be satisfied, the start date picked would be
posterior to the new end. To avoid this, the dates must always be
recalculated taking into account the length.

FEA: ItEr66S04BugFixing
2010-12-21 16:53:00 +01:00
Óscar González Fernández
2a2b8a3331 [Bug #766] Fix bug
The problem lied in that the task's start date changed due to the task
being moved but the resource allocation keep on using its own date
instead of the new value. This leads to using a stale value for doing
the allocation. This can cause that the used start date was posterior
that the new end date as it happened in the exception.

FEA: ItEr66S04BugFixing
2010-12-20 22:40:37 +01:00
Óscar González Fernández
07a30262bf [Bug #760] Fix bug
In case of not satisfying the allocation the proper date must be
returned.

FEA: ItEr66S04BugFixing
2010-12-20 17:41:43 +01:00
Óscar González Fernández
ef092794a0 Remove unused class
FEA: ItEr66S04BugFixing
2010-12-20 16:45:40 +01:00
Diego Pino Garcia
a2f359013e Respect dependency constraints for manual allocation
Manual allocation, either appropriative and non-appropriative, didn't
respect dependency constraints. Now manual allocation respects
dependencies in the same manner as automatic allocation

FEA: ItEr65OTS04CorreccionsRecursosLimitantes
2010-12-17 15:46:41 +01:00
Diego Pino Garcia
c3f78fcc8f Refactor DateAndHour.max and add DateAndHour.min
Remove Validation date not null in constructor

FEA: ItEr65OTS04CorreccionsRecursosLimitantes
2010-12-17 15:46:41 +01:00