svn commit: r1618554 [10/38] - in /ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23: ./ applications/accounting/config/ applications/accounting/script/org/ofbiz/accounting/invoice/ applications/accounting/src/org/ofbiz/accounting/invoice/ appli...

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

svn commit: r1618554 [10/38] - in /ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23: ./ applications/accounting/config/ applications/accounting/script/org/ofbiz/accounting/invoice/ applications/accounting/src/org/ofbiz/accounting/invoice/ appli...

jleroux@apache.org
Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/OrderSalesReps.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/OrderSalesReps.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/OrderSalesReps.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/OrderSalesReps.ftl Mon Aug 18 07:42:27 2014
@@ -32,9 +32,9 @@ under the License.
         <td width="50%">${uiLabelMap.PartyFirstName}</td>
       </tr>
     <#list salesReps as salesRep>
-      <#assign party = salesRep.getRelatedOne("Party", false)?if_exists/>
-      <#assign person = party.getRelatedOne("Person", false)?if_exists/>
-      <#if person?exists && person?has_content>
+      <#assign party = salesRep.getRelatedOne("Party", false)!/>
+      <#assign person = party.getRelatedOne("Person", false)!/>
+      <#if person?? && person?has_content>
       <tr>
         <td width="50%">${person.lastName}</td>
         <td width="50%">${person.firstName}</td>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/appendorderitem.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/appendorderitem.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/appendorderitem.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/appendorderitem.ftl Mon Aug 18 07:42:27 2014
@@ -33,7 +33,7 @@ under the License.
   </div>
   <div class="screenlet-body">
         <form method="post" action="<@ofbizUrl>appendItemToOrder</@ofbizUrl>" name="appendItemForm">
-            <input type="hidden" size="25" name="orderId" value="${orderId?if_exists}"/>
+            <input type="hidden" size="25" name="orderId" value="${orderId!}"/>
             <#if !catalogCol?has_content>
                 <input type="hidden" name="prodCatalogId" value=""/>
             </#if>
@@ -69,7 +69,7 @@ under the License.
                 <tr>
                   <td class="label">${uiLabelMap.OrderPrice}</td>
                   <td>
-                    <input type="text" size="6" name="basePrice" value="${requestParameters.price?if_exists}"/>
+                    <input type="text" size="6" name="basePrice" value="${requestParameters.price!}"/>
                     <input type="checkbox" name="overridePrice" value="Y"/>&nbsp;${uiLabelMap.OrderOverridePrice}
                   </td>
                 </tr>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/companyHeader.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/companyHeader.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/companyHeader.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/companyHeader.fo.ftl Mon Aug 18 07:42:27 2014
@@ -24,7 +24,7 @@ under the License.
 
 <fo:block font-size="8pt">
     <fo:block>${companyName}</fo:block>
-    <#if postalAddress?exists>
+    <#if postalAddress??>
         <#if postalAddress?has_content>
             ${setContextField("postalAddress", postalAddress)}
             ${screens.render("component://party/widget/partymgr/PartyScreens.xml#postalAddressPdfFormatter")}
@@ -34,9 +34,9 @@ under the License.
         <fo:block>${uiLabelMap.CommonFor}: ${companyName}</fo:block>
     </#if>
 
-    <#if sendingPartyTaxId?exists || phone?exists || email?exists || website?exists || eftAccount?exists>
+    <#if sendingPartyTaxId?? || phone?? || email?? || website?? || eftAccount??>
     <fo:list-block provisional-distance-between-starts=".5in">
-        <#if sendingPartyTaxId?exists>
+        <#if sendingPartyTaxId??>
         <fo:list-item>
             <fo:list-item-label>
                 <fo:block>${uiLabelMap.PartyTaxId}:</fo:block>
@@ -46,43 +46,43 @@ under the License.
             </fo:list-item-body>
         </fo:list-item>
         </#if>
-        <#if phone?exists>
+        <#if phone??>
         <fo:list-item>
             <fo:list-item-label>
                 <fo:block>${uiLabelMap.CommonTelephoneAbbr}:</fo:block>
             </fo:list-item-label>
             <fo:list-item-body start-indent="body-start()">
-                <fo:block><#if phone.countryCode?exists>${phone.countryCode}-</#if><#if phone.areaCode?exists>${phone.areaCode}-</#if>${phone.contactNumber?if_exists}</fo:block>
+                <fo:block><#if phone.countryCode??>${phone.countryCode}-</#if><#if phone.areaCode??>${phone.areaCode}-</#if>${phone.contactNumber!}</fo:block>
             </fo:list-item-body>
         </fo:list-item>
         </#if>
-        <#if email?exists>
+        <#if email??>
         <fo:list-item>
             <fo:list-item-label>
                 <fo:block>${uiLabelMap.CommonEmail}:</fo:block>
             </fo:list-item-label>
             <fo:list-item-body start-indent="body-start()">
-                <fo:block>${email.infoString?if_exists}</fo:block>
+                <fo:block>${email.infoString!}</fo:block>
             </fo:list-item-body>
         </fo:list-item>
         </#if>
-        <#if website?exists>
+        <#if website??>
         <fo:list-item>
             <fo:list-item-label>
                 <fo:block>${uiLabelMap.CommonWebsite}:</fo:block>
             </fo:list-item-label>
             <fo:list-item-body start-indent="body-start()">
-                <fo:block>${website.infoString?if_exists}</fo:block>
+                <fo:block>${website.infoString!}</fo:block>
             </fo:list-item-body>
         </fo:list-item>
         </#if>
-        <#if eftAccount?exists>
+        <#if eftAccount??>
         <fo:list-item>
             <fo:list-item-label>
                 <fo:block>${uiLabelMap.CommonFinBankName}:</fo:block>
             </fo:list-item-label>
             <fo:list-item-body start-indent="body-start()">
-                <fo:block>${eftAccount.bankName?if_exists}</fo:block>
+                <fo:block>${eftAccount.bankName!}</fo:block>
             </fo:list-item-body>
         </fo:list-item>
         <fo:list-item>
@@ -90,7 +90,7 @@ under the License.
                 <fo:block>${uiLabelMap.CommonRouting}:</fo:block>
             </fo:list-item-label>
             <fo:list-item-body start-indent="body-start()">
-                <fo:block>${eftAccount.routingNumber?if_exists}</fo:block>
+                <fo:block>${eftAccount.routingNumber!}</fo:block>
             </fo:list-item-body>
         </fo:list-item>
         <fo:list-item>
@@ -98,7 +98,7 @@ under the License.
                 <fo:block>${uiLabelMap.CommonBankAccntNrAbbr}:</fo:block>
             </fo:list-item-label>
             <fo:list-item-body start-indent="body-start()">
-                <fo:block>${eftAccount.accountNumber?if_exists}</fo:block>
+                <fo:block>${eftAccount.accountNumber!}</fo:block>
             </fo:list-item-body>
         </fo:list-item>
         </#if>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/editorderitems.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/editorderitems.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/editorderitems.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/editorderitems.ftl Mon Aug 18 07:42:27 2014
@@ -64,13 +64,13 @@ under the License.
                     <td width="3%" style="border-bottom:none;">&nbsp;</td>
                 </tr>
                 <#list orderItemList as orderItem>
-                    <#if orderItem.productId?exists> <#-- a null product may come from a quote -->
+                    <#if orderItem.productId??> <#-- a null product may come from a quote -->
                       <#assign orderItemContentWrapper = Static["org.ofbiz.order.order.OrderContentWrapper"].makeOrderContentWrapper(orderItem, request)>
                       <tr><td colspan="8"><hr /></td></tr>
                       <tr>
-                          <#assign orderItemType = orderItem.getRelatedOne("OrderItemType", false)?if_exists>
-                          <#assign productId = orderItem.productId?if_exists>
-                          <#if productId?exists && productId == "shoppingcart.CommentLine">
+                          <#assign orderItemType = orderItem.getRelatedOne("OrderItemType", false)!>
+                          <#assign productId = orderItem.productId!>
+                          <#if productId?? && productId == "shoppingcart.CommentLine">
                               <td colspan="8" valign="top">
                                   <span class="label">&gt;&gt; ${orderItem.itemDescription}</span>
                               </td>
@@ -78,31 +78,31 @@ under the License.
                               <td valign="top">
                                   <div>
                                       <#if orderHeader.statusId = "ORDER_CANCELLED" || orderHeader.statusId = "ORDER_COMPLETED">
