Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020336Openbravo ERP09. Financial managementpublic2012-04-24 16:142012-05-31 11:07
maite 
jecharri 
urgentmajoralways
closedfixed 
5
2.50MP40 
3.0MP12 
Core
No
0020336: Should not be possible to create several periods for same date range in different years
Should not be possible to create several periods for same date range in different years. Currently, user is able to create this "duplicated" period and then some problems are encountered when trying to unpost one document
1. Go to Fiscal Calendar "Calendario España". Go to Year 2012 and create new Period with any name and for date range: 01-03-2011 to 31-03-2011
2. Realize that you are able to create period although correct March2011 period already exist for year 2011

This causes some problems, for example:
0. Go to Open/Close Period Control and open created period
1. Create Sales Invoice for "España" organization and set dates=15-03-2011. Add any line and Complete.
2. Post Invoice. Try to unpost and realize that document is not unposted and message "Number of unposted documents = 0, Number of deleted journal entries = 0" is received
No tags attached.
related to backport 00161922.50MP28 closed adrianromero the system allows create two periods with a same date 
depends on backport 00206542.50MP43 closed jecharri Should not be possible to create several periods for same date range in different years 
causes defect 0028787 closed vmromanos Impossible to create several calendars for the same organization 
Issue History
2012-04-24 16:14maiteNew Issue
2012-04-24 16:14maiteAssigned To => vmromanos
2012-04-24 16:14maiteModules => Core
2012-04-24 16:15maiteTarget Version => 3.0MP11
2012-04-24 16:18maiteRelationship addedrelated to 0016192
2012-04-24 16:18maiteIssue Monitored: networkb
2012-04-24 17:56vmromanosAssigned Tovmromanos => jonalegriaesarte
2012-04-26 10:30jonalegriaesarteversion => 2.50MP40
2012-04-30 10:53jonalegriaesarteNote Added: 0048190
2012-04-30 10:53jonalegriaesarteTarget Version3.0MP11 => 3.0MP12
2012-05-10 17:11ioritzCiaAssigned Tojonalegriaesarte => ioritzCia
2012-05-21 10:45ioritzCiaAssigned ToioritzCia => jecharri
2012-05-21 17:38hgbotCheckin
2012-05-21 17:38hgbotNote Added: 0048820
2012-05-21 17:38hgbotStatusnew => resolved
2012-05-21 17:38hgbotResolutionopen => fixed
2012-05-21 17:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c00d43ad77bdee88849caf11468e4c08c9e964e3 [^]
2012-05-21 17:40jecharriNote Added: 0048821
2012-05-21 17:54hgbotCheckin
2012-05-21 17:54hgbotNote Added: 0048823
2012-05-21 17:54hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/c00d43ad77bdee88849caf11468e4c08c9e964e3 [^] => http://code.openbravo.com/erp/devel/pi/rev/25cd2b136ddde70235b32a2056df097260792668 [^]
2012-05-21 17:55jecharriNote Added: 0048825
2012-05-25 12:13hudsonbotCheckin
2012-05-25 12:13hudsonbotNote Added: 0049181
2012-05-25 12:13hudsonbotCheckin
2012-05-25 12:13hudsonbotNote Added: 0049182
2012-05-29 18:46hgbotCheckin
2012-05-29 18:46hgbotNote Added: 0049447
2012-05-30 09:32maiteNote Added: 0049458
2012-05-30 09:32maiteStatusresolved => closed
2012-05-30 18:13hudsonbotCheckin
2012-05-30 18:13hudsonbotNote Added: 0049512
2012-05-31 11:07jecharriStatusclosed => new
2012-05-31 11:07jecharriResolutionfixed => open
2012-05-31 11:07jecharriStatusnew => scheduled
2012-05-31 11:07jecharrifix_in_branch => pi
2012-05-31 11:07jecharriStatusscheduled => resolved
2012-05-31 11:07jecharriResolutionopen => fixed
2012-05-31 11:07jecharriStatusresolved => closed
2015-01-27 18:10vmromanosRelationship addedcauses 0028787

Notes
(0048190)
jonalegriaesarte   
2012-04-30 10:53   
Moved to MP12 due to other priorities
(0048820)
hgbot   
2012-05-21 17:38   
Repository: erp/devel/pi
Changeset: c00d43ad77bdee88849caf11468e4c08c9e964e3
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Mon May 21 17:38:07 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c00d43ad77bdee88849caf11468e4c08c9e964e3 [^]

Fixes issue 20336: Should not be possible
to create several periods for same date range in different years.

---
M src-db/database/model/triggers/C_PERIOD_TRG2.xml
---
(0048821)
jecharri   
2012-05-21 17:40   
Test cases:
-steps to reproduce.

-verifie that you can continue creating periods manually or with the "create periods" process.
(0048823)
hgbot   
2012-05-21 17:54   
Repository: erp/devel/pi
Changeset: 25cd2b136ddde70235b32a2056df097260792668
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Mon May 21 17:54:12 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/25cd2b136ddde70235b32a2056df097260792668 [^]

Fixes issue 20336: Should not be possible
to create several periods for same date range in different years.

---
M src-db/database/model/triggers/C_PERIOD_TRG2.xml
---
(0048825)
jecharri   
2012-05-21 17:55   
Test cases:
-do the test cases with differents Fiscal calendars with different organizations
(0049181)
hudsonbot   
2012-05-25 12:13   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5401e185a8b0 [^]

Maturity status: Test
(0049182)
hudsonbot   
2012-05-25 12:13   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5401e185a8b0 [^]

Maturity status: Test
(0049447)
hgbot   
2012-05-29 18:46   
Repository: erp/devel/pi
Changeset: 475e5dd573e7bb4d616613ab493d2f59d718c987
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Tue May 29 18:41:57 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/475e5dd573e7bb4d616613ab493d2f59d718c987 [^]

Fixes issue 20504: "Copy Lines" process should
should shown proper error message instead of "Process failed during execution".
Issue 20336: Should not be possible to create several periods for same date range in different years. I have updated the message with id 0FF0EC6915A04F4EA5FB2FD09DA82F14, because now the previous message was incomplete to new code

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---
(0049458)
maite   
2012-05-30 09:32   
verified
(0049512)
hudsonbot   
2012-05-30 18:13   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/3752a665362c [^]

Maturity status: Test