Author: jleroux
Date: Thu Oct 18 18:15:38 2012
New Revision: 1399761
URL: http://svn.apache.org/viewvc?rev=1399761&view=rev
Log:
A patch from Tom Burns "Find Inventory Event Planned Displays Error Message"
https://issues.apache.org/jira/browse/OFBIZ-5054
In the Manufacturing Manager MRP feature MRP Log displays an error when Find is
clicked in the Find Inventory Event Planned screenlet.
To reproduce:
1. Create a Routing table (details beyond the scope of this note)
2. Navigate to the Manufacturing MRP feature.
3. Select Run MPR
4. Enter an MRP Name and Facility
5. Click Submit
6. Select MRP Log Tab
7. When Status is finished click Find in the Find Inventory Event Planned
screenlet.
Expected:
MRP Plan
Actual:
Error message before MRP Plan
Error on line 159, column 17 in
component://manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
null is undefined. It cannot be assigned to initialQohEvent The problematic
instruction: ---------- ==> assignment: initialQohEvent=null [on line 159,
column 17 in
component://manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl]
---------- Java backtrace for programmers: ----------
...
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl?rev=1399761&r1=1399760&r2=1399761&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
(original)
+++
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
Thu Oct 18 18:15:38 2012
@@ -156,8 +156,8 @@ document.lookupinventory.productId.focus
<#assign errorEvents = delegator.findByAnd("MrpEvent",
Static["org.ofbiz.base.util.UtilMisc"].toMap("mrpEventTypeId", "ERROR",
"productId", inven.productId), null, false)>
<#assign qohEvents = delegator.findByAnd("MrpEvent",
Static["org.ofbiz.base.util.UtilMisc"].toMap("mrpEventTypeId", "INITIAL_QOH",
"productId", inven.productId), null, false)>
<#assign additionalErrorMessage = "">
- <#assign initialQohEvent = null>
- <#assign productFacility = null>
+ <#assign initialQohEvent = "">
+ <#assign productFacility = "">
<#if qohEvents?has_content>
<#assign initialQohEvent =
Static["org.ofbiz.entity.util.EntityUtil"].getFirst(qohEvents)>
</#if>