Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017951Openbravo ERP09. Financial managementpublic2011-07-11 11:562011-08-01 14:19
dalsasua 
dalsasua 
urgentmajoralways
closedfixed 
20Ubuntu 10.10
pi 
3.0MP13.0MP2 
Google Chrome, Mozilla Firefox
Core
No
0017951: 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.
depends on backport 00179533.0MP1 closed dalsasua Initial Client Setup failure 
Issue History
2011-07-11 11:56dalsasuaNew Issue
2011-07-11 11:56dalsasuaAssigned To => dalsasua
2011-07-11 11:56dalsasuaWeb browser => Google Chrome, Mozilla Firefox
2011-07-11 11:56dalsasuaModules => Core
2011-07-11 12:35dalsasuaStatusnew => scheduled
2011-07-11 12:35dalsasuafix_in_branch => pi
2011-07-11 12:40hgbotCheckin
2011-07-11 12:40hgbotNote Added: 0038967
2011-07-11 12:40hgbotStatusscheduled => resolved
2011-07-11 12:40hgbotResolutionopen => fixed
2011-07-11 12:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/468cea8e7e38e8097bf46539545e40c829470588 [^]
2011-07-14 10:13malsasuaNote Added: 0039050
2011-07-14 10:13malsasuaStatusresolved => closed
2011-07-14 10:13malsasuaFixed in Version => 3.0MP2
2011-08-01 14:19hudsonbotCheckin
2011-08-01 14:19hudsonbotNote Added: 0039578

Notes
(0038967)
hgbot   
2011-07-11 12:40   
Repository: erp/devel/pi
Changeset: 468cea8e7e38e8097bf46539545e40c829470588
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Mon Jul 11 12:39:36 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/468cea8e7e38e8097bf46539545e40c829470588 [^]

Fixes issue 17951.
When creating a new client, org acct schema tab should not be filled in

---
M src/org/openbravo/erpCommon/businessUtility/COAUtility.java
---
(0039050)
malsasua   
2011-07-14 10:13   
tested: it works fine
(0039578)
hudsonbot   
2011-08-01 14:19   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cf2afed6e8ef [^]

Maturity status: Test