-                                      <#if productId?exists>
-                                      ${orderItem.productId?default("N/A")} - ${orderItem.itemDescription?if_exists}
-                                      <#elseif orderItemType?exists>
-                                      ${orderItemType.description} - ${orderItem.itemDescription?if_exists}
+                                      <#if productId??>
+                                      ${orderItem.productId?default("N/A")} - ${orderItem.itemDescription!}
+                                      <#elseif orderItemType??>
+                                      ${orderItemType.description} - ${orderItem.itemDescription!}
                                       <#else>
-                                      ${orderItem.itemDescription?if_exists}
+                                      ${orderItem.itemDescription!}
                                       </#if>
                                       <#else>
-                                      <#if productId?exists>
+                                      <#if productId??>
                                       <#assign orderItemName = orderItem.productId?default("N/A")/>
-                                      <#elseif orderItemType?exists>
+                                      <#elseif orderItemType??>
                                       <#assign orderItemName = orderItemType.description/>
                                       </#if>
                                       <p>${uiLabelMap.ProductProduct}&nbsp;${orderItemName}</p>
-                                      <#if productId?exists>
+                                      <#if productId??>
                                           <#assign product = orderItem.getRelatedOne("Product", true)>
-                                          <#if product.salesDiscontinuationDate?exists && Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().after(product.salesDiscontinuationDate)>
+                                          <#if product.salesDiscontinuationDate?? && Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().after(product.salesDiscontinuationDate)>
                                               <span class="alert">${uiLabelMap.OrderItemDiscontinued}: ${product.salesDiscontinuationDate}</span>
                                           </#if>
                                       </#if>
                                       ${uiLabelMap.CommonDescription}<br />
-                                      <input type="text" size="20" name="idm_${orderItem.orderItemSeqId}" value="${orderItem.itemDescription?if_exists}"/>
+                                      <input type="text" size="20" name="idm_${orderItem.orderItemSeqId}" value="${orderItem.itemDescription!}"/>
                                       </#if>
                                   </div>
-                                  <#if productId?exists>
+                                  <#if productId??>
                                   <div>
                                       <a href="/catalog/control/EditProduct?productId=${productId}" class="buttontext" target="_blank">${uiLabelMap.ProductCatalog}</a>
                                       <a href="/ecommerce/control/product?product_id=${productId}" class="buttontext" target="_blank">${uiLabelMap.OrderEcommerce}</a>
@@ -123,7 +123,7 @@ under the License.
                                   <#if orderItemStatus.statusDatetime?has_content>${orderItemStatus.statusDatetime.toString()}</#if>
                                   &nbsp;${loopStatusItem.get("description",locale)?default(orderItemStatus.statusId)}<br />
                                   </#list>
-                                  <#assign returns = orderItem.getRelated("ReturnItem", null, null, false)?if_exists>
+                                  <#assign returns = orderItem.getRelated("ReturnItem", null, null, false)!>
                                   <#if returns?has_content>
                                   <#list returns as returnItem>
                                   <#assign returnHeader = returnItem.getRelatedOne("ReturnHeader", false)>
@@ -139,13 +139,13 @@ under the License.
                                 <#assign shippedQuantity = orderReadHelper.getItemShippedQuantity(orderItem)>
                                 <#assign shipmentReceipts = delegator.findByAnd("ShipmentReceipt", {"orderId" : orderHeader.getString("orderId"), "orderItemSeqId" : orderItem.orderItemSeqId}, null, false)/>
                                 <#assign totalReceived = 0.0>
-                                <#if shipmentReceipts?exists && shipmentReceipts?has_content>
+                                <#if shipmentReceipts?? && shipmentReceipts?has_content>
                                   <#list shipmentReceipts as shipmentReceipt>
-                                    <#if shipmentReceipt.quantityAccepted?exists && shipmentReceipt.quantityAccepted?has_content>
+                                    <#if shipmentReceipt.quantityAccepted?? && shipmentReceipt.quantityAccepted?has_content>
                                       <#assign  quantityAccepted = shipmentReceipt.quantityAccepted>
                                       <#assign totalReceived = quantityAccepted + totalReceived>
                                     </#if>
-                                    <#if shipmentReceipt.quantityRejected?exists && shipmentReceipt.quantityRejected?has_content>
+                                    <#if shipmentReceipt.quantityRejected?? && shipmentReceipt.quantityRejected?has_content>
                                       <#assign  quantityRejected = shipmentReceipt.quantityRejected>
                                       <#assign totalReceived = quantityRejected + totalReceived>
                                     </#if>
@@ -184,7 +184,7 @@ under the License.
                       </tr>
 
                       <#-- now update/cancel reason and comment field -->
-                      <#if orderItem.statusId != "ITEM_CANCELLED" && orderItem.statusId != "ITEM_COMPLETED" && ("Y" != orderItem.isPromo?if_exists)>
+                      <#if orderItem.statusId != "ITEM_CANCELLED" && orderItem.statusId != "ITEM_COMPLETED" && ("Y" != orderItem.isPromo!)>
                         <tr><td colspan="8"><span class="label">${uiLabelMap.OrderReturnReason}</span>
                             <select name="irm_${orderItem.orderItemSeqId}">
                               <option value="">&nbsp;</option>
@@ -196,35 +196,35 @@ under the License.
                             <input type="text" name="icm_${orderItem.orderItemSeqId}" value="" size="30" maxlength="60"/>
                             <#if (orderHeader.orderTypeId == 'PURCHASE_ORDER')>
                               <span class="label">${uiLabelMap.OrderEstimatedShipDate}</span>
-                              <@htmlTemplate.renderDateTimeField name="isdm_${orderItem.orderItemSeqId}" value="${orderItem.estimatedShipDate?if_exists}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="isdm_${orderItem.orderItemSeqId}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
+                              <@htmlTemplate.renderDateTimeField name="isdm_${orderItem.orderItemSeqId}" value="${orderItem.estimatedShipDate!}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="isdm_${orderItem.orderItemSeqId}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
                               <span class="label">${uiLabelMap.OrderOrderQuoteEstimatedDeliveryDate}</span>
-                              <@htmlTemplate.renderDateTimeField name="iddm_${orderItem.orderItemSeqId}" value="${orderItem.estimatedDeliveryDate?if_exists}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="iddm_${orderItem.orderItemSeqId}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
+                              <@htmlTemplate.renderDateTimeField name="iddm_${orderItem.orderItemSeqId}" value="${orderItem.estimatedDeliveryDate!}" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="iddm_${orderItem.orderItemSeqId}" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
                             </#if>
                             </td>
                         </tr>
                       </#if>
                       <#-- now show adjustment details per line item -->
                       <#assign orderItemAdjustments = Static["org.ofbiz.order.order.OrderReadHelper"].getOrderItemAdjustmentList(orderItem, orderAdjustments)>
-                      <#if orderItemAdjustments?exists && orderItemAdjustments?has_content>
+                      <#if orderItemAdjustments?? && orderItemAdjustments?has_content>
                           <#list orderItemAdjustments as orderItemAdjustment>
                               <#assign adjustmentType = orderItemAdjustment.getRelatedOne("OrderAdjustmentType", true)>
                               <tr>
                                   <td class="align-text" colspan="2">
                                       <span class="label">${uiLabelMap.OrderAdjustment}</span>&nbsp;${adjustmentType.get("description",locale)}&nbsp;
-                                      ${orderItemAdjustment.get("description",locale)?if_exists} (${orderItemAdjustment.comments?default("")})
+                                      ${orderItemAdjustment.get("description",locale)!} (${orderItemAdjustment.comments?default("")})
 
                                       <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX">
                                       <#if orderItemAdjustment.primaryGeoId?has_content>
                                       <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/>
-                                      <span class="label">${uiLabelMap.OrderJurisdiction}</span>&nbsp;${primaryGeo.geoName} [${primaryGeo.abbreviation?if_exists}]
+                                      <span class="label">${uiLabelMap.OrderJurisdiction}</span>&nbsp;${primaryGeo.geoName} [${primaryGeo.abbreviation!}]
                                       <#if orderItemAdjustment.secondaryGeoId?has_content>
                                       <#assign secondaryGeo = orderItemAdjustment.getRelatedOne("SecondaryGeo", true)/>
-                                      (<span class="label">${uiLabelMap.CommonIn}</span>&nbsp;${secondaryGeo.geoName} [${secondaryGeo.abbreviation?if_exists}])
+                                      (<span class="label">${uiLabelMap.CommonIn}</span>&nbsp;${secondaryGeo.geoName} [${secondaryGeo.abbreviation!}])
                                       </#if>
                                       </#if>
