svn commit: r1399788 - in /ofbiz/branches/release11.04: ./ applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1399788 - in /ofbiz/branches/release11.04: ./ applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl

jleroux@apache.org
Author: jleroux
Date: Thu Oct 18 19:03:30 2012
New Revision: 1399788

URL: http://svn.apache.org/viewvc?rev=1399788&view=rev
Log:
"Applied fix from trunk for revision: 1399761  "
------------------------------------------------------------------------
r1399761 | jleroux | 2012-10-18 20:15:38 +0200 (jeu., 18 oct. 2012) | 19 lines

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/branches/release11.04/   (props changed)
    ofbiz/branches/release11.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl

Propchange: ofbiz/branches/release11.04/
------------------------------------------------------------------------------
  Merged /ofbiz/trunk:r1399761

Modified: ofbiz/branches/release11.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl?rev=1399788&r1=1399787&r2=1399788&view=diff
==============================================================================
--- ofbiz/branches/release11.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl (original)
+++ ofbiz/branches/release11.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl Thu Oct 18 19:03:30 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))>
                 <#assign qohEvents = delegator.findByAnd("MrpEvent", Static["org.ofbiz.base.util.UtilMisc"].toMap("mrpEventTypeId", "INITIAL_QOH", "productId", inven.productId))>
                 <#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>