svn commit: r544324 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl

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

svn commit: r544324 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl

sichen
Author: sichen
Date: Mon Jun  4 16:36:33 2007
New Revision: 544324

URL: http://svn.apache.org/viewvc?view=rev&rev=544324
Log:
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/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl?view=diff&rev=544324&r1=544323&r2=544324
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl Mon Jun  4 16:36:33 2007
@@ -506,7 +506,7 @@
                           <#assign inventoryItem = itemIssuance.getRelatedOne("InventoryItem")/>
                           <b><i>${uiLabelMap.FacilityInventory}</i>:</b>
                             <a href="/facility/control/EditInventoryItem?inventoryItemId=${itemIssuance.inventoryItemId}&amp;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}&nbsp;</#if>                                                      
 
                         </#if>