Author: deepak
Date: Sat Apr 18 08:49:56 2015
New Revision: 1674464

URL: http://svn.apache.org/r1674464
Log:
Applied slightly modified patch from jira issue OFBIZ-6202 - Expected hash" 
Freemarker error in FindInventoryEventPlan

Thanks Paul Foxworthy for reporting and providing the patch for the issue.

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=1674464&r1=1674463&r2=1674464&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
 (original)
+++ 
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/mrp/findInventoryEventPlan.ftl
 Sat Apr 18 08:49:56 2015
@@ -103,9 +103,8 @@ document.lookupinventory.productId.focus
 <table class="basic-table" cellspacing="0">
   <tr>
     <td width='100%'>
-      <#if inventoryList??>
-      <#if 0 < inventoryList?size>
-       <#assign rowClass = "alternate-row">
+      <#if inventoryList?has_content>
+         <#assign rowClass = "alternate-row">
          <table class="basic-table" cellspacing="0">
           <tr>
            <td width="50%" 
class="boxhead">${uiLabelMap.CommonElementsFound}</td>
@@ -149,7 +148,7 @@ document.lookupinventory.productId.focus
         <#assign productTmp = "">
         <#list inventoryList[lowIndex..highIndex-1] as inven>
             <#assign product = inven.getRelatedOne("Product", false)>
-            <#if facilityId?? && facilityId?has_content>
+            <#if facilityId?has_content>
             </#if>
             <#if ! product.equals( productTmp )>
                 <#assign quantityAvailableAtDate = 0>
@@ -161,7 +160,7 @@ document.lookupinventory.productId.focus
                 <#if qohEvents?has_content>
                     <#assign initialQohEvent = 
Static["org.ofbiz.entity.util.EntityUtil"].getFirst(qohEvents)>
                 </#if>
-                <#if initialQohEvent??>
+                <#if initialQohEvent?has_content>
                     <#if initialQohEvent.quantity?has_content>
                         <#assign quantityAvailableAtDate = 
initialQohEvent.quantity>
                     </#if>
@@ -227,7 +226,6 @@ document.lookupinventory.productId.focus
        <div align="center">${uiLabelMap.CommonNoElementFound}</div>
        <br />
       </#if>
-    </#if>
     </td>
   </tr>
 </table>


Reply via email to