Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0005851
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 01. General setupmajoralways2008-11-06 12:482009-04-21 11:05
ReporterrafarodaView Statuspublic 
Assigned Tovmromanos 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision10167
ProjectionnoneETAnoneTarget Version2.50
OSLinux 32 bitDatabasePostgreSQLJava version1.5
OS VersionUbuntu 7.10Database version8.3Ant version1.7
Product VersionpiSCM revision9731 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0005851: Problems in opening periods for son organizations

DescriptionOne should be able to open the periods of sons organizations.
Steps To Reproduce1) 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.
Proposed SolutionGet 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'
                      );
          
Tagsmulti-org
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0010104)
psarobe (manager)
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 (reporter)
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 [^]

- Issue History
Date Modified Username Field Change
2008-11-06 12:48 rafaroda New Issue
2008-11-06 12:48 rafaroda Assigned To => vmromanos
2008-11-06 12:48 rafaroda sf_bug_id 0 => 2229291
2008-11-06 12:48 rafaroda Regression testing => No
2008-11-06 12:48 rafaroda Tag Attached: multi-org
2008-11-06 18:12 rafaroda Proposed Solution updated
2008-11-06 18:12 rafaroda Steps to Reproduce Updated
2008-11-06 18:21 rafaroda Steps to Reproduce Updated
2008-11-09 20:12 psarobe Status new => scheduled
2008-11-09 20:12 psarobe Note Added: 0010104
2008-11-09 20:12 psarobe fix_in_branch => trunk
2008-11-17 18:51 svnbot Checkin
2008-11-17 18:51 svnbot Note Added: 0010353
2008-11-17 18:51 svnbot Status scheduled => resolved
2008-11-17 18:51 svnbot Resolution open => fixed
2008-11-17 18:51 svnbot svn_revision => 10167
2009-04-21 11:05 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker