You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2010/01/11 16:42:01 UTC
svn commit: r897914 -
/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl
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")/>