Commit graph

546 commits

Author SHA1 Message Date
Lorenzo Tilve Álvaro
880f51704a Forced deletion of Label and Criterion parameters and session bandboxes after entities deletion
FEA: ItEr77S15FilteringEnhancements
2013-02-07 03:08:30 +01:00
Lorenzo Tilve Álvaro
eefd4026fd Modified getOrdersIdsByDates query to get the intersecting projects between start and end dates
In this way it's possible to get all the projects for wich some part of their lenght is
comprehended between the defined start and end dates, with the previous strategy only the
projects which were completely included in the interval were being listed.

FEA: ItEr77S15FilteringEnhancements
2013-02-06 09:40:43 +01:00
Manuel Rego Casasnovas
d1108540ee Fix syntax error in orders query
If the list of unscheduled projects is empty, the restriction shouldn't be added
or it'll cause a syntax error due to an empty list "o.id IN ()".

FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:03:35 +01:00
Manuel Rego Casasnovas
58b963f30f Include unscheduled projects in orders query
When you import a project from the web service, the task elements are not
created yet, so we need to return these projects in the query otherwise they
will be not visible at all for the users.

FEA: ItEr77S15FilteringEnhancements
2013-02-05 12:42:11 +01:00
Manuel Rego Casasnovas
f02d6f8a8d Fix syntax error in orders query
Change "=" for "IN".

FEA: ItEr77S15FilteringEnhancements
2013-02-05 12:42:03 +01:00
Manuel Rego Casasnovas
86e1d77791 New query in OrderDAO to get projects filtered
The new query receives several params from the filters (dates, labels, criteria,
customer and state) and returns the filtered orders.

For the moment it's only used to get the initial list of orders for the projects
list window.

FEA: ItEr77S15FilteringEnhancements
2013-02-04 14:24:45 +01:00
Lorenzo Tilve Álvaro
58ad890227 Merge branch 'master' into filtering-improvements 2013-02-01 13:14:53 +01:00
Lorenzo Tilve Álvaro
ed69a6e7bc Imported configured or previously used criterion into resourcesLoad filtering
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:13:05 +01:00
Lorenzo Tilve Álvaro
82d78afec4 Moved method to generate label name and type pattern for finders to Label class
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:59 +01:00
Lorenzo Tilve Álvaro
32641a5919 Included persistence information for resources load criterion filter property
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
13a4473d3f Created Criterion configuration bandbox on user settings to filter Resources Load results
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
dcd7cd8c09 Refactored to OrderStatusEnum static method to get default visible project status 2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
bd5914b011 Fixed Hibernate relationship to store project label filtering preferences
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Manuel Rego Casasnovas
2bf13fef80 Bug #1607: Fix issue filtering the resources load window
The issue was introduced in commit 05132fd5a7.
Where it was defined an algorithm:
  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is between FSD and FED

This was wrong, it should be:
  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is lower or equals than FSD or APSD is
    lower or equals than FED

FEA: ItEr77S04BugFixing
2013-01-29 14:05:48 +01:00
Lorenzo Tilve Álvaro
1cab756069 Added database changelog for filtering preferences
FEA: ItEr77S15FilteringEnhancements
2013-01-29 13:20:18 +01:00
Lorenzo Tilve Álvaro
676b6c4876 Defined hibernate configuration for filtering parameters persistance
FEA: ItEr77S15FilteringEnhancements
2013-01-29 13:20:18 +01:00
Lorenzo Tilve Álvaro
c3d077efce Added new parameters to user preferences for company view and resource load filtering
FEA: ItEr77S15FilteringEnhancements
2013-01-29 13:20:18 +01:00
Manuel Rego Casasnovas
727bc642b8 Bump version number to 1.3.3
FEA: ItEr77S03Community
2012-12-21 14:38:48 +01:00
Manuel Rego Casasnovas
87796fcfc8 i18n: Mark some missing strings to be translated
FEA: ItEr77S04BugFixing
2012-12-20 17:44:20 +01:00
Manuel Rego Casasnovas
7813f8a207 Bug #1594: Fix issue opening transaction at DAO if needed
FEA: ItEr77S04BugFixing
2012-12-11 13:55:30 +01:00
Manuel Rego Casasnovas
331106824f Bump version number to 1.3.2
FEA: ItEr77S03Community
2012-11-30 07:41:11 +01:00
Manuel Rego Casasnovas
05132fd5a7 Bug #1562: Fix issue filtering properly resources according to their activation periods
Now the dates filtering the resource load window are checked against the
resources activation periods. Using the following algorithm:

1) If the resource has not activation periods then it should always appear

2) The filter can have null for start and end dates and the activation periods
   can have null for end date. So we should define what to do in each case:

  Let's define some acronyms:
  * Filter Start Date: FSD
  * Filter End Date: FED
  * Activation Period Start Date: APSD (cannot be null)
  * Activation Period End Date: APED

  2.1) FSD is null and FED are null: The resource should appear regardless its
       activation periods

  2.2) FSD is null:
    2.2.1) APED is null: Check if APSD is lower or equals than FED
    2.2.2) APED is not null: Check if APSD is lower or equals than FED or APED
           is lower or equals than FED

  2.3) FED is null:
    2.3.1) APED is null: The resource should appear
    2.3.2) APED is not null: Check if APSD is later or equals than FSD or APED
           is later or equals than FSD

  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is between FSD and FED
    2.4.2) APED is not null: Check if activation period overlaps filter period
           at any point