-                                      <#if orderItemAdjustment.sourcePercentage?exists><span class="label">Rate</span>&nbsp;${orderItemAdjustment.sourcePercentage}</#if>
+                                      <#if orderItemAdjustment.sourcePercentage??><span class="label">Rate</span>&nbsp;${orderItemAdjustment.sourcePercentage}</#if>
                                       <#if orderItemAdjustment.customerReferenceId?has_content><span class="label">Customer Tax ID</span>&nbsp;${orderItemAdjustment.customerReferenceId}</#if>
-                                      <#if orderItemAdjustment.exemptAmount?exists><span class="label">Exempt Amount</span>&nbsp;${orderItemAdjustment.exemptAmount}</#if>
+                                      <#if orderItemAdjustment.exemptAmount??><span class="label">Exempt Amount</span>&nbsp;${orderItemAdjustment.exemptAmount}</#if>
                                       </#if>
                                   </td>
                                   <td>&nbsp;</td>
@@ -238,14 +238,14 @@ under the License.
                       </#if>
 
                       <#-- now show ship group info per line item -->
-                      <#assign orderItemShipGroupAssocs = orderItem.getRelated("OrderItemShipGroupAssoc", null, null, false)?if_exists>
+                      <#assign orderItemShipGroupAssocs = orderItem.getRelated("OrderItemShipGroupAssoc", null, null, false)!>
                       <#if orderItemShipGroupAssocs?has_content>
                           <tr><td colspan="8">&nbsp;</td></tr>
                           <#list orderItemShipGroupAssocs as shipGroupAssoc>
                                 <#assign shipGroupQty = shipGroupAssoc.quantity - shipGroupAssoc.cancelQuantity?default(0)>
                               <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup", false)>
-                              <#assign shipGroupAddress = shipGroup.getRelatedOne("PostalAddress", false)?if_exists>
-                              <#assign itemStatusOkay = (orderItem.statusId != "ITEM_CANCELLED" && orderItem.statusId != "ITEM_COMPLETED" && (shipGroupAssoc.cancelQuantity?default(0) < shipGroupAssoc.quantity?default(0)) && ("Y" != orderItem.isPromo?if_exists))>
+                              <#assign shipGroupAddress = shipGroup.getRelatedOne("PostalAddress", false)!>
+                              <#assign itemStatusOkay = (orderItem.statusId != "ITEM_CANCELLED" && orderItem.statusId != "ITEM_COMPLETED" && (shipGroupAssoc.cancelQuantity?default(0) < shipGroupAssoc.quantity?default(0)) && ("Y" != orderItem.isPromo!))>
                               <#assign itemSelectable = (security.hasEntityPermission("ORDERMGR", "_ADMIN", session) && itemStatusOkay) || (security.hasEntityPermission("ORDERMGR", "_UPDATE", session) && itemStatusOkay && orderHeader.statusId != "ORDER_SENT")>
                               <tr>
                                   <td class="align-text" colspan="2">
@@ -291,7 +291,7 @@ under the License.
                 <#assign orderProductPromoCode = ''>
                 <#list productPromoCodes as productPromoCode>
                     <#if !(orderProductPromoCode?has_content)>
-                        <#assign orderProductPromoCode = delegator.findOne("OrderProductPromoCode", {"productPromoCodeId":productPromoCode.productPromoCodeId, "orderId":orderHeaderAdjustment.orderId}, false)?if_exists>
+                        <#assign orderProductPromoCode = delegator.findOne("OrderProductPromoCode", {"productPromoCodeId":productPromoCode.productPromoCodeId, "orderId":orderHeaderAdjustment.orderId}, false)!>
                     </#if>
                 </#list>
                 <#if orderProductPromoCode?has_content>
@@ -300,18 +300,18 @@ under the License.
             </#if>
             <#if adjustmentAmount != 0>
                 <form name="updateOrderAdjustmentForm${orderAdjustmentId}" method="post" action="<@ofbizUrl>updateOrderAdjustment</@ofbizUrl>">
-                    <input type="hidden" name="orderAdjustmentId" value="${orderAdjustmentId?if_exists}"/>
-                    <input type="hidden" name="orderId" value="${orderId?if_exists}"/>
+                    <input type="hidden" name="orderAdjustmentId" value="${orderAdjustmentId!}"/>
+                    <input type="hidden" name="orderId" value="${orderId!}"/>
                     <table class="basic-table" cellspacing="0">
                         <tr>
                             <td class="align-text" width="55%">
-                                <span class="label">${adjustmentType.get("description",locale)}</span>&nbsp;${orderHeaderAdjustment.comments?if_exists}
+                                <span class="label">${adjustmentType.get("description",locale)}</span>&nbsp;${orderHeaderAdjustment.comments!}
                             </td>
                             <td nowrap="nowrap" width="30%">
                                 <#if (allowPriceChange)>
-                                    <input type="text" name="description" value="${orderHeaderAdjustment.get("description")?if_exists}" size="30" maxlength="60"/>
+                                    <input type="text" name="description" value="${orderHeaderAdjustment.get("description")!}" size="30" maxlength="60"/>
                                 <#else>
-                                    ${orderHeaderAdjustment.get("description")?if_exists}
+                                    ${orderHeaderAdjustment.get("description")!}
                                 </#if>
                             </td>
                             <td nowrap="nowrap" width="15%">
@@ -327,10 +327,10 @@ under the License.
                     </table>
                 </form>
                 <form name="deleteOrderAdjustment${orderAdjustmentId}" method="post" action="<@ofbizUrl>deleteOrderAdjustment</@ofbizUrl>">
-                    <input type="hidden" name="orderAdjustmentId" value="${orderAdjustmentId?if_exists}"/>
-                    <input type="hidden" name="orderId" value="${orderId?if_exists}"/>
+                    <input type="hidden" name="orderAdjustmentId" value="${orderAdjustmentId!}"/>
+                    <input type="hidden" name="orderId" value="${orderId!}"/>
                     <#if adjustmentType.get("orderAdjustmentTypeId") == "PROMOTION_ADJUSTMENT">
-                        <input type="hidden" name="productPromoCodeId" value="${productPromoCodeId?if_exists}"/>
+                        <input type="hidden" name="productPromoCodeId" value="${productPromoCodeId!}"/>
                     </#if>
                 </form>
             </#if>
@@ -340,7 +340,7 @@ under the License.
         <#if security.hasEntityPermission("ORDERMGR", "_UPDATE", session) && orderHeader.statusId != "ORDER_COMPLETED" && orderHeader.statusId != "ORDER_CANCELLED" && orderHeader.statusId != "ORDER_REJECTED">
             <form name="addAdjustmentForm" method="post" action="<@ofbizUrl>createOrderAdjustment</@ofbizUrl>">
                 <input type="hidden" name="comments" value="Added manually by [${userLogin.userLoginId}]"/>
-                <input type="hidden" name="orderId" value="${orderId?if_exists}"/>
+                <input type="hidden" name="orderId" value="${orderId!}"/>
                 <table class="basic-table" cellspacing="0">
                     <tr><td colspan="3"><hr /></td></tr>
                     <tr>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/findOrders.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/findOrders.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/findOrders.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/findOrders.ftl Mon Aug 18 07:42:27 2014
