Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020654Openbravo ERP09. Financial managementpublic2012-04-24 16:142012-05-31 13:02
maite 
jecharri 
urgentmajoralways
closedfixed 
5
2.50MP40 
2.50MP43 
Core
No
0020654: 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.
blocks defect 00203363.0MP12 closed jecharri Should not be possible to create several periods for same date range in different years 
Issue History
2012-05-31 11:07jecharriTypedefect => backport
2012-05-31 11:07jecharrifix_in_branch => 2.50
2012-05-31 11:09jecharriTarget Version3.0MP12 => 2.50MP43
2012-05-31 11:31hgbotCheckin
2012-05-31 11:31hgbotNote Added: 0049526
2012-05-31 11:31hgbotStatusscheduled => resolved
2012-05-31 11:31hgbotResolutionopen => fixed
2012-05-31 11:31hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/25cd2b136ddde70235b32a2056df097260792668 [^] => http://code.openbravo.com/erp/stable/2.50/rev/55c5e981efd3434fa74a8f2c6aee4fa733aa0c3b [^]
2012-05-31 13:02maiteNote Added: 0049538
2012-05-31 13:02maiteStatusresolved => closed

Notes
(0049526)
hgbot   
2012-05-31 11:31   
Repository: erp/stable/2.50
Changeset: 55c5e981efd3434fa74a8f2c6aee4fa733aa0c3b
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Thu May 31 11:30:47 2012 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/55c5e981efd3434fa74a8f2c6aee4fa733aa0c3b [^]

Fixes issue 20654: 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
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0049538)
maite   
2012-05-31 13:02   
verified