Author: jaz
Date: Mon May 14 12:00:43 2007
New Revision: 537950
URL:
http://svn.apache.org/viewvc?view=rev&rev=537950Log:
added fatal error message to async fin account creation services (to utilize the new email debug options)
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java
Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java?view=diff&rev=537950&r1=537949&r2=537950==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountProductServices.java Mon May 14 12:00:43 2007
@@ -61,7 +61,7 @@
try {
orderHeader = orderItem.getRelatedOne("OrderHeader");
} catch (GenericEntityException e) {
- Debug.logError(e, "Unable to get OrderHeader from OrderItem",module);
+ Debug.logError(e, "Unable to get OrderHeader from OrderItem", module);
return ServiceUtil.returnError("Unable to get OrderHeader from OrderItem");
}
@@ -116,7 +116,9 @@
productStoreId = orh.getProductStoreId();
}
if (productStoreId == null) {
- return ServiceUtil.returnError("Unable to create financial account; no productStoreId on OrderHeader : " + orderId);
+ String errMsg = "Unable to create financial accout; no productStoreId on OrderHeader : " + orderId;
+ Debug.logFatal(errMsg, module);
+ return ServiceUtil.returnError(errMsg);
}
// party ID (owner)
@@ -204,6 +206,7 @@
return ServiceUtil.returnError(e.getMessage());
}
if (ServiceUtil.isError(createResp)) {
+ Debug.logFatal(ServiceUtil.getErrorMessage(createResp), module);
return createResp;
} else {
finAccountId = (String) createResp.get("finAccountId");
@@ -224,6 +227,7 @@
return ServiceUtil.returnError(e.getMessage());
}
if (ServiceUtil.isError(roleResp)) {
+ Debug.logFatal(ServiceUtil.getErrorMessage(roleResp), module);
return roleResp;
}
@@ -246,6 +250,7 @@
return ServiceUtil.returnError(e.getMessage());
}
if (ServiceUtil.isError(depositResp)) {
+ Debug.logFatal(ServiceUtil.getErrorMessage(depositResp), module);
return depositResp;
}