@@ -84,37 +84,37 @@ function toggleOrderIdList() {
   </#if>
   <input type="hidden" name="viewSize" value="${viewSize}"/>
   <input type="hidden" name="viewIndex" value="${viewIndex}"/>
-  <input type='hidden' name='correspondingPoId' value='${requestParameters.correspondingPoId?if_exists}'/>
-  <input type='hidden' name='internalCode' value='${requestParameters.internalCode?if_exists}'/>
-  <input type='hidden' name='productId' value='${requestParameters.productId?if_exists}'/>
-  <input type='hidden' name='goodIdentificationTypeId' value='${requestParameters.goodIdentificationTypeId?if_exists}'/>
-  <input type='hidden' name='goodIdentificationIdValue' value='${requestParameters.goodIdentificationIdValue?if_exists}'/>
-  <input type='hidden' name='inventoryItemId' value='${requestParameters.inventoryItemId?if_exists}'/>
-  <input type='hidden' name='serialNumber' value='${requestParameters.serialNumber?if_exists}'/>
-  <input type='hidden' name='softIdentifier' value='${requestParameters.softIdentifier?if_exists}'/>
-  <input type='hidden' name='partyId' value='${requestParameters.partyId?if_exists}'/>
-  <input type='hidden' name='userLoginId' value='${requestParameters.userLoginId?if_exists}'/>
-  <input type='hidden' name='billingAccountId' value='${requestParameters.billingAccountId?if_exists}'/>
-  <input type='hidden' name='createdBy' value='${requestParameters.createdBy?if_exists}'/>
-  <input type='hidden' name='minDate' value='${requestParameters.minDate?if_exists}'/>
-  <input type='hidden' name='maxDate' value='${requestParameters.maxDate?if_exists}'/>
-  <input type='hidden' name='roleTypeId' value="${requestParameters.roleTypeId?if_exists}"/>
-  <input type='hidden' name='orderTypeId' value='${requestParameters.orderTypeId?if_exists}'/>
-  <input type='hidden' name='salesChannelEnumId' value='${requestParameters.salesChannelEnumId?if_exists}'/>
-  <input type='hidden' name='productStoreId' value='${requestParameters.productStoreId?if_exists}'/>
-  <input type='hidden' name='orderWebSiteId' value='${requestParameters.orderWebSiteId?if_exists}'/>
-  <input type='hidden' name='orderStatusId' value='${requestParameters.orderStatusId?if_exists}'/>
-  <input type='hidden' name='hasBackOrders' value='${requestParameters.hasBackOrders?if_exists}'/>
-  <input type='hidden' name='filterInventoryProblems' value='${requestParameters.filterInventoryProblems?if_exists}'/>
-  <input type='hidden' name='filterPartiallyReceivedPOs' value='${requestParameters.filterPartiallyReceivedPOs?if_exists}'/>
-  <input type='hidden' name='filterPOsOpenPastTheirETA' value='${requestParameters.filterPOsOpenPastTheirETA?if_exists}'/>
-  <input type='hidden' name='filterPOsWithRejectedItems' value='${requestParameters.filterPOsWithRejectedItems?if_exists}'/>
-  <input type='hidden' name='countryGeoId' value='${requestParameters.countryGeoId?if_exists}'/>
-  <input type='hidden' name='includeCountry' value='${requestParameters.includeCountry?if_exists}'/>
-  <input type='hidden' name='isViewed' value='${requestParameters.isViewed?if_exists}'/>
-  <input type='hidden' name='shipmentMethod' value='${requestParameters.shipmentMethod?if_exists}'/>
-  <input type='hidden' name='gatewayAvsResult' value='${requestParameters.gatewayAvsResult?if_exists}'/>
-  <input type='hidden' name='gatewayScoreResult' value='${requestParameters.gatewayScoreResult?if_exists}'/>
+  <input type='hidden' name='correspondingPoId' value='${requestParameters.correspondingPoId!}'/>
+  <input type='hidden' name='internalCode' value='${requestParameters.internalCode!}'/>
+  <input type='hidden' name='productId' value='${requestParameters.productId!}'/>
+  <input type='hidden' name='goodIdentificationTypeId' value='${requestParameters.goodIdentificationTypeId!}'/>
+  <input type='hidden' name='goodIdentificationIdValue' value='${requestParameters.goodIdentificationIdValue!}'/>
+  <input type='hidden' name='inventoryItemId' value='${requestParameters.inventoryItemId!}'/>
+  <input type='hidden' name='serialNumber' value='${requestParameters.serialNumber!}'/>
+  <input type='hidden' name='softIdentifier' value='${requestParameters.softIdentifier!}'/>
+  <input type='hidden' name='partyId' value='${requestParameters.partyId!}'/>
+  <input type='hidden' name='userLoginId' value='${requestParameters.userLoginId!}'/>
+  <input type='hidden' name='billingAccountId' value='${requestParameters.billingAccountId!}'/>
+  <input type='hidden' name='createdBy' value='${requestParameters.createdBy!}'/>
+  <input type='hidden' name='minDate' value='${requestParameters.minDate!}'/>
+  <input type='hidden' name='maxDate' value='${requestParameters.maxDate!}'/>
+  <input type='hidden' name='roleTypeId' value="${requestParameters.roleTypeId!}"/>
+  <input type='hidden' name='orderTypeId' value='${requestParameters.orderTypeId!}'/>
+  <input type='hidden' name='salesChannelEnumId' value='${requestParameters.salesChannelEnumId!}'/>
+  <input type='hidden' name='productStoreId' value='${requestParameters.productStoreId!}'/>
+  <input type='hidden' name='orderWebSiteId' value='${requestParameters.orderWebSiteId!}'/>
+  <input type='hidden' name='orderStatusId' value='${requestParameters.orderStatusId!}'/>
+  <input type='hidden' name='hasBackOrders' value='${requestParameters.hasBackOrders!}'/>
+  <input type='hidden' name='filterInventoryProblems' value='${requestParameters.filterInventoryProblems!}'/>
+  <input type='hidden' name='filterPartiallyReceivedPOs' value='${requestParameters.filterPartiallyReceivedPOs!}'/>
+  <input type='hidden' name='filterPOsOpenPastTheirETA' value='${requestParameters.filterPOsOpenPastTheirETA!}'/>
+  <input type='hidden' name='filterPOsWithRejectedItems' value='${requestParameters.filterPOsWithRejectedItems!}'/>
+  <input type='hidden' name='countryGeoId' value='${requestParameters.countryGeoId!}'/>
+  <input type='hidden' name='includeCountry' value='${requestParameters.includeCountry!}'/>
+  <input type='hidden' name='isViewed' value='${requestParameters.isViewed!}'/>
+  <input type='hidden' name='shipmentMethod' value='${requestParameters.shipmentMethod!}'/>
+  <input type='hidden' name='gatewayAvsResult' value='${requestParameters.gatewayAvsResult!}'/>
+  <input type='hidden' name='gatewayScoreResult' value='${requestParameters.gatewayScoreResult!}'/>
 </form>
 </#if>
 <form method="post" name="lookuporder" id="lookuporder" action="<@ofbizUrl>searchorders</@ofbizUrl>" onsubmit="javascript:lookupOrders();">
@@ -130,8 +130,8 @@ function toggleOrderIdList() {
       <#if requestParameters.hideFields?default("N") == "Y">
         <li><a href="javascript:document.lookupandhidefields${requestParameters.hideFields}.submit()">${uiLabelMap.CommonShowLookupFields}</a></li>
       <#else>
-        <#if orderList?exists><li><a href="javascript:document.lookupandhidefields${requestParameters.hideFields?default("Y")}.submit()">${uiLabelMap.CommonHideFields}</a></li></#if>
-        <li><a href="/partymgr/control/findparty?externalLoginKey=${requestAttributes.externalLoginKey?if_exists}">${uiLabelMap.PartyLookupParty}</a></li>
+        <#if orderList??><li><a href="javascript:document.lookupandhidefields${requestParameters.hideFields?default("Y")}.submit()">${uiLabelMap.CommonHideFields}</a></li></#if>
+        <li><a href="/partymgr/control/findparty?externalLoginKey=${requestAttributes.externalLoginKey!}">${uiLabelMap.PartyLookupParty}</a></li>
         <li><a href="javascript:lookupOrders(true);">${uiLabelMap.OrderLookupOrder}</a></li>
       </#if>
     </ul>
@@ -156,17 +156,17 @@ function toggleOrderIdList() {
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.OrderCustomerPo}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='correspondingPoId' value='${requestParameters.correspondingPoId?if_exists}'/></td>
+                <td align='left'><input type='text' name='correspondingPoId' value='${requestParameters.correspondingPoId!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.OrderInternalCode}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='internalCode' value='${requestParameters.internalCode?if_exists}'/></td>
+                <td align='left'><input type='text' name='internalCode' value='${requestParameters.internalCode!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.ProductProductId}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='productId' value='${requestParameters.productId?if_exists}'/></td>
+                <td align='left'><input type='text' name='productId' value='${requestParameters.productId!}'/></td>
               </tr>
               <#if goodIdentificationTypes?has_content>
               <tr>
@@ -188,23 +188,23 @@ function toggleOrderIdList() {
               <tr>
                   <td width='25%' align='right' class='label'>${uiLabelMap.ProductGoodIdentification}</td>
                   <td width='5%'>&nbsp;</td>
-                  <td align='left'><input type='text' name='goodIdentificationIdValue' value='${requestParameters.goodIdentificationIdValue?if_exists}'/></td>
+                  <td align='left'><input type='text' name='goodIdentificationIdValue' value='${requestParameters.goodIdentificationIdValue!}'/></td>
               </tr>
               </#if>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.ProductInventoryItemId}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='inventoryItemId' value='${requestParameters.inventoryItemId?if_exists}'/></td>
+                <td align='left'><input type='text' name='inventoryItemId' value='${requestParameters.inventoryItemId!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.ProductSerialNumber}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='serialNumber' value='${requestParameters.serialNumber?if_exists}'/></td>
+                <td align='left'><input type='text' name='serialNumber' value='${requestParameters.serialNumber!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.ProductSoftIdentifier}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='softIdentifier' value='${requestParameters.softIdentifier?if_exists}'/></td>
+                <td align='left'><input type='text' name='softIdentifier' value='${requestParameters.softIdentifier!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.PartyRoleType}</td>
@@ -225,13 +225,13 @@ function toggleOrderIdList() {
                 <td width='25%' align='right' class='label'>${uiLabelMap.PartyPartyId}</td>
                 <td width='5%'>&nbsp;</td>
                 <td align='left'>
-                  <@htmlTemplate.lookupField value='${requestParameters.partyId?if_exists}' formName="lookuporder" name="partyId" id="partyId" fieldFormName="LookupPartyName"/>
+                  <@htmlTemplate.lookupField value='${requestParameters.partyId!}' formName="lookuporder" name="partyId" id="partyId" fieldFormName="LookupPartyName"/>
                 </td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.CommonUserLoginId}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='userLoginId' value='${requestParameters.userLoginId?if_exists}'/></td>
+                <td align='left'><input type='text' name='userLoginId' value='${requestParameters.userLoginId!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.OrderOrderType}</td>
@@ -252,12 +252,12 @@ function toggleOrderIdList() {
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.AccountingBillingAccount}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='billingAccountId' value='${requestParameters.billingAccountId?if_exists}'/></td>
+                <td align='left'><input type='text' name='billingAccountId' value='${requestParameters.billingAccountId!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.CommonCreatedBy}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='createdBy' value='${requestParameters.createdBy?if_exists}'/></td>
+                <td align='left'><input type='text' name='createdBy' value='${requestParameters.createdBy!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.OrderSalesChannel}</td>
@@ -281,12 +281,12 @@ function toggleOrderIdList() {
                 <td align='left'>
                   <select name='productStoreId'>
                     <#if currentProductStore?has_content>
-                    <option value="${currentProductStore.productStoreId}">${currentProductStore.storeName?if_exists}</option>
+                    <option value="${currentProductStore.productStoreId}">${currentProductStore.storeName!}</option>
                     <option value="${currentProductStore.productStoreId}">---</option>
                     </#if>
                     <option value="">${uiLabelMap.CommonAnyStore}</option>
                     <#list productStores as store>
-                      <option value="${store.productStoreId}">${store.storeName?if_exists}</option>
+                      <option value="${store.productStoreId}">${store.storeName!}</option>
                     </#list>
                   </select>
                 </td>
@@ -302,7 +302,7 @@ function toggleOrderIdList() {
                     </#if>
                     <option value="">${uiLabelMap.CommonAnyWebSite}</option>
                     <#list webSites as webSite>
-                      <option value="${webSite.webSiteId}">${webSite.siteName?if_exists}</option>
+                      <option value="${webSite.webSiteId}">${webSite.siteName!}</option>
                     </#list>
                   </select>
                 </td>
@@ -344,13 +344,13 @@ function toggleOrderIdList() {
                   <select name="shipmentMethod">
                     <#if currentCarrierShipmentMethod?has_content>
                       <#assign currentShipmentMethodType = currentCarrierShipmentMethod.getRelatedOne("ShipmentMethodType", false)>
-                      <option value="${currentCarrierShipmentMethod.partyId}@${currentCarrierShipmentMethod.shipmentMethodTypeId}">${currentCarrierShipmentMethod.partyId?if_exists} ${currentShipmentMethodType.description?if_exists}</option>
+                      <option value="${currentCarrierShipmentMethod.partyId}@${currentCarrierShipmentMethod.shipmentMethodTypeId}">${currentCarrierShipmentMethod.partyId!} ${currentShipmentMethodType.description!}</option>
                       <option value="${currentCarrierShipmentMethod.partyId}@${currentCarrierShipmentMethod.shipmentMethodTypeId}">---</option>
                     </#if>
                     <option value="">${uiLabelMap.OrderSelectShippingMethod}</option>
                     <#list carrierShipmentMethods as carrierShipmentMethod>
                       <#assign shipmentMethodType = carrierShipmentMethod.getRelatedOne("ShipmentMethodType", false)>
-                      <option value="${carrierShipmentMethod.partyId}@${carrierShipmentMethod.shipmentMethodTypeId}">${carrierShipmentMethod.partyId?if_exists} ${shipmentMethodType.description?if_exists}</option>
+                      <option value="${carrierShipmentMethod.partyId}@${carrierShipmentMethod.shipmentMethodTypeId}">${carrierShipmentMethod.partyId!} ${shipmentMethodType.description!}</option>
                     </#list>
                   </select>
                 </td>
@@ -373,12 +373,12 @@ function toggleOrderIdList() {
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.OrderAddressVerification}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='gatewayAvsResult' value='${requestParameters.gatewayAvsResult?if_exists}'/></td>
+                <td align='left'><input type='text' name='gatewayAvsResult' value='${requestParameters.gatewayAvsResult!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.OrderScore}</td>
                 <td width='5%'>&nbsp;</td>
-                <td align='left'><input type='text' name='gatewayScoreResult' value='${requestParameters.gatewayScoreResult?if_exists}'/></td>
+                <td align='left'><input type='text' name='gatewayScoreResult' value='${requestParameters.gatewayScoreResult!}'/></td>
               </tr>
               <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.CommonDateFilter}</td>
@@ -387,13 +387,13 @@ function toggleOrderIdList() {
                   <table class="basic-table" cellspacing='0'>
                     <tr>
                       <td nowrap="nowrap">
-                        <@htmlTemplate.renderDateTimeField name="minDate" event="" action="" value="${requestParameters.minDate?if_exists}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="minDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
+                        <@htmlTemplate.renderDateTimeField name="minDate" event="" action="" value="${requestParameters.minDate!}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="minDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
                         <span class='label'>${uiLabelMap.CommonFrom}</span>
                       </td>
                     </tr>
                     <tr>
                       <td nowrap="nowrap">
-                        <@htmlTemplate.renderDateTimeField name="maxDate" event="" action="" value="${requestParameters.maxDate?if_exists}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="maxDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
+                        <@htmlTemplate.renderDateTimeField name="maxDate" event="" action="" value="${requestParameters.maxDate!}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="maxDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
                         <span class='label'>${uiLabelMap.CommonThru}</span>
                       </td>
                     </tr>
@@ -464,7 +464,7 @@ function toggleOrderIdList() {
                     <#if requestParameters.countryGeoId?has_content>
                         <#assign countryGeoId = requestParameters.countryGeoId>
                         <#assign geo = delegator.findOne("Geo", Static["org.ofbiz.base.util.UtilMisc"].toMap("geoId", countryGeoId), true)>
-                        <option value="${countryGeoId}">${geo.geoName?if_exists}</option>
+                        <option value="${countryGeoId}">${geo.geoName!}</option>
                         <option value="${countryGeoId}">---</option>
                     <#else>
                         <option value="">---</option>
@@ -549,7 +549,7 @@ document.lookuporder.orderId.focus();
       <input type="hidden" name="viewSize"/>
       <input type="hidden" name="viewIndex"/>
       <input type="hidden" name="hideFields"/>
-      <#if paramIdList?exists && paramIdList?has_content>
+      <#if paramIdList?? && paramIdList?has_content>
         <#list paramIdList as paramIds>
           <#assign paramId = paramIds.split("=")/>
           <input type="hidden" name="${paramId[0]}" value="${paramId[1]}"/>
@@ -614,9 +614,9 @@ document.lookuporder.orderId.focus();
             <#assign statusItem = orderHeader.getRelatedOne("StatusItem", true)>
             <#assign orderType = orderHeader.getRelatedOne("OrderType", true)>
             <#if orderType.orderTypeId == "PURCHASE_ORDER">
-              <#assign displayParty = orh.getSupplierAgent()?if_exists>
+              <#assign displayParty = orh.getSupplierAgent()!>
             <#else>
-              <#assign displayParty = orh.getPlacingParty()?if_exists>
+              <#assign displayParty = orh.getPlacingParty()!>
             </#if>
             <#assign partyId = displayParty.partyId?default("_NA_")>
             <tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
@@ -639,13 +639,13 @@ document.lookuporder.orderId.focus();
                 <#if placingParty?has_content>
                   <#assign partyId = placingParty.partyId>
                   <#if placingParty.getEntityName() == "Person">
-                    <#if placingParty.lastName?exists>
-                      ${placingParty.lastName}<#if placingParty.firstName?exists>, ${placingParty.firstName}</#if>
+                    <#if placingParty.lastName??>
+                      ${placingParty.lastName}<#if placingParty.firstName??>, ${placingParty.firstName}</#if>
                     <#else>
                       ${uiLabelMap.CommonNA}
                     </#if>
                   <#else>
-                    <#if placingParty.groupName?exists>
+                    <#if placingParty.groupName??>
                       ${placingParty.groupName}
                     <#else>
                       ${uiLabelMap.CommonNA}
@@ -703,7 +703,7 @@ document.lookuporder.orderId.focus();
             <td colspan='4'><h3>${uiLabelMap.OrderNoOrderFound}</h3></td>
           </tr>
         </#if>
-        <#if lookupErrorMessage?exists>
+        <#if lookupErrorMessage??>
           <tr>
             <td colspan='4'><h3>${lookupErrorMessage}</h3></td>
           </tr>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportBody.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportBody.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportBody.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportBody.fo.ftl Mon Aug 18 07:42:27 2014
@@ -43,22 +43,22 @@ under the License.
             </fo:table-header>
             <fo:table-body>
                 <#list orderItemList as orderItem>
-                    <#assign orderItemType = orderItem.getRelatedOne("OrderItemType", false)?if_exists>
-                    <#assign productId = orderItem.productId?if_exists>
+                    <#assign orderItemType = orderItem.getRelatedOne("OrderItemType", false)!>
+                    <#assign productId = orderItem.productId!>
                     <#assign remainingQuantity = (orderItem.quantity?default(0) - orderItem.cancelQuantity?default(0))>
                     <#assign itemAdjustment = Static["org.ofbiz.order.order.OrderReadHelper"].getOrderItemAdjustmentsTotal(orderItem, orderAdjustments, true, false, false)>
-                    <#assign internalImageUrl = Static["org.ofbiz.product.imagemanagement.ImageManagementHelper"].getInternalImageUrl(request, productId?if_exists)?if_exists>
+                    <#assign internalImageUrl = Static["org.ofbiz.product.imagemanagement.ImageManagementHelper"].getInternalImageUrl(request, productId!)!>
                     <fo:table-row>
                         <fo:table-cell>
                             <fo:block>
                                 <#if orderItem.supplierProductId?has_content>
-                                    ${orderItem.supplierProductId} - ${orderItem.itemDescription?if_exists}
-                                <#elseif productId?exists>
-                                    ${orderItem.productId?default("N/A")} - ${orderItem.itemDescription?if_exists}
-                                <#elseif orderItemType?exists>
-                                    ${orderItemType.get("description",locale)} - ${orderItem.itemDescription?if_exists}
+                                    ${orderItem.supplierProductId} - ${orderItem.itemDescription!}
+                                <#elseif productId??>
+                                    ${orderItem.productId?default("N/A")} - ${orderItem.itemDescription!}
+                                <#elseif orderItemType??>
+                                    ${orderItemType.get("description",locale)} - ${orderItem.itemDescription!}
                                 <#else>
-                                    ${orderItem.itemDescription?if_exists}
+                                    ${orderItem.itemDescription!}
                                 </#if>
                             </fo:block>
                         </fo:table-cell>
@@ -109,7 +109,7 @@ under the License.
                                 <fo:block font-weight="bold">
                                     ${adjustmentType.get("description",locale)} :
                                     <#if orderHeaderAdjustment.get("description")?has_content>
-                                        (${orderHeaderAdjustment.get("description")?if_exists})
+                                        (${orderHeaderAdjustment.get("description")!})
                                     </#if>
                                 </fo:block>
                             </fo:table-cell>
@@ -194,7 +194,7 @@ under the License.
                         <#if (note.internalNote?has_content) && (note.internalNote != "Y")>
                             <fo:table-row>
                                 <fo:table-cell number-columns-spanned="1">
-                                    <fo:block>${note.noteInfo?if_exists}</fo:block>
+                                    <fo:block>${note.noteInfo!}</fo:block>
                                 </fo:table-cell>
                                 <fo:table-cell number-columns-spanned="2">
                                     <fo:block>
@@ -205,7 +205,7 @@ under the License.
                                     </fo:block>
                                 </fo:table-cell>
                                 <fo:table-cell number-columns-spanned="1">
-                                    <fo:block>${uiLabelMap.CommonAt}: ${note.noteDateTime?string?if_exists}</fo:block>
+                                    <fo:block>${uiLabelMap.CommonAt}: ${note.noteDateTime?string!}</fo:block>
                                 </fo:table-cell>
                             </fo:table-row>
                         </#if>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportConditions.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportConditions.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportConditions.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportConditions.fo.ftl Mon Aug 18 07:42:27 2014
@@ -18,7 +18,7 @@ under the License.
 -->
 <#escape x as x?xml>
 
-<#if shipGroups?exists && shipGroups.size() gt 1>
+<#if shipGroups?? && shipGroups.size() gt 1>
     <fo:table table-layout="fixed" border-spacing="3pt" space-before="0.3in" font-size="9pt">
         <fo:table-column column-width="1in"/>
         <fo:table-column column-width="1in"/>
@@ -32,13 +32,13 @@ under the License.
         </fo:table-header>
         <fo:table-body>
             <#list shipGroups as shipGroup>
-                <#assign orderItemShipGroupAssocs = shipGroup.getRelated("OrderItemShipGroupAssoc", null, null, false)?if_exists>
+                <#assign orderItemShipGroupAssocs = shipGroup.getRelated("OrderItemShipGroupAssoc", null, null, false)!>
                 <#if orderItemShipGroupAssocs?has_content>
                     <#list orderItemShipGroupAssocs as shipGroupAssoc>
-                        <#assign orderItem = shipGroupAssoc.getRelatedOne("OrderItem", false)?if_exists>
+                        <#assign orderItem = shipGroupAssoc.getRelatedOne("OrderItem", false)!>
                         <fo:table-row>
                             <fo:table-cell><fo:block>${shipGroup.shipGroupSeqId}</fo:block></fo:table-cell>
-                            <fo:table-cell><fo:block>${orderItem.productId?if_exists}</fo:block></fo:table-cell>
+                            <fo:table-cell><fo:block>${orderItem.productId!}</fo:block></fo:table-cell>
                             <fo:table-cell text-align="right"><fo:block>${shipGroupAssoc.quantity?string.number}</fo:block></fo:table-cell>
                         </fo:table-row>
                     </#list>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl Mon Aug 18 07:42:27 2014
@@ -19,23 +19,23 @@ under the License.
 <#escape x as x?xml>
 
 <#if orderHeader.getString("orderTypeId") == "PURCHASE_ORDER">
-    <#if supplierGeneralContactMechValueMap?exists>
+    <#if supplierGeneralContactMechValueMap??>
         <#assign contactMech = supplierGeneralContactMechValueMap.contactMech>
         <fo:block font-weight="bold">${uiLabelMap.OrderPurchasedFrom}:</fo:block>
         <#assign postalAddress = supplierGeneralContactMechValueMap.postalAddress>
         <#if postalAddress?has_content>
             <fo:block text-indent="0.2in">
                 <#if postalAddress.toName?has_content><fo:block>${postalAddress.toName}</fo:block></#if>
-                <#if postalAddress.attnName?has_content><fo:block>${postalAddress.attnName?if_exists}</fo:block></#if>
-                <fo:block>${postalAddress.address1?if_exists}</fo:block>
-                <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2?if_exists}</fo:block></#if>
+                <#if postalAddress.attnName?has_content><fo:block>${postalAddress.attnName!}</fo:block></#if>
+                <fo:block>${postalAddress.address1!}</fo:block>
+                <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2!}</fo:block></#if>
                 <fo:block>
-                    <#assign stateGeo = (delegator.findOne("Geo", {"geoId", postalAddress.stateProvinceGeoId?if_exists}, false))?if_exists />
-                    ${postalAddress.city}<#if stateGeo?has_content>, ${stateGeo.geoName?if_exists}</#if> ${postalAddress.postalCode?if_exists}
+                    <#assign stateGeo = (delegator.findOne("Geo", {"geoId", postalAddress.stateProvinceGeoId!}, false))! />
+                    ${postalAddress.city}<#if stateGeo?has_content>, ${stateGeo.geoName!}</#if> ${postalAddress.postalCode!}
                 </fo:block>
                 <fo:block>
-                    <#assign countryGeo = (delegator.findOne("Geo", {"geoId", postalAddress.countryGeoId?if_exists}, false))?if_exists />
-                    <#if countryGeo?has_content>${countryGeo.geoName?if_exists}</#if>
+                    <#assign countryGeo = (delegator.findOne("Geo", {"geoId", postalAddress.countryGeoId!}, false))! />
+                    <#if countryGeo?has_content>${countryGeo.geoName!}</#if>
                 </fo:block>
             </fo:block>                
         </#if>
@@ -57,17 +57,17 @@ under the License.
         <fo:block font-weight="bold">${contactMechPurpose.get("description",locale)}:</fo:block>
         <fo:block text-indent="0.2in">
             <#if postalAddress?has_content>
-                <#if postalAddress.toName?has_content><fo:block>${postalAddress.toName?if_exists}</fo:block></#if>
-                <#if postalAddress.attnName?has_content><fo:block>${postalAddress.attnName?if_exists}</fo:block></#if>
-                <fo:block>${postalAddress.address1?if_exists}</fo:block>
-                <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2?if_exists}</fo:block></#if>
+                <#if postalAddress.toName?has_content><fo:block>${postalAddress.toName!}</fo:block></#if>
+                <#if postalAddress.attnName?has_content><fo:block>${postalAddress.attnName!}</fo:block></#if>
+                <fo:block>${postalAddress.address1!}</fo:block>
+                <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2!}</fo:block></#if>
                 <fo:block>
-                    <#assign stateGeo = (delegator.findOne("Geo", {"geoId", postalAddress.stateProvinceGeoId?if_exists}, false))?if_exists />
-                    ${postalAddress.city}<#if stateGeo?has_content>, ${stateGeo.geoName?if_exists}</#if> ${postalAddress.postalCode?if_exists}
+                    <#assign stateGeo = (delegator.findOne("Geo", {"geoId", postalAddress.stateProvinceGeoId!}, false))! />
+                    ${postalAddress.city}<#if stateGeo?has_content>, ${stateGeo.geoName!}</#if> ${postalAddress.postalCode!}
                 </fo:block>
                 <fo:block>
-                    <#assign countryGeo = (delegator.findOne("Geo", {"geoId", postalAddress.countryGeoId?if_exists}, false))?if_exists />
-                    <#if countryGeo?has_content>${countryGeo.geoName?if_exists}</#if>
+                    <#assign countryGeo = (delegator.findOne("Geo", {"geoId", postalAddress.countryGeoId!}, false))! />
+                    <#if countryGeo?has_content>${countryGeo.geoName!}</#if>
                 </fo:block>
             </#if>
         </fo:block>
@@ -80,12 +80,12 @@ under the License.
     <fo:block font-weight="bold">${uiLabelMap.AccountingPaymentInformation}:</fo:block>
     <#list orderPaymentPreferences as orderPaymentPreference>
         <fo:block text-indent="0.2in">
-            <#assign paymentMethodType = orderPaymentPreference.getRelatedOne("PaymentMethodType", false)?if_exists>
+            <#assign paymentMethodType = orderPaymentPreference.getRelatedOne("PaymentMethodType", false)!>
             <#if (orderPaymentPreference?? && (orderPaymentPreference.getString("paymentMethodTypeId") == "CREDIT_CARD") && (orderPaymentPreference.getString("paymentMethodId")?has_content))>
                 <#assign creditCard = orderPaymentPreference.getRelatedOne("PaymentMethod", false).getRelatedOne("CreditCard", false)>
                 ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}
             <#else>
-                ${paymentMethodType.get("description",locale)?if_exists}
+                ${paymentMethodType.get("description",locale)!}
             </#if>
         </fo:block>
     </#list>
@@ -95,11 +95,11 @@ under the License.
     <#list shipGroups as shipGroup>
         <fo:block text-indent="0.2in">
             <#if shipGroups.size() gt 1>${shipGroup.shipGroupSeqId} - </#if>
-            <#if (shipGroup.shipmentMethodTypeId)?exists>
+            <#if (shipGroup.shipmentMethodTypeId)??>
                 ${(shipGroup.getRelatedOne("ShipmentMethodType", false).get("description", locale))?default(shipGroup.shipmentMethodTypeId)}
             </#if>
-            <#if (shipGroup.shipAfterDate)?exists || (shipGroup.shipByDate)?exists>
-                <#if (shipGroup.shipAfterDate)?exists> - ${uiLabelMap.OrderShipAfterDate}: ${Static["org.ofbiz.base.util.UtilDateTime"].toDateString(shipGroup.shipAfterDate)}</#if><#if (shipGroup.shipByDate)?exists> - ${uiLabelMap.OrderShipBeforeDate}: ${Static["org.ofbiz.base.util.UtilDateTime"].toDateString(shipGroup.shipByDate)}</#if>
+            <#if (shipGroup.shipAfterDate)?? || (shipGroup.shipByDate)??>
+                <#if (shipGroup.shipAfterDate)??> - ${uiLabelMap.OrderShipAfterDate}: ${Static["org.ofbiz.base.util.UtilDateTime"].toDateString(shipGroup.shipAfterDate)}</#if><#if (shipGroup.shipByDate)??> - ${uiLabelMap.OrderShipBeforeDate}: ${Static["org.ofbiz.base.util.UtilDateTime"].toDateString(shipGroup.shipByDate)}</#if>
             </#if>
         </fo:block>
     </#list>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportHeaderInfo.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportHeaderInfo.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportHeaderInfo.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/orderReportHeaderInfo.fo.ftl Mon Aug 18 07:42:27 2014
@@ -43,7 +43,7 @@ under the License.
                       <fo:table-cell><fo:block>${uiLabelMap.OrderCurrentStatus}</fo:block></fo:table-cell>
                       <fo:table-cell><fo:block font-weight="bold">${currentStatus.get("description",locale)}</fo:block></fo:table-cell>
                     </fo:table-row>
-                    <#if orderItem.cancelBackOrderDate?exists>
+                    <#if orderItem.cancelBackOrderDate??>
                       <fo:table-row>
                         <fo:table-cell><fo:block>${uiLabelMap.FormFieldTitle_cancelBackOrderDate}</fo:block></fo:table-cell>
                         <#assign dateFormat = Static["java.text.DateFormat"].LONG>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/order/ordercontactinfo.ftl Mon Aug 18 07:42:27 2014
@@ -20,31 +20,31 @@ under the License.
 <#macro updateOrderContactMech orderHeader contactMechTypeId contactMechList contactMechPurposeTypeId contactMechAddress>
   <#if (!orderHeader.statusId.equals("ORDER_COMPLETED")) && !(orderHeader.statusId.equals("ORDER_REJECTED")) && !(orderHeader.statusId.equals("ORDER_CANCELLED"))>
     <form name="updateOrderContactMech" method="post" action="<@ofbizUrl>updateOrderContactMech</@ofbizUrl>">
-      <input type="hidden" name="orderId" value="${orderId?if_exists}" />
-      <input type="hidden" name="contactMechPurposeTypeId" value="${contactMechPurpose.contactMechPurposeTypeId?if_exists}" />
-      <input type="hidden" name="oldContactMechId" value="${contactMech.contactMechId?if_exists}" />
+      <input type="hidden" name="orderId" value="${orderId!}" />
+      <input type="hidden" name="contactMechPurposeTypeId" value="${contactMechPurpose.contactMechPurposeTypeId!}" />
+      <input type="hidden" name="oldContactMechId" value="${contactMech.contactMechId!}" />
       <select name="contactMechId">
         <#if contactMech.contactMechTypeId == "POSTAL_ADDRESS">
           <option value="${contactMechAddress.contactMechId}">${(contactMechAddress.address1)?default("")} - ${contactMechAddress.city?default("")}</option>
           <option value="${contactMechAddress.contactMechId}"></option>
           <#list contactMechList as contactMech>
-            <#assign postalAddress = contactMech.getRelatedOne("PostalAddress", false)?if_exists />
-            <#assign partyContactPurposes = postalAddress.getRelated("PartyContactMechPurpose", null, null, false)?if_exists />
+            <#assign postalAddress = contactMech.getRelatedOne("PostalAddress", false)! />
+            <#assign partyContactPurposes = postalAddress.getRelated("PartyContactMechPurpose", null, null, false)! />
             <#list partyContactPurposes as partyContactPurpose>
               <#if contactMech.contactMechId?has_content && partyContactPurpose.contactMechPurposeTypeId == contactMechPurposeTypeId>
-                <option value="${contactMech.contactMechId?if_exists}">${(postalAddress.address1)?default("")} - ${postalAddress.city?default("")}</option>
+                <option value="${contactMech.contactMechId!}">${(postalAddress.address1)?default("")} - ${postalAddress.city?default("")}</option>
               </#if>
             </#list>
           </#list>
         <#elseif contactMech.contactMechTypeId == "TELECOM_NUMBER">
-          <option value="${contactMechAddress.contactMechId}">${contactMechAddress.countryCode?if_exists} <#if contactMechAddress.areaCode?exists>${contactMechAddress.areaCode}-</#if>${contactMechAddress.contactNumber}</option>
+          <option value="${contactMechAddress.contactMechId}">${contactMechAddress.countryCode!} <#if contactMechAddress.areaCode??>${contactMechAddress.areaCode}-</#if>${contactMechAddress.contactNumber}</option>
           <option value="${contactMechAddress.contactMechId}"></option>
           <#list contactMechList as contactMech>
-             <#assign telecomNumber = contactMech.getRelatedOne("TelecomNumber", false)?if_exists />
-             <#assign partyContactPurposes = telecomNumber.getRelated("PartyContactMechPurpose", null, null, false)?if_exists />
+             <#assign telecomNumber = contactMech.getRelatedOne("TelecomNumber", false)! />
+             <#assign partyContactPurposes = telecomNumber.getRelated("PartyContactMechPurpose", null, null, false)! />
              <#list partyContactPurposes as partyContactPurpose>
                <#if contactMech.contactMechId?has_content && partyContactPurpose.contactMechPurposeTypeId == contactMechPurposeTypeId>
-                  <option value="${contactMech.contactMechId?if_exists}">${telecomNumber.countryCode?if_exists} <#if telecomNumber.areaCode?exists>${telecomNumber.areaCode}-</#if>${telecomNumber.contactNumber}</option>
+                  <option value="${contactMech.contactMechId!}">${telecomNumber.countryCode!} <#if telecomNumber.areaCode??>${telecomNumber.areaCode}-</#if>${telecomNumber.contactNumber}</option>
                </#if>
              </#list>
           </#list>
@@ -52,10 +52,10 @@ under the License.
           <option value="${contactMechAddress.contactMechId}">${(contactMechAddress.infoString)?default("")}</option>
           <option value="${contactMechAddress.contactMechId}"></option>
           <#list contactMechList as contactMech>
-             <#assign partyContactPurposes = contactMech.getRelated("PartyContactMechPurpose", null, null, false)?if_exists />
+             <#assign partyContactPurposes = contactMech.getRelated("PartyContactMechPurpose", null, null, false)! />
              <#list partyContactPurposes as partyContactPurpose>
                <#if contactMech.contactMechId?has_content && partyContactPurpose.contactMechPurposeTypeId == contactMechPurposeTypeId>
-                  <option value="${contactMech.contactMechId?if_exists}">${contactMech.infoString?if_exists}</option>
+                  <option value="${contactMech.contactMechId!}">${contactMech.infoString!}</option>
                </#if>
              </#list>
           </#list>
@@ -83,10 +83,10 @@ under the License.
                 <#assign displayPartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", displayParty.partyId, "compareDate", orderHeader.orderDate, "userLogin", userLogin))/>
                 ${displayPartyNameResult.fullName?default("[${uiLabelMap.OrderPartyNameNotFound}]")}
               </#if>
-              <#if partyId?exists>
+              <#if partyId??>
                 &nbsp;(<a href="${customerDetailLink}${partyId}${StringUtil.wrapString(externalKeyParam)}" target="partymgr" class="buttontext">${partyId}</a>)
                 <br/>
-                <#if (orderHeader.salesChannelEnumId)?exists && orderHeader.salesChannelEnumId != "POS_SALES_CHANNEL">
+                <#if (orderHeader.salesChannelEnumId)?? && orderHeader.salesChannelEnumId != "POS_SALES_CHANNEL">
                 <div>
                    <a href="<@ofbizUrl>/orderentry?partyId=${partyId}&amp;orderTypeId=${orderHeader.orderTypeId}</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderNewOrder}</a>
                    <a href="javascript:document.searchOtherOrders.submit()" class="buttontext">${uiLabelMap.OrderOtherOrders}</a>
@@ -120,20 +120,20 @@ under the License.
                      ${setContextField("postalAddress", postalAddress)}
                      ${screens.render("component://party/widget/partymgr/PartyScreens.xml#postalAddressHtmlFormatter")}
                   </div>
-                  <@updateOrderContactMech orderHeader=orderHeader?if_exists contactMechTypeId=contactMech.contactMechTypeId contactMechList=postalContactMechList?if_exists contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId?if_exists contactMechAddress=postalAddress?if_exists />
+                  <@updateOrderContactMech orderHeader=orderHeader! contactMechTypeId=contactMech.contactMechTypeId contactMechList=postalContactMechList! contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId! contactMechAddress=postalAddress! />
                 </#if>
               <#elseif contactMech.contactMechTypeId == "TELECOM_NUMBER">
                 <#assign telecomNumber = orderContactMechValueMap.telecomNumber>
                 <div>
-                  ${telecomNumber.countryCode?if_exists}
-                  <#if telecomNumber.areaCode?exists>${telecomNumber.areaCode}-</#if>${telecomNumber.contactNumber}
-                  <#--<#if partyContactMech.extension?exists>ext&nbsp;${partyContactMech.extension}</#if>-->
-                  <#if !telecomNumber.countryCode?exists || telecomNumber.countryCode == "011" || telecomNumber.countryCode == "1">
+                  ${telecomNumber.countryCode!}
+                  <#if telecomNumber.areaCode??>${telecomNumber.areaCode}-</#if>${telecomNumber.contactNumber}
+                  <#--<#if partyContactMech.extension??>ext&nbsp;${partyContactMech.extension}</#if>-->
+                  <#if !telecomNumber.countryCode?? || telecomNumber.countryCode == "011" || telecomNumber.countryCode == "1">
                     <a target="_blank" href="${uiLabelMap.CommonLookupAnywhoLink}" class="buttontext">${uiLabelMap.CommonLookupAnywho}</a>
                    <a target="_blank" href="${uiLabelMap.CommonLookupWhitepagesTelNumberLink}" class="buttontext">${uiLabelMap.CommonLookupWhitepages}</a>
                   </#if>
                 </div>
-                <@updateOrderContactMech orderHeader=orderHeader?if_exists contactMechTypeId=contactMech.contactMechTypeId contactMechList=telecomContactMechList?if_exists contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId?if_exists contactMechAddress=telecomNumber?if_exists />
+                <@updateOrderContactMech orderHeader=orderHeader! contactMechTypeId=contactMech.contactMechTypeId contactMechList=telecomContactMechList! contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId! contactMechAddress=telecomNumber! />
               <#elseif contactMech.contactMechTypeId == "EMAIL_ADDRESS">
                 <div>
                   ${contactMech.infoString}
@@ -143,7 +143,7 @@ under the License.
                      <a href="mailto:${contactMech.infoString}" class="buttontext">(${uiLabelMap.OrderSendEmail})</a>
                   </#if>
                 </div>
-                <@updateOrderContactMech orderHeader=orderHeader?if_exists contactMechTypeId=contactMech.contactMechTypeId contactMechList=emailContactMechList?if_exists contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId?if_exists contactMechAddress=contactMech?if_exists />
+                <@updateOrderContactMech orderHeader=orderHeader! contactMechTypeId=contactMech.contactMechTypeId contactMechList=emailContactMechList! contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId! contactMechAddress=contactMech! />
               <#elseif contactMech.contactMechTypeId == "WEB_ADDRESS">
                 <div>
                   ${contactMech.infoString}
@@ -155,7 +155,7 @@ under the License.
                 </div>
               <#else>
                 <div>
-                  ${contactMech.infoString?if_exists}
+                  ${contactMech.infoString!}
                 </div>
               </#if>
             </td>