Author: doogie
Date: Sun Jun 26 18:07:50 2011
New Revision: 1139857
URL:
http://svn.apache.org/viewvc?rev=1139857&view=revLog:
FIX: Fix some null comparisons, instead use ?has_content.
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?rev=1139857&r1=1139856&r2=1139857&view=diff==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl Sun Jun 26 18:07:50 2011
@@ -137,7 +137,7 @@ under the License.
${qohQuantity} (${uiLabelMap.ProductAtp}: ${atpQuantity})
</td>
</tr>
- <#if (product != null) && (product.productTypeId != null) && Static["org.ofbiz.entity.util.EntityTypeUtil"].hasParentType(delegator, "ProductType", "productTypeId", product.productTypeId, "parentTypeId", "MARKETING_PKG")>
+ <#if (product?has_content) && (product.productTypeId?has_content) && Static["org.ofbiz.entity.util.EntityTypeUtil"].hasParentType(delegator, "ProductType", "productTypeId", product.productTypeId, "parentTypeId", "MARKETING_PKG")>
<tr>
<td>${uiLabelMap.ProductMarketingPackageQOH}</td>
<td style="padding-left: 15px; text-align: left;">
@@ -265,7 +265,7 @@ under the License.
<td><b>${uiLabelMap.OrderOutstanding}</b></td>
<td>
<#-- Make sure digital goods without shipments don't always remainn "outstanding": if item is completed, it must have no outstanding quantity. -->
- <#if (orderItem.statusId != null) && (orderItem.statusId == "ITEM_COMPLETED")>
+ <#if (orderItem.statusId?has_content) && (orderItem.statusId == "ITEM_COMPLETED")>
0
<#elseif orderHeader.orderTypeId == "PURCHASE_ORDER">
${(orderItem.quantity?default(0) - orderItem.cancelQuantity?default(0)) - totalReceived?double}