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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0017953
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 09. Financial managementmajoralways2011-07-11 11:562011-07-26 10:02
ReporterdalsasuaView Statuspublic 
Assigned Todalsasua 
PriorityurgentResolutionfixedFixed in Version2.50MP32
StatusclosedFix in branch2.50Fixed in SCM revision3e7ae5381605
ProjectionnoneETAnoneTarget Version3.0MP1
OSLinux 32 bitDatabaseOracleJava version1.6.0_21
OS VersionUbuntu 10.10Database version11.2.0 SEAnt version1.8.0
Product VersionpiSCM revision33ca9da896b7 
Review Assigned To
Web browserGoogle Chrome, Mozilla Firefox
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0017953: Initial Client Setup failure

DescriptionInitial Client Setup is failing in case accounting is created.
Steps To Reproduce- Run Initial Client Setup
- Choose create accounting, providing any CoA
- Realize an error is shown.
Proposed Solutiondiff --git a/src/org/openbravo/erpCommon/businessUtility/COAUtility.java b/src/org/openbravo/erpCommon/businessUtility/COAUtility.java
--- a/src/org/openbravo/erpCommon/businessUtility/COAUtility.java
+++ b/src/org/openbravo/erpCommon/businessUtility/COAUtility.java
@@ -414,11 +414,13 @@
     log4j.debug("insertAccountingSchema() - Acct.schema defaults correctly iserted.");
 
     log4j.debug("insertAccountingSchema() - Inserting Organization Accounting Schema record.");
- OrganizationAcctSchema orgAcctSchema;
+ OrganizationAcctSchema orgAcctSchema = null;
+ if (organization != null && organization.getId() != "0") {
     try {
       orgAcctSchema = InitialSetupUtility.insertOrgAcctSchema(client, acctSchema, organization);
     } catch (Exception e) {
- return logError("@CreateAccountingFailed@",
+ return logError(
+ "@CreateAccountingFailed@",
           "insertAccountingSchema() - Exception while creating organization - acct. schema entry",
           e);
     }
@@ -426,7 +428,7 @@
     if (orgAcctSchema == null)
       return logError("@CreateAccountingFailed@",
           "insertAccountingSchema() - Exception while creating organization - acct. schema entry");
-
+ }
     return obeResult;
   }
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00179513.0MP1 closeddalsasua Initial Client Setup failure 

-  Notes
(0038972)
hgbot (developer)
2011-07-11 13:24

Repository: erp/stable/2.50
Changeset: 3e7ae53816059eca621de8996b799a2a0dd02b2f
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Mon Jul 11 13:15:38 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/3e7ae53816059eca621de8996b799a2a0dd02b2f [^]

Fixes issue 17953.

---
M src/org/openbravo/erpCommon/businessUtility/COAUtility.java
---
(0039351)
jonalegriaesarte (reporter)
2011-07-26 10:02

Verified

- Issue History
Date Modified Username Field Change
2011-07-11 12:35 dalsasua Type defect => backport
2011-07-11 12:35 dalsasua fix_in_branch => 2.50
2011-07-11 13:24 hgbot Checkin
2011-07-11 13:24 hgbot Note Added: 0038972
2011-07-11 13:24 hgbot Status scheduled => resolved
2011-07-11 13:24 hgbot Resolution open => fixed
2011-07-11 13:24 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/3e7ae53816059eca621de8996b799a2a0dd02b2f [^]
2011-07-26 10:02 jonalegriaesarte Note Added: 0039351
2011-07-26 10:02 jonalegriaesarte Status resolved => closed
2011-07-26 10:02 jonalegriaesarte Fixed in Version => 2.50MP32


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker