Author: sichen
Date: Mon Jun 4 16:37:04 2007
New Revision: 544325
URL:
http://svn.apache.org/viewvc?view=rev&rev=544325Log:
Prevent NPE when order item's item issuance does not have a ship group seqid, such as from a POS order. Based on suggestion from Vikrant Rathorpe
Modified:
ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/orderitems.ftl
Modified: ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/orderitems.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/orderitems.ftl?view=diff&rev=544325&r1=544324&r2=544325==============================================================================
--- ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/orderitems.ftl (original)
+++ ofbiz/branches/release4.0/applications/order/webapp/ordermgr/order/orderitems.ftl Mon Jun 4 16:37:04 2007
@@ -502,7 +502,7 @@
<#assign inventoryItem = itemIssuance.getRelatedOne("InventoryItem")/>
<b><i>${uiLabelMap.FacilityInventory}</i>:</b>
<a href="/facility/control/EditInventoryItem?inventoryItemId=${itemIssuance.inventoryItemId}&externalLoginKey=${externalLoginKey}" class="buttontext" style="font-size: xx-small;">${itemIssuance.inventoryItemId}</a>
- <b><i>${uiLabelMap.OrderShipGroup}</i>:</b> ${itemIssuance.shipGroupSeqId}
+ <b><i>${uiLabelMap.OrderShipGroup}</i>:</b> ${itemIssuance.shipGroupSeqId?if_exists}
<#if (inventoryItem.serialNumber?has_content)><br><b><i>${uiLabelMap.ProductSerialNumber}</li>:</b> ${inventoryItem.serialNumber} </#if>
</#if>