FEA: ItEr77S04BugFixing
2012-11-29 07:16:08 +01:00
Manuel Rego Casasnovas
805f65b9ea Add new field to configure seconds for planning warning
FEA: ItEr77S03Community
2012-11-26 18:06:37 +01:00
Lorenzo Tilve Álvaro
fc424944d1 Exposed project and tasks codes from fundamental properties to generate entry point URLs
FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00
Manuel Rego Casasnovas
2b07654d61 Add checkbox to mark task as finished in personal timesheets popup
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-22 10:53:12 +01:00
Manuel Rego Casasnovas
a6ef3f34d2 Bug #1553, #1554: Remove unique constraint in DB for OrderElement codes
In order to allow switch tasks codes and avoid the issues changing the code
while creating a child, the unique constraint in DB for field code in
order_element table has been removed.

Instead two new constraints methods have been added:
* OrderElement.checkConstraintUniqueCode()
* Order.checkConstraintUniqueCodeInsideOrder()

FEA: ItEr77S04BugFixing
2012-11-20 09:52:32 +01:00
Manuel Rego Casasnovas
e05678e946 Bug #1553: Fix issue modifying methods toLeaf and toContainer
FEA: ItEr77S04BugFixing
2012-11-19 17:15:41 +01:00
Manuel Rego Casasnovas
babe242b52 Fix problems in service to import personal timesheets
The comparison with the OrderElemen was wrong and it causes that the data stored
was wrong.

Moreover, it was not needed to open the transaction in the bound service method
as it's already opened in PersonalTimesheetModel.

FEA: ItEr77S14BoundUsersWebServices
2012-11-19 10:23:06 +01:00
Manuel Rego Casasnovas
6927955a4a Bug #1556: Fix problems with i18n of the new enum
FEA: ItEr77S04BugFixing
2012-11-16 12:18:05 +01:00
Óscar González Fernández
32a71e85ee Remove other allocation methods with LocalDate parameters
FEA: ItEr77S04BugFixing
2012-11-15 13:15:09 +01:00
Óscar González Fernández
0ba4790c00 Remove some allocation methods with LocalDate parameters
Now the IntraDayDates methods are used. Most of the changes are in the
tests, since they were using the previous LocalDate methods.

FEA: ItEr77S04BugFixing
2012-11-15 13:15:07 +01:00
Óscar González Fernández
bd29c64fe5 Bug #1413: Fix bug
Fix the bug for when calculating the hours.

FEA: ItEr77S04BugFixing
2012-11-15 13:15:04 +01:00
Manuel Rego Casasnovas
b218f380a7 Merge branch 'adapt-planning-according-timesheets' 2012-11-15 12:09:10 +01:00
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
9bd527c32f Remove assignments after end date for tasks marked as finished in the timesheets
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-13 08:08:16 +01:00
Manuel Rego Casasnovas
a1f4ece458 Disable new, new from template, up, down, indent and unindent buttons in WBS
Depending on selected node and if it's or not updated from templates the
different buttons are enabled or disabled accordingly.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 22:32:38 +01:00
Óscar González Fernández
4780b1fad0 Bug #1413: Fix bug
The methods used to calculate the start and end of the task when
moving the task and when allocating in the form were different. This
caused the length of the task to change when being moved.

Now the method used when moving the task is the one always in use,
because it's more precise.
2012-11-09 12:22:05 +01:00
Óscar González Fernández
d27fabbbeb Bug #1413: Use IntraDayDate when doing allocation
When doing the allocation that calculates RESOURCES_PER_DAY use
IntraDayDates instead of LocalDate so if the first day of the
allocation is partially allocated, the part free is used.

FEA: ItEr77S04BugFixing
2012-11-09 12:22:03 +01:00
Manuel Rego Casasnovas
af5d2b2776 Rename SUBCONTRACTED_PENDING_ORDER to OUTSOURCED
FEA: ItEr77S03Community
2012-11-08 20:01:56 +01:00
Manuel Rego Casasnovas
c1b496fd07 Configure default project status as PRE-SALES
FEA: ItEr77S03Community
2012-11-08 19:54:33 +01:00
Manuel Rego Casasnovas
ddd725ba33 Update order state in database due to new status added to the enum
FEA: ItEr77S03Community
2012-11-08 19:54:33 +01:00
Manuel Rego Casasnovas
17f433128e Add new status in OrderStatusEnum: PRE-SALES and ON HOLD
FEA: ItEr77S03Community
2012-11-08 19:42:49 +01:00
Jacobo Aragunde Pérez
c563997424 Fix visibility issues in OpenJDK 1.7.
Not it's not possible to access private members from a static context.

FEA: ItEr77S04BugFixing
2012-11-08 16:39:51 +01:00
Manuel Rego Casasnovas
4b2b1461d3 New web service returning the personal timesheets data for a task of a bound user
FEA: ItEr77S14BoundUsersWebServices
2012-11-08 12:56:34 +01:00
Manuel Rego Casasnovas
5ebffa666b New web service returning the assigned tasks of a user
It uses MyTasksAreaModel, as the main UI for bound users. The service is only
accessible for bound users.

FEA: ItEr77S14BoundUsersWebServices
2012-11-08 12:56:17 +01:00
Manuel Rego Casasnovas
f25897a6a4 Disable change of scheduling state point in WBS for tasks updated from timesheets
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-07 15:42:43 +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
944d59e2b9 Bug #1555: Fix issue adding condition in both UI and web service
FEA: ItEr77S04BugFixing
2012-11-06 15:51:36 +01:00
Manuel Rego Casasnovas
fe0835ef66 Remove properly order element using OrderModel class
In that way we are sure that everything is removed properly. We have to manually
detach the removed element from its parent in order to avoid delete the parent
too.

FEA: ItEr77S13AllowDeleteOrderElements
2012-11-06 11:33:39 +01:00