You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2008/10/05 19:28:26 UTC
svn commit: r701834 - in
/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp:
InventoryEventPlannedServices.java MrpServices.java
Author: mrisaliti
Date: Sun Oct 5 10:28:25 2008
New Revision: 701834
URL: http://svn.apache.org/viewvc?rev=701834&view=rev
Log:
Some cleanup on manufacturing component, no functional changed (Part of issue OFBIZ-1982)
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
Modified: ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java?rev=701834&r1=701833&r2=701834&view=diff
==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java (original)
+++ ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/InventoryEventPlannedServices.java Sun Oct 5 10:28:25 2008
@@ -54,7 +54,7 @@
try {
createOrUpdateMrpEvent(parameters, quantity, (String)context.get("facilityId"), (String)context.get("eventName"), false, delegator);
} catch (GenericEntityException e) {
- Debug.logError(e,"Error : delegator.findByPrimaryKey(\"MrpEvent\", parameters =)"+parameters, module);
+ Debug.logError(e,"Error : findByPrimaryKey(\"MrpEvent\", parameters =)"+parameters, module);
return ServiceUtil.returnError("Problem, on database access, for more detail look at the log");
}
return ServiceUtil.returnSuccess();
Modified: ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java?rev=701834&r1=701833&r2=701834&view=diff
==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java (original)
+++ ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java Sun Oct 5 10:28:25 2008
@@ -79,14 +79,14 @@
listResult = delegator.findList("MrpEvent", null, null, null, null, false);
//int numOfRecordsRemoved = delegator.removeByCondition("MrpEvent", null);
} catch(GenericEntityException e) {
- Debug.logError(e,"Error : delegator.findList(\"MrpEvent\", null, null, null, null, false)", module);
+ Debug.logError(e,"Error : findList(\"MrpEvent\", null, null, null, null, false)", module);
return ServiceUtil.returnError("Problem, we can not find all the items of MrpEvent, for more detail look at the log");
}
if (listResult != null){
try{
delegator.removeAll(listResult);
} catch(GenericEntityException e) {
- Debug.logError(e,"Error : delegator.removeAll(listResult), listResult ="+listResult, module);
+ Debug.logError(e,"Error : removeAll(listResult), listResult ="+listResult, module);
return ServiceUtil.returnError("Problem, we can not remove the MrpEvent items, for more detail look at the log");
}
}
@@ -151,7 +151,7 @@
try {
resultList = delegator.findByAnd("OrderHeaderItemAndShipGroup", parameters, UtilMisc.toList("orderId"));
} catch(GenericEntityException e) {
- Debug.logError(e, "Error : delegator.findByAnd(\"OrderItem\", parameters\")", module);
+ Debug.logError(e, "Error : findByAnd(\"OrderItem\", parameters\")", module);
Debug.logError(e, "Error : parameters = "+parameters,module);
return ServiceUtil.returnError("Problem, we can not find the order items, for more detail look at the log");
}
@@ -323,7 +323,7 @@
try {
resultList = delegator.findByAnd("WorkEffortAndGoods", parameters);
} catch(GenericEntityException e) {
- Debug.logError(e, "Error : delegator.findByAnd(\"OrderItem\", parameters\")", module);
+ Debug.logError(e, "Error : findByAnd(\"OrderItem\", parameters\")", module);
Debug.logError(e, "Error : parameters = "+parameters,module);
return ServiceUtil.returnError("Problem, we can not find the order items, for more detail look at the log");
}
@@ -355,7 +355,7 @@
try {
resultList = delegator.findByAnd("WorkEffortAndGoods", parameters);
} catch(GenericEntityException e) {
- Debug.logError(e, "Error : delegator.findByAnd(\"OrderItem\", parameters\")", module);
+ Debug.logError(e, "Error : findByAnd(\"OrderItem\", parameters\")", module);
Debug.logError(e, "Error : parameters = "+parameters,module);
return ServiceUtil.returnError("Problem, we can not find the order items, for more detail look at the log");
}
@@ -574,7 +574,7 @@
try {
InventoryEventPlannedServices.createOrUpdateMrpEvent(parameters, new Double(-1.0 * componentEventQuantity), null, product.get("productId") + ": " + eventDate, false, delegator);
} catch (GenericEntityException e) {
- Debug.logError("Error : delegator.findByPrimaryKey(\"MrpEvent\", parameters) ="+parameters+"--"+e.getMessage(), module);
+ Debug.logError("Error : findByPrimaryKey(\"MrpEvent\", parameters) ="+parameters+"--"+e.getMessage(), module);
logMrpError(mrpId, node.getProduct().getString("productId"), "Unable to create event (processBomComponent)", delegator);
}
}