Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017953Openbravo ERP09. Financial managementpublic2011-07-11 11:562011-07-26 10:02
dalsasua 
dalsasua 
urgentmajoralways
closedfixed 
20Ubuntu 10.10
pi 
3.0MP12.50MP32 
Google Chrome, Mozilla Firefox
Core
No
0017953: Initial Client Setup failure
Initial Client Setup is failing in case accounting is created.
- Run Initial Client Setup
- Choose create accounting, providing any CoA
- Realize an error is shown.
diff --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;
   }
No tags attached.
blocks defect 00179513.0MP1 closed dalsasua Initial Client Setup failure 
Issue History
2011-07-11 12:35dalsasuaTypedefect => backport
2011-07-11 12:35dalsasuafix_in_branch => 2.50
2011-07-11 13:24hgbotCheckin
2011-07-11 13:24hgbotNote Added: 0038972
2011-07-11 13:24hgbotStatusscheduled => resolved
2011-07-11 13:24hgbotResolutionopen => fixed
2011-07-11 13:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/3e7ae53816059eca621de8996b799a2a0dd02b2f [^]
2011-07-26 10:02jonalegriaesarteNote Added: 0039351
2011-07-26 10:02jonalegriaesarteStatusresolved => closed
2011-07-26 10:02jonalegriaesarteFixed in Version => 2.50MP32

Notes
(0038972)
hgbot   
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   
2011-07-26 10:02   
Verified