Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002989Openbravo ERP05. Production managementpublic2008-06-04 14:062008-11-06 09:12
gorkaion 
gorkaion 
normalminoralways
closedfixed 
5
 
2.40alpha-r3 
Core
No
0002989: Copy process plan versions overlaps dates in some cases
Tested in trunk revision 4739 with oracle database.

Steps to reproduce.

1) Create a new Process Plan A with a version.

2) Create another Process Plan B with 2 versions,

The valid period of the first one (B1) is 2000-01-01 to 3000-01-01 and the second one (B2) from 3000-01-01 to 9999-31-12.

3) In the Process Plan B press the copy version button and select one version.

The new version (B3) overlaps the existing ones.

The dates are:
B1 2000-01-01 to currentdate
B2 3000-01-01 to 9999-31-12
B3 currentdate to 9999-31-12

It shoukd be:
B1 2000-01-01 to currentdate
B2 3000-01-01 to 9999-31-12
B3 currentdate to 3000-01-01

No tags attached.
Issue History
2008-11-06 09:12psarobeRegression testing => No
2008-11-06 09:12psarobeStatusresolved => closed

Notes
(0006578)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1984406 [^]
(0003719)
gorkaion   
2008-06-04 17:44   
(edited on: 2008-06-12 09:26)
Logged In: YES
user_id=1500690
Originator: YES

Fixed in trunk revision 4815

Changed the Procedure to take properly into account existing versions on the process plan to calculate the dates so no versions are overlapped.