Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014993Openbravo ERP09. Financial managementpublic2010-10-22 14:272010-12-16 22:16
networkb 
dalsasua 
urgentmajoralways
closedfixed 
5
2.50MP22 
2.50MP25 
Core
No
0014993: Error when closing year with several organizations and same calendar
If you have 2 legal entities with accounting and you close year 2006 for one of them and then try to close January in year 2007 for this organization. You will obtain error saying that you should close previous year because process is not filtering by organization
1. General Setup || Enterprise || Initial organization setup || Initial organization setup: create 2 legal entities with accounting at same level and same calendar
2. General Setup || Enterprise || Organization || Organization : allow period control and select calendar. Set as Ready.
3. Financial Management || Accounting || Transactions || Open/Close Period Control || Open/Close Period Control : create record for closing year 2006 in Org1
4. Financial Management || Accounting || Transactions || Open/Close Period Control || Open/Close Period Control : create record for closing January in year 2007 in Org1

Realize that error is obtained:
Error:
In order to close a year, all the previous ones must be closed.
All checks in C_PERIOD_PROCESS function should filter by Organization, because same behavior happens when opening
No tags attached.
related to backport 00190642.50MP36 closed mirurita Error when opening year with several organizations and same calendar 
Issue History
2010-10-22 14:27networkbNew Issue
2010-10-22 14:27networkbAssigned To => dalsasua
2010-11-17 13:20adrianromeroTarget Version2.50MP24 => 2.50MP25
2010-11-23 18:17hgbotCheckin
2010-11-23 18:17hgbotNote Added: 0032799
2010-11-23 18:17hgbotStatusnew => resolved
2010-11-23 18:17hgbotResolutionopen => fixed
2010-11-23 18:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ed53f6585c1628a37afcf306f337abea0a629b93 [^]
2010-11-30 17:52hudsonbotCheckin
2010-11-30 17:52hudsonbotNote Added: 0032940
2010-12-10 16:44psarobeNote Added: 0033108
2010-12-10 16:44psarobeStatusresolved => closed
2010-12-16 22:16anonymoussf_bug_id0 => 3138786
2011-11-14 17:48maiteRelationship addedrelated to 0019064

Notes
(0032799)
hgbot   
2010-11-23 18:17   
Repository: erp/devel/pi
Changeset: ed53f6585c1628a37afcf306f337abea0a629b93
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Tue Nov 23 18:15:20 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ed53f6585c1628a37afcf306f337abea0a629b93 [^]

Fixes issue 14993: Error when closing year
with several organizations and same calendar

---
M src-db/database/model/functions/C_PERIOD_PROCESS.xml
---
(0032940)
hudsonbot   
2010-11-30 17:52   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/ed53f6585c16 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/7c27b4b566df [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.19017.obx [^]
(0033108)
psarobe   
2010-12-10 16:44   
Works fine