details: https://code.openbravo.com/erp/devel/pi/rev/468cea8e7e38
changeset: 13134:468cea8e7e38
user: David Alsasua <david.alsasua <at> openbravo.com>
date: Mon Jul 11 12:39:36 2011 +0200
summary: Fixes issue 17951.
When creating a new client, org acct schema tab should not be filled in
diffstat:
src/org/openbravo/erpCommon/businessUtility/COAUtility.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r ebc3ecedee6b -r 468cea8e7e38
src/org/openbravo/erpCommon/businessUtility/COAUtility.java
--- a/src/org/openbravo/erpCommon/businessUtility/COAUtility.java Fri Jul
08 10:39:02 2011 +0200
+++ b/src/org/openbravo/erpCommon/businessUtility/COAUtility.java Mon Jul
11 12:39:36 2011 +0200
@@ -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;
}
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits