Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005851Openbravo ERP01. General setuppublic2008-11-06 12:482009-04-21 11:05
rafaroda 
vmromanos 
highmajoralways
closedfixed 
20Ubuntu 7.10
pi 
2.50 
Core
No
0005851: Problems in opening periods for son organizations
One should be able to open the periods of sons organizations.
1) Create new organization in 'General Setup || Enterprise || Organization'
2) Its Organization Type must be a legal entity.
3) Check Allow Period Control check box then select a calendar.
4) Set this organization as ready.
5) Create a new organization with Organization Type equals legal entity.
6) Do NOT check Allow Period Control check box.
7) In the organization tree, set this organization as son of the first one.
8) Set the second organization as ready.
9) Go to 'Financial Management || Accounting || Transactions || Open/Close Period Control'.
10) Select the first organization, select a year, number of periods, action 'Open period' and tick 'Open also child organizations' check box.
11) Save then press 'Open/Close All' button.
12) Go to 'General Setup || Enterprise || Organization' and check that all periods of the first organization are open in 'General Setup || Enterprise || Organization || Organization >> Year >> Period >> Period Control'
13) Create an invoice for second organization and add some lines to it.
14) Complete this invoice.

You can not. The check for periods is not done for antecesors.
Get the calendar owner for the organization header in the check period control is opened inside the procedures in http://wiki.openbravo.com/wiki/Projects/EnhancedMulti-organizationSupport/Technical_Documentation#2.3 [^]
-- Check the period control is opened
          SELECT COUNT(C_Period_ID)
          INTO v_available_period
          FROM C_Period
          WHERE v_DateAcct BETWEEN STARTDATE AND ENDDATE
          AND EXISTS (SELECT 1
                      FROM C_PeriodControl
                      WHERE C_PeriodControl.C_Period_ID=C_Period.C_Period_ID
                      AND DocBaseType=(SELECT DocBaseType FROM C_DocType WHERE C_DocType_ID=v_DocTypeTarget_ID)
                      AND AD_Org_ID=AD_ORG_GETCALENDAROWNER (v_AD_Org_ID)
                      AND PeriodStatus='O'
                      );
          
multi-org
Issue History
2008-11-06 12:48rafarodaNew Issue
2008-11-06 12:48rafarodaAssigned To => vmromanos
2008-11-06 12:48rafarodasf_bug_id0 => 2229291
2008-11-06 12:48rafarodaRegression testing => No
2008-11-06 12:48rafarodaTag Attached: multi-org
2008-11-06 18:12rafarodaProposed Solution updated
2008-11-06 18:12rafarodaSteps to Reproduce Updated
2008-11-06 18:21rafarodaSteps to Reproduce Updated
2008-11-09 20:12psarobeStatusnew => scheduled
2008-11-09 20:12psarobeNote Added: 0010104
2008-11-09 20:12psarobefix_in_branch => trunk
2008-11-17 18:51svnbotCheckin
2008-11-17 18:51svnbotNote Added: 0010353
2008-11-17 18:51svnbotStatusscheduled => resolved
2008-11-17 18:51svnbotResolutionopen => fixed
2008-11-17 18:51svnbotsvn_revision => 10167
2009-04-21 11:05psarobeStatusresolved => closed

Notes
(0010104)
psarobe   
2008-11-09 20:12   
Reminder to engineers: Please write the steps and the issues to verify when the bug is fixed so QA team can check if the fixed is correct
(0010353)
svnbot   
2008-11-17 18:51   
Repository: openbravo
Revision: 10167
Author: vmromanos
Date: 2008-11-17 18:51:43 +0100 (Mon, 17 Nov 2008)

Fixed bug 0005851: Problems in opening periods for son organizations

---
U trunk/src/org/openbravo/erpCommon/ad_actionButton/Posted.java
U trunk/src/org/openbravo/erpCommon/ad_actionButton/Posted_data.xsql
U trunk/src/org/openbravo/erpCommon/ad_forms/AcctSchema_data.xsql
U trunk/src-db/database/model/functions/A_AMORTIZATION_PROCESS.xml
U trunk/src-db/database/model/functions/C_BANKSTATEMENT_POST.xml
U trunk/src-db/database/model/functions/C_CASH_POST.xml
U trunk/src-db/database/model/functions/C_DP_MANAGEMENT_POST.xml
U trunk/src-db/database/model/functions/C_INVOICE_POST.xml
U trunk/src-db/database/model/functions/C_SETTLEMENT_POST.xml
U trunk/src-db/database/model/functions/GL_JOURNAL_POST.xml
U trunk/src-db/database/model/functions/MA_WORKEFFORT_VALIDATE.xml
U trunk/src-db/database/model/functions/M_INOUT_POST.xml
U trunk/src-db/database/model/functions/M_INVENTORY_POST.xml
U trunk/src-db/database/model/functions/M_MOVEMENT_POST.xml
U trunk/src-db/database/model/functions/M_PRODUCTION_RUN.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=10167&sc=1 [^]