You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2012/10/18 20:17:00 UTC

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

Author: jleroux
Date: Thu Oct 18 18:17:00 2012
New Revision: 1399762

URL: http://svn.apache.org/viewvc?rev=1399762&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/release12.04/   (props changed)
    ofbiz/branches/release12.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl

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

Modified: ofbiz/branches/release12.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl?rev=1399762&r1=1399761&r2=1399762&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl (original)
+++ ofbiz/branches/release12.04/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl Thu Oct 18 18:17:00 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>