svn commit: r897914 - /ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl

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

svn commit: r897914 - /ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl

jacopoc
Author: jacopoc
Date: Mon Jan 11 15:42:01 2010
New Revision: 897914

URL: http://svn.apache.org/viewvc?rev=897914&view=rev
Log:
Fix to prevent error on screen when the user attempts to receive a shipment without lines.

Modified:
    ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl

Modified: ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl?rev=897914&r1=897913&r2=897914&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl Mon Jan 11 15:42:01 2010
@@ -336,7 +336,11 @@
                   <#assign itemCost = orderItem.unitPrice?default(0)/>
                   <#assign salesOrderItem = salesOrderItems[orderItem.orderItemSeqId]?if_exists/>
                   <#if shipment?has_content>
-                  <#assign defaultQuantity = shippedQuantities[orderItem.orderItemSeqId]?double - receivedQuantities[orderItem.orderItemSeqId]?double/>
+                    <#if shippedQuantities[orderItem.orderItemSeqId]?exists>
+                      <#assign defaultQuantity = shippedQuantities[orderItem.orderItemSeqId]?double - receivedQuantities[orderItem.orderItemSeqId]?double/>
+                    <#else>
+                      <#assign defaultQuantity = 0/>
+                    </#if>
                   </#if>
                   <#if 0 < defaultQuantity>
                   <#assign orderItemType = orderItem.getRelatedOne("OrderItemType")/>