You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2014/08/18 09:42:37 UTC

svn commit: r1618554 [13/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...

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/quickReturn.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/quickReturn.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/quickReturn.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/quickReturn.ftl Mon Aug 18 07:42:27 2014
@@ -27,11 +27,11 @@ under the License.
         <form name="selectAllForm" method="post" action="<@o...@ofbizUrl>">
           <input type="hidden" name="_checkGlobalScope" value="Y"/>
           <input type="hidden" name="_useRowSubmit" value="Y"/>
-          <input type="hidden" name="fromPartyId" value="${partyId?if_exists}"/>
-          <input type="hidden" name="toPartyId" value="${toPartyId?if_exists}"/>
+          <input type="hidden" name="fromPartyId" value="${partyId!}"/>
+          <input type="hidden" name="toPartyId" value="${toPartyId!}"/>
           <input type="hidden" name="orderId" value="${orderId}"/>
           <input type="hidden" name="needsInventoryReceive" value="${parameters.needsInventoryReceive?default("Y")}"/>
-          <input type="hidden" name="destinationFacilityId" value="${destinationFacilityId?if_exists}"/>
+          <input type="hidden" name="destinationFacilityId" value="${destinationFacilityId!}"/>
           <input type="hidden" name="returnHeaderTypeId" value="${returnHeaderTypeId}"/>
           <#if (orderHeader?has_content) && (orderHeader.currencyUom?has_content)>
           <input type="hidden" name="currencyUomId" value="${orderHeader.currencyUom}"/>
@@ -42,7 +42,7 @@ under the License.
           <h3>${uiLabelMap.FormFieldTitle_paymentMethodId}:</h3>
           <table cellspacing="0" class="basic-table">
             <tr><td>
-              <#if creditCardList?exists || eftAccountList?exists>
+              <#if creditCardList?? || eftAccountList??>
                 <select name='paymentMethodId'>
                   <option value=""></option>
                   <#if creditCardList?has_content>
@@ -53,7 +53,7 @@ under the License.
                   </#if>
                   <#if eftAccountList?has_content>
                     <#list eftAccountList as eftAccount>
-                      <option value="${eftAccount.paymentMethodId}">EFT:&nbsp;${eftAccount.nameOnAccount?if_exists}, ${eftAccount.accountNumber?if_exists}</option>
+                      <option value="${eftAccount.paymentMethodId}">EFT:&nbsp;${eftAccount.nameOnAccount!}, ${eftAccount.accountNumber!}</option>
                     </#list>
                   </#if>
                 </select>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnHeader.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnHeader.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnHeader.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnHeader.ftl Mon Aug 18 07:42:27 2014
@@ -25,18 +25,18 @@ under the License.
         <br class="clear"/>
     </div>
     <div class="screenlet-body">
-        <#if returnHeader?exists>
+        <#if returnHeader??>
             <form name="returnhead" method="post" action="<@o...@ofbizUrl>">
             <input type="hidden" name="returnId" value="${returnHeader.returnId}" />
             <input type="hidden" name="returnHeaderTypeId" value="CUSTOMER_RETURN"/>
-            <input type="hidden" name="currentStatusId" value="${returnHeader.statusId?if_exists}" />
+            <input type="hidden" name="currentStatusId" value="${returnHeader.statusId!}" />
         <#else>
             <form name="returnhead" method="post" action="<@o...@ofbizUrl>">
             <input type="hidden" name="returnHeaderTypeId" value="CUSTOMER_RETURN"/>
         </#if>
 
         <table cellspacing="0" class="basic-table">
-          <#if returnHeader?exists>
+          <#if returnHeader??>
           <tr>
             <td width='14%'>&nbsp;</td>
             <td width='6%' align='right' nowrap="nowrap" class="label">${uiLabelMap.OrderReturnId}</td>
@@ -49,8 +49,8 @@ under the License.
             <td width='6%' align='right' nowrap="nowrap" class="label">${uiLabelMap.CommonCurrency}</td>
             <td width='6%'>&nbsp;</td>
             <td width='74%'>
-          <#if returnHeader?exists>
-              ${returnHeader.currencyUomId?if_exists}
+          <#if returnHeader??>
+              ${returnHeader.currencyUomId!}
           <#else>
              <select name="currencyUomId">
                 <#if (orderHeader?has_content) && (orderHeader.currencyUom?has_content)>
@@ -74,10 +74,10 @@ under the License.
             <td width='6%' align='right' nowrap="nowrap" class="label">${uiLabelMap.OrderEntryDate}</td>
             <td width='6%'>&nbsp;</td>
             <td width='74%'>
-              <#if returnInfo.entryDate?exists>
+              <#if returnInfo.entryDate??>
                 <#assign entryDate = returnInfo.get("entryDate").toString()>
               </#if>
-              <@htmlTemplate.renderDateTimeField name="entryDate" event="" action="" value="${entryDate?if_exists}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="entryDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
+              <@htmlTemplate.renderDateTimeField name="entryDate" event="" action="" value="${entryDate!}" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="entryDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
             </td>
           </tr>
           <tr>
@@ -85,7 +85,7 @@ under the License.
             <td width='6%' align='right' nowrap="nowrap" class="label">${uiLabelMap.OrderReturnFromParty}</td>
             <td width='6%'>&nbsp;</td>
             <td width='74%'>
-              <@htmlTemplate.lookupField value='${returnInfo.fromPartyId?if_exists}' formName="returnhead" name="fromPartyId" id="fromPartyId" fieldFormName="LookupPartyName"/>
+              <@htmlTemplate.lookupField value='${returnInfo.fromPartyId!}' formName="returnhead" name="fromPartyId" id="fromPartyId" fieldFormName="LookupPartyName"/>
             </td>
           </tr>
           <tr>
@@ -94,7 +94,7 @@ under the License.
             <td width='6%'>&nbsp;</td>
             <td width='74%'>
               <select name='destinationFacilityId'>
-                <#if currentFacility?exists>
+                <#if currentFacility??>
                   <option value="${currentFacility.facilityId}">${currentFacility.facilityName?default(currentFacility.facilityId)}</option>
                   <option value="${currentFacility.facilityId}">---</option>
                 </#if>
@@ -111,13 +111,13 @@ under the License.
             <td width='74%'>
               <#if billingAccountList?has_content>
                 <select name='billingAccountId'>
-                  <#if currentAccount?exists>
-                    <option value="${currentAccount.billingAccountId}">${currentAccount.billingAccountId}: ${currentAccount.description?if_exists}</option>
+                  <#if currentAccount??>
+                    <option value="${currentAccount.billingAccountId}">${currentAccount.billingAccountId}: ${currentAccount.description!}</option>
                     <option value="${currentAccount.billingAccountId}">---</option>
                   </#if>
                   <option value="">${uiLabelMap.AccountingNewBillingAccount}</option>
                   <#list billingAccountList as ba>
-                    <option value="${ba.billingAccountId}">${ba.billingAccountId}: ${ba.description?if_exists}</option>
+                    <option value="${ba.billingAccountId}">${ba.billingAccountId}: ${ba.description!}</option>
                   </#list>
                 </select>
               <#else>
@@ -130,13 +130,13 @@ under the License.
             <td width='6%' align='right' nowrap="nowrap" class="label">${uiLabelMap.FormFieldTitle_paymentMethodId}</td>
             <td width='6%'>&nbsp;</td>
             <td width='74%'>
-              <#if creditCardList?exists || eftAccountList?exists>
+              <#if creditCardList?? || eftAccountList??>
                 <select name='paymentMethodId'>
-                  <#if currentCreditCard?exists>
+                  <#if currentCreditCard??>
                     <option value="${currentCreditCard.paymentMethodId}">CC:&nbsp;${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(currentCreditCard)}</option>
                   </#if>
-                  <#if currentEftAccount?exists>
-                    <option value="${currentEftAccount.paymentMethodId}">EFT:&nbsp;${currentEftAccount.nameOnAccount?if_exists}, ${currentEftAccount.accountNumber?if_exists}</option>
+                  <#if currentEftAccount??>
+                    <option value="${currentEftAccount.paymentMethodId}">EFT:&nbsp;${currentEftAccount.nameOnAccount!}, ${currentEftAccount.accountNumber!}</option>
                   </#if>
                   <option value=""></option>
                   <#if creditCardList?has_content>
@@ -147,12 +147,12 @@ under the License.
                   </#if>
                   <#if eftAccountList?has_content>
                     <#list eftAccountList as eftAccount>
-                      <option value="${eftAccount.paymentMethodId}">EFT:&nbsp;${eftAccount.nameOnAccount?if_exists}, ${eftAccount.accountNumber?if_exists}</option>
+                      <option value="${eftAccount.paymentMethodId}">EFT:&nbsp;${eftAccount.nameOnAccount!}, ${eftAccount.accountNumber!}</option>
                     </#list>
                   </#if>
                 </select>
               <#else>
-                <input type='text' size='20' name='paymentMethodId' value="${returnHeader?if_exists.paymentMethodId?if_exists}"/>
+                <input type='text' size='20' name='paymentMethodId' value="${(returnHeader.paymentMethodId)!}"/>
               </#if>
               <#if (returnHeader.fromPartyId)?has_content>
                 <a href="/partymgr/control/editcreditcard?partyId=${returnHeader.fromPartyId}${StringUtil.wrapString(externalKeyParam)}" target="partymgr" class="smallSubmit">${uiLabelMap.AccountingCreateNewCreditCard}</a>
@@ -165,7 +165,7 @@ under the License.
             <td width='6%'>&nbsp;</td>
             <td width='74%'>
               <select name='needsInventoryReceive'>
-                <#if needsInventoryReceive?exists>
+                <#if needsInventoryReceive??>
                   <#if "Y" == needsInventoryReceive>
                     <option selected="selected" value="${needsInventoryReceive}">${uiLabelMap.CommonYes}</option>
                   <#elseif "N" == needsInventoryReceive>
@@ -185,7 +185,7 @@ under the License.
             <td width='6%'>&nbsp;</td>
             <td width='74%'>
               <select name="statusId">
-                <#if currentStatus?exists>
+                <#if currentStatus??>
                   <option value="${currentStatus.statusId}">${currentStatus.get("description",locale)}</option>
                   <option value="${currentStatus.statusId}">---</option>
                 </#if>
@@ -256,7 +256,7 @@ under the License.
             <#if postalAddress?has_content>
                     <div>
                       <#if (editable)>
-                        <input type='radio' name="originContactMechId" value="${postalAddress.contactMechId?if_exists}"
+                        <input type='radio' name="originContactMechId" value="${postalAddress.contactMechId!}"
                           <#if ( postalAddressFrom?has_content && postalAddressFrom.contactMechId?default("") == postalAddress.contactMechId)>checked="checked"</#if> />
                       </#if>
                       <#if postalAddress.toName?has_content><span class="label">${uiLabelMap.CommonTo}</span>&nbsp;${postalAddress.toName}<br /></#if>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnItemInc.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnItemInc.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnItemInc.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnItemInc.ftl Mon Aug 18 07:42:27 2014
@@ -26,7 +26,7 @@ under the License.
     </tr>
 
     <#-- information about orders and amount refunded/credited on past returns -->
-    <#if orh?exists>
+    <#if orh??>
     <tr><td colspan="10">
         <table cellspacing="0" class="basic-table">
           <tr>
@@ -90,7 +90,7 @@ under the License.
             </tr>
         <#else>
             <#-- this is an order item -->
-            <#assign returnItemType = (returnItemTypeMap.get(returnableItems.get(orderItem).get("itemTypeKey")))?if_exists/>
+            <#assign returnItemType = (returnItemTypeMap.get(returnableItems.get(orderItem).get("itemTypeKey")))!/>
             <#-- need some order item information -->
             <#assign orderHeader = orderItem.getRelatedOne("OrderHeader", false)>
             <#assign itemCount = orderItem.quantity>
@@ -102,14 +102,14 @@ under the License.
             <input type="hidden" name="returnItemTypeId_o_${rowCount}" value="${returnItemType}"/>
             <input type="hidden" name="orderId_o_${rowCount}" value="${orderItem.orderId}"/>
             <input type="hidden" name="orderItemSeqId_o_${rowCount}" value="${orderItem.orderItemSeqId}"/>
-            <input type="hidden" name="description_o_${rowCount}" value="${orderItem.itemDescription?if_exists}"/>
+            <input type="hidden" name="description_o_${rowCount}" value="${orderItem.itemDescription!}"/>
 
                 <div>
-                  <#if orderItem.productId?exists>
+                  <#if orderItem.productId??>
                     ${orderItem.productId}&nbsp;
                     <input type="hidden" name="productId_o_${rowCount}" value="${orderItem.productId}"/>
                   </#if>
-                  ${orderItem.itemDescription?if_exists}
+                  ${orderItem.itemDescription!}
                 </div>
               </td>
               <td align='center'>
@@ -122,7 +122,7 @@ under the License.
                 <div><@ofbizCurrency amount=orderItem.unitPrice isoCode=orderHeader.currencyUom/></div>
               </td>
               <td>
-                <#if orderItem.productId?exists>
+                <#if orderItem.productId??>
                   <#assign product = orderItem.getRelatedOne("Product", false)/>
                   <#if product.productTypeId == "ASSET_USAGE_OUT_IN">
                     <input type="text" size="8" name="returnPrice_o_${rowCount}" value="0.00"/>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnItems.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnItems.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnItems.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnItems.ftl Mon Aug 18 07:42:27 2014
@@ -19,7 +19,7 @@ under the License.
 
 <#macro displayReturnAdjustment returnAdjustment adjEditable>
     <#assign returnHeader = returnAdjustment.getRelatedOne("ReturnHeader", false)>
-    <#assign adjReturnType = returnAdjustment.getRelatedOne("ReturnType", false)?if_exists>
+    <#assign adjReturnType = returnAdjustment.getRelatedOne("ReturnType", false)!>
     <#if (adjEditable)>
         <input type="hidden" name="_rowSubmit_o_${rowCount}" value="Y" />
         <input type="hidden" name="returnAdjustmentId_o_${rowCount}" value="${returnAdjustment.returnAdjustmentId}" />
@@ -45,11 +45,11 @@ under the License.
            <#else>
                <select name="returnTypeId_o_${rowCount}">
                   <#if (adjReturnType?has_content)>
-                    <option value="${adjReturnType.returnTypeId}">${adjReturnType.get("description",locale)?if_exists}</option>
+                    <option value="${adjReturnType.returnTypeId}">${adjReturnType.get("description",locale)!}</option>
                     <option value="${adjReturnType.returnTypeId}">--</option>
                   </#if>
                   <#list returnTypes as returnTypeItem>
-                    <option value="${returnTypeItem.returnTypeId}">${returnTypeItem.get("description",locale)?if_exists}</option>
+                    <option value="${returnTypeItem.returnTypeId}">${returnTypeItem.get("description",locale)!}</option>
                   </#list>
                 </select>
           </#if>
@@ -72,7 +72,7 @@ under the License.
       <#if returnHeader.destinationFacilityId?has_content && returnHeader.statusId == "RETURN_ACCEPTED" && returnHeader.returnHeaderTypeId?starts_with("CUSTOMER_")>
         <#list returnShipmentIds as returnShipmentId>
           <a href="/facility/control/ViewShipment?shipmentId=${returnShipmentId.shipmentId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.ProductShipmentId} ${returnShipmentId.shipmentId}</a>
-          <a href="/facility/control/ReceiveReturn?facilityId=${returnHeader.destinationFacilityId}&amp;returnId=${returnHeader.returnId?if_exists}&amp;shipmentId=${returnShipmentId.shipmentId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.OrderReceiveReturn}</a>
+          <a href="/facility/control/ReceiveReturn?facilityId=${returnHeader.destinationFacilityId}&amp;returnId=${returnHeader.returnId!}&amp;shipmentId=${returnShipmentId.shipmentId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.OrderReceiveReturn}</a>
         </#list>
       <#elseif returnHeader.statusId == "SUP_RETURN_ACCEPTED" && returnHeader.returnHeaderTypeId == "VENDOR_RETURN">
          <#if returnShipmentIds?has_content>
@@ -94,7 +94,7 @@ under the License.
     </div>
     <div class="screenlet-body">
 <!-- if we're called with loadOrderItems or createReturn, then orderId would exist -->
-<#if !requestParameters.orderId?exists>
+<#if !requestParameters.orderId??>
           <form method="post" action="<@o...@ofbizUrl>">
           <input type="hidden" name="_useRowSubmit" value="Y" />
         <table cellspacing="0" class="basic-table">
@@ -102,7 +102,7 @@ under the License.
           <tr><td colspan="10"><h3>${uiLabelMap.OrderOrderReturn} #${returnId}</h3></td></tr>
 
           <#-- information about orders and amount refunded/credited on past returns -->
-          <#if orh?exists>
+          <#if orh??>
           <tr><td colspan="10">
               <table cellspacing="0" class="basic-table">
                 <tr>
@@ -142,13 +142,13 @@ under the License.
           <#if returnItems?has_content>
             <#assign alt_row = false>
             <#list returnItems as item>
-              <#assign orderItem = item.getRelatedOne("OrderItem", false)?if_exists>
-              <#assign orderHeader = item.getRelatedOne("OrderHeader", false)?if_exists>
-              <#assign returnReason = item.getRelatedOne("ReturnReason", false)?if_exists>
-              <#assign returnType = item.getRelatedOne("ReturnType", false)?if_exists>
-              <#assign status = item.getRelatedOne("InventoryStatusItem", false)?if_exists>
-              <#assign shipmentReceipts = item.getRelated("ShipmentReceipt", null, null, false)?if_exists>
-              <#if (item.get("returnQuantity")?exists && item.get("returnPrice")?exists)>
+              <#assign orderItem = item.getRelatedOne("OrderItem", false)!>
+              <#assign orderHeader = item.getRelatedOne("OrderHeader", false)!>
+              <#assign returnReason = item.getRelatedOne("ReturnReason", false)!>
+              <#assign returnType = item.getRelatedOne("ReturnType", false)!>
+              <#assign status = item.getRelatedOne("InventoryStatusItem", false)!>
+              <#assign shipmentReceipts = item.getRelated("ShipmentReceipt", null, null, false)!>
+              <#if (item.get("returnQuantity")?? && item.get("returnPrice")??)>
                  <#assign returnTotal = returnTotal + item.get("returnQuantity") * item.get("returnPrice") >
                  <#assign returnItemSubTotal = item.get("returnQuantity") * item.get("returnPrice") >
               <#else>
@@ -163,7 +163,7 @@ under the License.
                   <input type="hidden" name="_rowSubmit_o_${rowCount}" value="Y" />
                 </td>
                 <td><div>
-                    <#if item.get("productId")?exists>
+                    <#if item.get("productId")??>
                         <a href="/catalog/control/EditProductInventoryItems?productId=${item.productId}" class="buttontext">${item.productId}</a>
                     <#else>
                         N/A
@@ -172,7 +172,7 @@ under the License.
                     <#if readOnly>
                         ${item.description?default("N/A")}
                     <#else>
-                        <input name="description_o_${rowCount}" value="${item.description?if_exists}" type="text" size="15" />
+                        <input name="description_o_${rowCount}" value="${item.description!}" type="text" size="15" />
                     </#if>
                     </div></td>
                 <td><div>
@@ -181,9 +181,9 @@ under the License.
                     <#else>
                         <input name="returnQuantity_o_${rowCount}" value="${item.returnQuantity}" type="text" size="8" align="right" />
                     </#if>
-                    <#if item.receivedQuantity?exists>
+                    <#if item.receivedQuantity??>
                     <br />${uiLabelMap.OrderTotalQuantityReceive}: ${item.receivedQuantity}
-                        <#list shipmentReceipts?if_exists as shipmentReceipt>
+                        <#list shipmentReceipts! as shipmentReceipt>
                             <br />${uiLabelMap.OrderQty}: ${shipmentReceipt.quantityAccepted}, ${shipmentReceipt.datetimeReceived}, <a href="/facility/control/EditInventoryItem?inventoryItemId=${shipmentReceipt.inventoryItemId}" class="buttontext">${shipmentReceipt.inventoryItemId}</a>
                         </#list>
                     </#if>
@@ -196,7 +196,7 @@ under the License.
                     </#if>
                     </div></td>
                 <td>
-                    <#if returnItemSubTotal?exists><@ofbizCurrency amount=returnItemSubTotal isoCode=orderHeader.currencyUom/></#if>
+                    <#if returnItemSubTotal??><@ofbizCurrency amount=returnItemSubTotal isoCode=orderHeader.currencyUom/></#if>
                 </td>
                 <td><div>
                     <#if readOnly>
@@ -204,11 +204,11 @@ under the License.
                     <#else>
                         <select name="returnReasonId_o_${rowCount}">
                             <#if (returnReason?has_content)>
-                                <option value="${returnReason.returnReasonId}">${returnReason.get("description",locale)?if_exists}</option>
+                                <option value="${returnReason.returnReasonId}">${returnReason.get("description",locale)!}</option>
                                 <option value="${returnReason.returnReasonId}">--</option>
                             </#if>
                             <#list returnReasons as returnReasonItem>
-                                <option value="${returnReasonItem.returnReasonId}">${returnReasonItem.get("description",locale)?if_exists}</option>
+                                <option value="${returnReasonItem.returnReasonId}">${returnReasonItem.get("description",locale)!}</option>
                             </#list>
                         </select>
                     </#if>
@@ -223,11 +223,11 @@ under the License.
                   <#else>
                       <select name="expectedItemStatus_o_${rowCount}">
                           <#if (status?has_content)>
-                              <option value="${status.statusId}">${status.get("description",locale)?if_exists}</option>
+                              <option value="${status.statusId}">${status.get("description",locale)!}</option>
                               <option value="${status.statusId}">--</option>
                           </#if>
                           <#list itemStatus as returnItemStatus>
-                              <option value="${returnItemStatus.statusId}">${returnItemStatus.get("description",locale)?if_exists}</option>
+                              <option value="${returnItemStatus.statusId}">${returnItemStatus.get("description",locale)!}</option>
                           </#list>
                       </select>
                   </#if>
@@ -238,18 +238,18 @@ under the License.
                     <#else>
                         <select name="returnTypeId_o_${rowCount}">
                             <#if (returnType?has_content)>
-                                <option value="${returnType.returnTypeId}">${returnType.get("description",locale)?if_exists}</option>
+                                <option value="${returnType.returnTypeId}">${returnType.get("description",locale)!}</option>
                                 <option value="${returnType.returnTypeId}">--</option>
                             </#if>
                             <#list returnTypes as returnTypeItem>
-                                <option value="${returnTypeItem.returnTypeId}">${returnTypeItem.get("description",locale)?if_exists}</option>
+                                <option value="${returnTypeItem.returnTypeId}">${returnTypeItem.get("description",locale)!}</option>
                             </#list>
                         </select>
                     </#if></div></td>
                 <#if (readOnly)>
                   <td>
                   <#if returnHeader.statusId == "RETURN_COMPLETED" || returnHeader.statusId == "SUP_RETURN_COMPLETED">
-                    <#assign itemResp = item.getRelatedOne("ReturnItemResponse", false)?if_exists>
+                    <#assign itemResp = item.getRelatedOne("ReturnItemResponse", false)!>
                     <#if itemResp?has_content>
                       <#if itemResp.paymentId?has_content>
                         <div>${uiLabelMap.AccountingPayment} ${uiLabelMap.CommonNbr}<a href="/accounting/control/paymentOverview?paymentId=${itemResp.paymentId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${itemResp.paymentId}</a></div>
@@ -385,7 +385,7 @@ under the License.
           </table>
         </form>
         </#if>
-<!-- if no requestParameters.orderId exists, then show list of items -->
+<!-- if no requestParameters.orderId??, then show list of items -->
 <#else>
         <#assign selectAllFormName = "returnItems"/>
         <form name="returnItems" method="post" action="<@o...@ofbizUrl>">

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnLinks.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnLinks.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnLinks.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnLinks.ftl Mon Aug 18 07:42:27 2014
@@ -17,14 +17,14 @@ specific language governing permissions 
 under the License.
 -->
 <#assign selected = tabButtonItem?default("void")>
-<#if returnHeader?exists>
+<#if returnHeader??>
   <div class="button-bar tab-bar">
     <ul>
       <li>
     <ul>
-      <li<#if selected="OrderReturnHeader"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.OrderReturnHeader}</a></li>
-      <li<#if selected="OrderReturnItems"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.OrderReturnItems}</a></li>
-      <li<#if selected="OrderReturnHistory"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.OrderReturnHistory}</a></li>
+      <li<#if selected="OrderReturnHeader"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.OrderReturnHeader}</a></li>
+      <li<#if selected="OrderReturnItems"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.OrderReturnItems}</a></li>
+      <li<#if selected="OrderReturnHistory"> class="selected"</#if>><a href="<@o...@ofbizUrl>">${uiLabelMap.OrderReturnHistory}</a></li>
     </ul>
       </li>
     </ul>
@@ -35,13 +35,13 @@ under the License.
       <ul>
         <li>
           <ul>
-      <li><a href="<@o...@ofbizUrl>" target="_BLANK" >PDF</a></li>
-      <#if returnId?exists>
+      <li><a href="<@o...@ofbizUrl>" target="_BLANK" >PDF</a></li>
+      <#if returnId??>
         <#assign returnItems = delegator.findByAnd("ReturnItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("returnId", returnId, "returnTypeId", "RTN_REFUND"), null, false)/>
         <#if returnItems?has_content>
           <#assign orderId = (Static["org.ofbiz.entity.util.EntityUtil"].getFirst(returnItems)).getString("orderId")/>
-          <#assign partyId = "${(returnHeader.fromPartyId)?if_exists}"/>
-          <a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateExchangeOrder} ${uiLabelMap.CommonFor} ${orderId?if_exists}</a>
+          <#assign partyId = "${(returnHeader.fromPartyId)!}"/>
+          <a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateExchangeOrder} ${uiLabelMap.CommonFor} ${orderId!}</a>
         </#if>
         <#if "RETURN_ACCEPTED" == returnHeader.statusId>
           <#assign returnItems = delegator.findByAnd("ReturnItem", {"returnId" : returnId}, null, false)/>
@@ -49,11 +49,11 @@ under the License.
             <#assign orderId = (Static["org.ofbiz.entity.util.EntityUtil"].getFirst(returnItems)).getString("orderId")/>
             <#assign shipGroupAssoc = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("OrderItemShipGroupAssoc", {"orderId" : orderId}, null, false))/>
             <#assign shipGroup = delegator.findOne("OrderItemShipGroup", {"orderId" : orderId, "shipGroupSeqId" : shipGroupAssoc.shipGroupSeqId}, false)>
-            <#if shipGroup?exists && shipGroup.shipmentMethodTypeId != "NO_SHIPPING">
+            <#if shipGroup?? && shipGroup.shipmentMethodTypeId != "NO_SHIPPING">
               <#assign shipGroupShipment = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("Shipment", {"primaryOrderId" : shipGroup.orderId, "primaryShipGroupSeqId" : shipGroup.shipGroupSeqId}, null, false))/>
-              <#if shipGroupShipment?exists>
+              <#if shipGroupShipment??>
                 <#assign shipmentRouteSegment = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("ShipmentRouteSegment", {"shipmentId" : shipGroupShipment.shipmentId}, null, false))>
-                <#if shipmentRouteSegment?exists>
+                <#if shipmentRouteSegment??>
                   <#if "UPS" == shipmentRouteSegment.carrierPartyId>
                     <li><a href="javascript:document.upsEmailReturnLabel.submit();" class="buttontext">${uiLabelMap.ProductEmailReturnShippingLabelUPS}</a></li>
                     <li><form name="upsEmailReturnLabel" method="post" action="<@o...@ofbizUrl>">

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnList.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnList.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnList.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnList.ftl Mon Aug 18 07:42:27 2014
@@ -31,20 +31,20 @@ under the License.
   </tr>
   <#list returnList as returnHeader>
   <#assign statusItem = returnHeader.getRelatedOne("StatusItem", false)>
-  <#if returnHeader.destinationFacilityId?exists>
+  <#if returnHeader.destinationFacilityId??>
     <#assign facility = returnHeader.getRelatedOne("Facility", false)>
   </#if>
   <tr>
     <td><a href="<@o...@ofbizUrl>" class="buttontext">${returnHeader.returnId}</a></td>
     <td><div>${returnHeader.entryDate.toString()}</div></td>
     <td>
-      <#if returnHeader.fromPartyId?exists>
+      <#if returnHeader.fromPartyId??>
         <a href="${customerDetailLink}${returnHeader.fromPartyId}${StringUtil.wrapString(externalKeyParam)}" class='buttontext'>${returnHeader.fromPartyId}</a>
       <#else>
         <span class="label">${uiLabelMap.CommonNA}</span>
       </#if>
     </td>
-    <td><#if facility?exists>${facility.facilityName?default(facility.facilityId)}<#else>${uiLabelMap.CommonNone}</#if></td>
+    <td><#if facility??>${facility.facilityName?default(facility.facilityId)}<#else>${uiLabelMap.CommonNone}</#if></td>
     <td>${statusItem.get("description",locale)}</td>
   </tr>
   </#list>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnReportBody.fo.ftl Mon Aug 18 07:42:27 2014
@@ -19,7 +19,7 @@ under the License.
 <#escape x as x?xml>
 <#macro displayReturnAdjustment returnAdjustment>
     <#assign returnHeader = returnAdjustment.getRelatedOne("ReturnHeader", false)>
-    <#assign adjReturnType = returnAdjustment.getRelatedOne("ReturnType", false)?if_exists>
+    <#assign adjReturnType = returnAdjustment.getRelatedOne("ReturnType", false)!>
     <fo:table-row>
     <fo:table-cell><fo:block></fo:block></fo:table-cell>
     <fo:table-cell><fo:block></fo:block></fo:table-cell>
@@ -67,11 +67,11 @@ under the License.
                 </fo:table-cell>
                 <fo:table-cell padding="1mm" font-size="8pt">
                   <fo:block>
-                    <#if returnItem.orderItemSeqId?exists>${returnItem.getRelatedOne("OrderItem", false).getString("productId")}</#if>
+                    <#if returnItem.orderItemSeqId??>${returnItem.getRelatedOne("OrderItem", false).getString("productId")}</#if>
                   </fo:block>
                 </fo:table-cell>
-                <fo:table-cell padding="1mm"><fo:block wrap-option="wrap">${returnItem.description?if_exists}</fo:block></fo:table-cell>
-                <fo:table-cell padding="1mm" font-size="8pt"><fo:block><#if returnItem.returnReasonId?exists>${(returnItem.getRelatedOne("ReturnReason", false)).get("description",locale)?default(returnItem.returnReasonId)}</#if></fo:block></fo:table-cell>
+                <fo:table-cell padding="1mm"><fo:block wrap-option="wrap">${returnItem.description!}</fo:block></fo:table-cell>
+                <fo:table-cell padding="1mm" font-size="8pt"><fo:block><#if returnItem.returnReasonId??>${(returnItem.getRelatedOne("ReturnReason", false)).get("description",locale)?default(returnItem.returnReasonId)}</#if></fo:block></fo:table-cell>
                 <fo:table-cell padding="1mm" text-align="right"><fo:block>${returnItem.returnQuantity}</fo:block></fo:table-cell>
                 <fo:table-cell padding="1mm" text-align="right"><fo:block><@ofbizCurrency amount=returnItem.returnPrice isoCode=returnHeader.currencyUomId/></fo:block></fo:table-cell>
                 <fo:table-cell padding="1mm" text-align="right"><fo:block><@ofbizCurrency amount=(returnItem.returnPrice * returnItem.returnQuantity) isoCode=returnHeader.currencyUomId/></fo:block></fo:table-cell>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnReportContactMechs.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnReportContactMechs.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnReportContactMechs.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/return/returnReportContactMechs.fo.ftl Mon Aug 18 07:42:27 2014
@@ -34,8 +34,8 @@ under the License.
               <fo:table-body>
                 <fo:table-row><fo:table-cell border-style="solid" border-width="0.2pt" padding="1mm"><fo:block font-weight="bold">${uiLabelMap.OrderReturnFromAddress}</fo:block></fo:table-cell></fo:table-row>
                 <fo:table-row><fo:table-cell padding="1mm">
-                  <fo:block white-space-collapse="false"><#if fromPartyNameResult.fullName?has_content>${fromPartyNameResult.fullName}<#else/><#if postalAddressFrom?exists><#if (postalAddressFrom.toName)?has_content>${postalAddressFrom.toName}</#if><#if (postalAddressFrom.attnName)?has_content>
-${postalAddressFrom.attnName}</#if></#if></#if><#if postalAddressFrom?exists>
+                  <fo:block white-space-collapse="false"><#if fromPartyNameResult.fullName?has_content>${fromPartyNameResult.fullName}<#else/><#if postalAddressFrom??><#if (postalAddressFrom.toName)?has_content>${postalAddressFrom.toName}</#if><#if (postalAddressFrom.attnName)?has_content>
+${postalAddressFrom.attnName}</#if></#if></#if><#if postalAddressFrom??>
 ${postalAddressFrom.address1}<#if (postalAddressFrom.address2)?has_content>
 ${postalAddressFrom.address2}</#if>
 ${postalAddressFrom.city}<#if (postalAddressFrom.stateProvinceGeoId)?has_content>, ${postalAddressFrom.stateProvinceGeoId}</#if><#if (postalAddressFrom.postalCode)?has_content>, ${postalAddressFrom.postalCode}</#if></#if>
@@ -54,8 +54,8 @@ ${postalAddressFrom.city}<#if (postalAdd
               <fo:table-body>
                 <fo:table-row><fo:table-cell padding="1mm" border-style="solid" border-width="0.2pt"><fo:block font-weight="bold">${uiLabelMap.OrderReturnToAddress}</fo:block></fo:table-cell></fo:table-row>
                 <fo:table-row><fo:table-cell padding="1mm">
-                  <fo:block white-space-collapse="false"><#if toPartyNameResult.fullName?has_content>${toPartyNameResult.fullName}<fo:block /><#else/><#if postalAddressTo?exists><#if (postalAddressTo.toName)?has_content>${postalAddressTo.toName}</#if><#if (postalAddressTo.attnName)?has_content>
-${postalAddressTo.attnName}</#if></#if></#if><#if postalAddressTo?exists>
+                  <fo:block white-space-collapse="false"><#if toPartyNameResult.fullName?has_content>${toPartyNameResult.fullName}<fo:block /><#else/><#if postalAddressTo??><#if (postalAddressTo.toName)?has_content>${postalAddressTo.toName}</#if><#if (postalAddressTo.attnName)?has_content>
+${postalAddressTo.attnName}</#if></#if></#if><#if postalAddressTo??>
 ${postalAddressTo.address1}<#if (postalAddressTo.address2)?has_content>
 ${postalAddressTo.address2}</#if>
 ${postalAddressTo.city}<#if (postalAddressTo.stateProvinceGeoId)?has_content>, ${postalAddressTo.stateProvinceGeoId}</#if><#if (postalAddressTo.postalCode)?has_content>, ${postalAddressTo.postalCode}</#if></#if></fo:block>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/setup/paymentsetup.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/setup/paymentsetup.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/setup/paymentsetup.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/setup/paymentsetup.ftl Mon Aug 18 07:42:27 2014
@@ -56,26 +56,26 @@ under the License.
               </tr>
               <#if paymentSetups?has_content>
                 <#list paymentSetups as paymentSetting>
-                  <#if rowStyle?exists && rowStyle == "alternate-row">
+                  <#if rowStyle?? && rowStyle == "alternate-row">
                     <#assign rowStyle = "alternate-rowSelected">
                   <#else>
                     <#assign rowStyle = "alternate-row">
                   </#if>
                   <tr class="${rowStyle}">
-                    <td><div>${paymentSetting.siteName?if_exists}</div></td>
-                    <td><div>${paymentSetting.description?if_exists}</div></td>
-                    <td><div>${paymentSetting.paymentAuthService?if_exists}</div></td>
-                    <td><div>${paymentSetting.paymentReAuthService?if_exists}</div></td>
-                    <td><div>${paymentSetting.paymentCaptureService?if_exists}</div></td>
-                    <td><div>${paymentSetting.paymentRefundService?if_exists}</div></td>
-                    <td><div>${paymentSetting.paymentConfiguration?if_exists}</div></td>
+                    <td><div>${paymentSetting.siteName!}</div></td>
+                    <td><div>${paymentSetting.description!}</div></td>
+                    <td><div>${paymentSetting.paymentAuthService!}</div></td>
+                    <td><div>${paymentSetting.paymentReAuthService!}</div></td>
+                    <td><div>${paymentSetting.paymentCaptureService!}</div></td>
+                    <td><div>${paymentSetting.paymentRefundService!}</div></td>
+                    <td><div>${paymentSetting.paymentConfiguration!}</div></td>
                     <td nowrap="nowrap">
                       <div>&nbsp;
                         <#if security.hasEntityPermission("PAYPROC", "_UPDATE", session)>
-                        <a href="<@o...@ofbizUrl>" class="buttontext">Edit</a>&nbsp;
+                        <a href="<@o...@ofbizUrl>" class="buttontext">Edit</a>&nbsp;
                         </#if>
                         <#if security.hasEntityPermission("PAYPROC", "_DELETE", session)>
-                        <a href="<@o...@ofbizUrl>" class="buttontext">Remove</a>&nbsp;
+                        <a href="<@o...@ofbizUrl>" class="buttontext">Remove</a>&nbsp;
                         </#if>
                       </div>
                     </td>
@@ -168,27 +168,27 @@ under the License.
               <tr>
                 <td width="26%" align="right"><div>Processor Auth Service</div></td>
                 <td>&nbsp;</td>
-                <td width="74%"><input type="text" name="paymentAuthService" value="${payInfo.paymentAuthService?if_exists}" size="30" maxlength="60" /></td>
+                <td width="74%"><input type="text" name="paymentAuthService" value="${payInfo.paymentAuthService!}" size="30" maxlength="60" /></td>
               </tr>
               <tr>
                 <td width="26%" align="right"><div>Processor Re-Auth Service</div></td>
                 <td>&nbsp;</td>
-                <td width="74%"><input type="text" name="paymentReAuthService" value="${payInfo.paymentReAuthService?if_exists}" size="30" maxlength="60" /></td>
+                <td width="74%"><input type="text" name="paymentReAuthService" value="${payInfo.paymentReAuthService!}" size="30" maxlength="60" /></td>
               </tr>
               <tr>
                 <td width="26%" align="right"><div>Processor Capture Service</div></td>
                 <td>&nbsp;</td>
-                <td width="74%"><input type="text" name="paymentCaptureService" value="${payInfo.paymentCaptureService?if_exists}" size="30" maxlength="60" /></td>
+                <td width="74%"><input type="text" name="paymentCaptureService" value="${payInfo.paymentCaptureService!}" size="30" maxlength="60" /></td>
               </tr>
               <tr>
                 <td width="26%" align="right"><div>Processor Refund Service</div></td>
                 <td>&nbsp;</td>
-                <td width="74%"><input type="text" name="paymentRefundService" value="${payInfo.paymentRefundService?if_exists}" size="30" maxlength="60" /></td>
+                <td width="74%"><input type="text" name="paymentRefundService" value="${payInfo.paymentRefundService!}" size="30" maxlength="60" /></td>
               </tr>
               <tr>
                 <td width="26%" align="right"><div>Processor Properties URL</div></td>
                 <td>&nbsp;</td>
-                <td width="74%"><input type="text" name="paymentConfiguration" value="${payInfo.paymentConfiguration?if_exists}" size="30" maxlength="60" /></td>
+                <td width="74%"><input type="text" name="paymentConfiguration" value="${payInfo.paymentConfiguration!}" size="30" maxlength="60" /></td>
               </tr>
               <tr>
                 <td colspan='2'>&nbsp;</td>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/task/ordertasklist.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/task/ordertasklist.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/task/ordertasklist.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/order/webapp/ordermgr/task/ordertasklist.ftl Mon Aug 18 07:42:27 2014
@@ -69,7 +69,7 @@ under the License.
                           <#list poList as orderHeaderAndRole>
                             <#assign orh = Static["org.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeaderAndRole)>
                             <#assign statusItem = orderHeaderAndRole.getRelatedOne("StatusItem", true)>
-                            <#assign placingParty = orh.getPlacingParty()?if_exists>
+                            <#assign placingParty = orh.getPlacingParty()!>
                             <tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
                               <td><a href="<@o...@ofbizUrl>" class='buttontext'>${orderHeaderAndRole.orderId}</a></td>
                               <td>
@@ -78,13 +78,13 @@ under the License.
                                   <#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}
@@ -98,7 +98,7 @@ under the License.
                               <td><span style="white-space: nowrap;">${orderHeaderAndRole.getString("orderDate")}</span></td>
                               <td>${statusItem.get("description",locale)?default(statusItem.statusId?default("N/A"))}</td>
                               <td align="right">${orh.getTotalOrderItemsQuantity()?string.number}</td>
-                              <td align="right"><@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orderHeaderAndRole.currencyUom?if_exists/></td>
+                              <td align="right"><@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orderHeaderAndRole.currencyUom!/></td>
                               <td width="1">&nbsp;&nbsp;</td>
                               <td align='right'>
                                 <a href="<@o...@ofbizUrl>" class='buttontext'>Schedule&nbsp;Delivery</a>
@@ -141,7 +141,7 @@ under the License.
                               </td>
                               <td>
                                 <div>
-                                  <#if task.customerPartyId?exists>
+                                  <#if task.customerPartyId??>
                                     <a href="${customerDetailLink}${task.customerPartyId}${StringUtil.wrapString(externalKeyParam)}" target="partymgr" class="buttontext">${Static["org.ofbiz.order.task.TaskWorker"].getCustomerName(task)}</a>
                                   <#else>
                                     N/A
@@ -156,7 +156,7 @@ under the License.
                               <td width="1" align="right"><@ofbizCurrency amount=task.grandTotal isoCode=orderCurrencyMap.get(task.orderId)/></td>
                               <td width="1">&nbsp;&nbsp;</td>
                               <td>
-                                <#if task.actualStartDate?exists>
+                                <#if task.actualStartDate??>
                                   <#assign actualStartDate = task.get("actualStartDate").toString()>
                                 <#else>
                                   <#assign actualStartDate = "N/A">
@@ -205,7 +205,7 @@ under the License.
                               <input type="hidden" name="orderId" value="${task.orderId}" />
                               <input type="hidden" name="workEffortId" value="${task.workEffortId}" />
                               <input type="hidden" name="taskStatus" value="${task.currentStatusId}" />
-                              <#if task.statusId?exists && task.statusId == "CAL_SENT">
+                              <#if task.statusId?? && task.statusId == "CAL_SENT">
                                 <input type="hidden" name="partyId" value="${userLogin.partyId}" />
                                 <input type="hidden" name="roleTypeId" value="${task.roleTypeId}" />
                                 <input type="hidden" name="fromDate" value="${task.get("fromDate").toString()}" />
@@ -228,7 +228,7 @@ under the License.
                                   </a>
                                 </td>
                                 <td>
-                                  <#if task.customerPartyId?exists>
+                                  <#if task.customerPartyId??>
                                   <a href="${customerDetailLink}${task.customerPartyId}${StringUtil.wrapString(externalKeyParam)}" target="partymgr" class="buttontext">${Static["org.ofbiz.order.task.TaskWorker"].getCustomerName(task)}</a>
                                   <#else>
                                   &nbsp;
@@ -242,7 +242,7 @@ under the License.
                                 <td width="1" align="right"><@ofbizCurrency amount=task.grandTotal isoCode=orderCurrencyMap.get(task.orderId)/></td>
                                 <td width="1">&nbsp;&nbsp;</td>
                                 <td>
-                                  <#if task.actualStartDate?exists>
+                                  <#if task.actualStartDate??>
                                     <#assign actualStartDate = task.get("actualStartDate").toString()>
                                   <#else>
                                     <#assign actualStartDate = "N/A">
@@ -263,7 +263,7 @@ under the License.
                                     ${Static["org.ofbiz.order.task.TaskWorker"].getPrettyStatus(task)}
                                   </a>
                                 </td>
-                                <#if task.statusId?exists && task.statusId == "CAL_SENT">
+                                <#if task.statusId?? && task.statusId == "CAL_SENT">
                                   <td align="right"><input type="checkbox" name="delegate" value="true" checked="checked" /></td>
                                 <#else>
                                   <td align="right"><input type="checkbox" name="delegate" value="true" /></td>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/script/org/ofbiz/party/party/PartyServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/script/org/ofbiz/party/party/PartyServices.xml?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/script/org/ofbiz/party/party/PartyServices.xml (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/script/org/ofbiz/party/party/PartyServices.xml Mon Aug 18 07:42:27 2014
@@ -330,7 +330,11 @@ under the License.
             </if-not-empty>
         </if-empty>
        <if-not-empty field="parameters._uploadedFile_fileName">
-           <call-class-method class-name="org.ofbiz.content.data.DataResourceWorker" method-name="getDataResourceContentUploadPath" ret-field="uploadPath"/>
+           <set field="absolute" value="true" type="Boolean"/>
+           <call-class-method method-name="getDataResourceContentUploadPath" class-name="org.ofbiz.content.data.DataResourceWorker" ret-field="uploadPath">
+               <field field="delegator" type="org.ofbiz.entity.Delegator"/>
+               <field field="absolute" type="boolean"/>
+           </call-class-method>
            <log level="always" message="[createPartyContent] - Found Subdir : ${uploadPath}"/>
            <!-- locate the file extension to use based on mime-type -->
            <set from-field="parameters._uploadedFile_contentType" field="extenLookup.mimeTypeId"/>
@@ -420,7 +424,11 @@ under the License.
                <set from-field="content.dataResourceId" field="lookup.dataResourceId"/>
                <find-by-primary-key use-cache="true" entity-name="DataResource" value-field="dataResourceMap" map="lookup"/>
             <else>
-               <call-class-method class-name="org.ofbiz.content.data.DataResourceWorker" method-name="getDataResourceContentUploadPath" ret-field="uploadPath"/>
+               <set field="absolute" value="true" type="Boolean"/>
+               <call-class-method method-name="getDataResourceContentUploadPath" class-name="org.ofbiz.content.data.DataResourceWorker" ret-field="uploadPath">
+                   <field field="delegator" type="org.ofbiz.entity.Delegator"/>
+                   <field field="absolute" type="boolean"/>
+               </call-class-method>
                <log level="always" message="[createPartyContent] - Found Subdir : ${uploadPath}"/>
                <!-- locate the file extension to use based on mime-type -->
                <set from-field="parameters._uploadedFile_contentType" field="extenLookup.mimeTypeId"/>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/src/org/ofbiz/party/party/PartyServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/src/org/ofbiz/party/party/PartyServices.java?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/src/org/ofbiz/party/party/PartyServices.java Mon Aug 18 07:42:27 2014
@@ -34,7 +34,6 @@ import javolution.util.FastList;
 import javolution.util.FastMap;
 
 import org.apache.commons.csv.CSVFormat;
-import org.apache.commons.csv.CSVFormat.CSVFormatBuilder;
 import org.apache.commons.csv.CSVRecord;
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.base.util.UtilDateTime;
@@ -1864,8 +1863,7 @@ public class PartyServices {
         String encoding = System.getProperty("file.encoding");
         String csvString = Charset.forName(encoding).decode(fileBytes).toString();
         final BufferedReader csvReader = new BufferedReader(new StringReader(csvString));
-        final CSVFormatBuilder builder = CSVFormat.newBuilder(',').withQuoteChar('"').withHeader();
-        CSVFormat fmt = builder.build();
+        CSVFormat fmt = CSVFormat.DEFAULT.withHeader();
         List<String> errMsgs = FastList.newInstance();
         List<String> newErrMsgs = FastList.newInstance();
         String lastPartyId = null;        // last partyId read from the csv file

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/AccountActivatedNotification.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/AccountActivatedNotification.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/AccountActivatedNotification.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/AccountActivatedNotification.ftl Mon Aug 18 07:42:27 2014
@@ -19,12 +19,12 @@ under the License.
 <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-        <title>${title?if_exists}</title>
-        <link rel="stylesheet" href="${baseUrl?if_exists}/images/maincss.css" type="text/css"/>
+        <title>${title!}</title>
+        <link rel="stylesheet" href="${baseUrl!}/images/maincss.css" type="text/css"/>
     </head>
     <body>
-        <h1>${title?if_exists}</h1>
-        <p>Hello ${person.firstName?if_exists} ${person.lastName?if_exists},</p>
+        <h1>${title!}</h1>
+        <p>Hello ${person.firstName!} ${person.lastName!},</p>
         <p>Your account has been activated.</p>
     </body>
 </html>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/ChangePersonalInfoNotification.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/ChangePersonalInfoNotification.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/ChangePersonalInfoNotification.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/ChangePersonalInfoNotification.ftl Mon Aug 18 07:42:27 2014
@@ -19,12 +19,12 @@ under the License.
 <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-        <title>${title?if_exists}</title>
+        <title>${title!}</title>
         <link rel="stylesheet" href="${baseUrl}/images/maincss.css" type="text/css"/>
     </head>
     <body>
-        <h1>${title?if_exists}</h1>
-        <p>Hello ${(parameters.partyAndPerson.salutation)?if_exists} ${(parameters.partyAndPerson.personalTitle)?if_exists} ${(parameters.partyAndPerson.firstName)?if_exists} ${(parameters.partyAndPerson.middleName)?if_exists} ${(parameters.partyAndPerson.lastName)?if_exists} ${(parameters.partyAndPerson.suffix)?if_exists},</p>
+        <h1>${title!}</h1>
+        <p>Hello ${(parameters.partyAndPerson.salutation)!} ${(parameters.partyAndPerson.personalTitle)!} ${(parameters.partyAndPerson.firstName)!} ${(parameters.partyAndPerson.middleName)!} ${(parameters.partyAndPerson.lastName)!} ${(parameters.partyAndPerson.suffix)!},</p>
         <p>Your personal information has been updated successfully.</p>
     </body>
 </html>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/CreatePartyNotification.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/CreatePartyNotification.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/CreatePartyNotification.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/CreatePartyNotification.ftl Mon Aug 18 07:42:27 2014
@@ -19,12 +19,12 @@ under the License.
 <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-        <title>${title?if_exists}</title>
-        <link rel="stylesheet" href="${baseUrl?if_exists}/images/maincss.css" type="text/css"/>
+        <title>${title!}</title>
+        <link rel="stylesheet" href="${baseUrl!}/images/maincss.css" type="text/css"/>
     </head>
     <body>
-        <h1>${title?if_exists}</h1>
-        <p>Hello ${person.firstName?if_exists} ${person.lastName?if_exists},</p>
+        <h1>${title!}</h1>
+        <p>Hello ${person.firstName!} ${person.lastName!},</p>
         <p>Your account has been created successfully.</p>
     </body>
 </html>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/VerifyEmailAddressNotification.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/VerifyEmailAddressNotification.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/VerifyEmailAddressNotification.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/templates/email/VerifyEmailAddressNotification.ftl Mon Aug 18 07:42:27 2014
@@ -19,11 +19,11 @@ under the License.
 <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-        <title>${title?if_exists}</title>
+        <title>${title!}</title>
         <link rel="stylesheet" href="${baseUrl}/images/maincss.css" type="text/css"/>
     </head>
     <body>
-        <h1>${title?if_exists}</h1>
+        <h1>${title!}</h1>
         <p>Thank you for registering. Please click the link below to complete your registration.</p>
         <br/><br/>
         <a href="${baseUrl}/cmssite/cms/verifyEmailAddress?verifyHash=${parameters.verifyHash}">www.cmssite.com/cms/registration.html</a>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/addressMatchMap.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/addressMatchMap.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/addressMatchMap.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/addressMatchMap.ftl Mon Aug 18 07:42:27 2014
@@ -84,7 +84,7 @@ under the License.
               <td>${map.mapKey}</td>
               <td>=></td>
               <td>${map.mapValue}</td>
-              <td>${map.sequenceNum?if_exists}</td>
+              <td>${map.sequenceNum!}</td>
               <td class="button-col"><a href="<@o...@ofbizUrl>">${uiLabelMap.CommonDelete}</a></td>
             </tr>
             <#-- toggle the row color -->

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress.fo.ftl Mon Aug 18 07:42:27 2014
@@ -16,9 +16,9 @@ KIND, either express or implied.  See th
 specific language governing permissions and limitations
 under the License.
 -->
-  <fo:block>${postalAddress.address1?if_exists}</fo:block>
-  <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2?if_exists}</fo:block></#if>
-  <fo:block>${postalAddress.city?if_exists}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId}</#if> ${postalAddress.postalCode?if_exists}</fo:block>
+  <fo:block>${postalAddress.address1!}</fo:block>
+  <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2!}</fo:block></#if>
+  <fo:block>${postalAddress.city!}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId}</#if> ${postalAddress.postalCode!}</fo:block>
   <#if postalAddress.countryGeoId?has_content>
     <fo:block>
       <#assign country = postalAddress.getRelatedOne("CountryGeo", true)>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress.ftl Mon Aug 18 07:42:27 2014
@@ -19,21 +19,21 @@ under the License.
   <div>
     <#if postalAddress.toName?has_content><b>${uiLabelMap.PartyAddrToName}:</b> ${postalAddress.toName}<br /></#if>
     <#if postalAddress.attnName?has_content><b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}<br /></#if>
-    ${postalAddress.address1?if_exists}<br />
+    ${postalAddress.address1!}<br />
     <#if postalAddress.address2?has_content>${postalAddress.address2}<br /></#if>
-    ${postalAddress.city?if_exists},
+    ${postalAddress.city!},
     <#if postalAddress.stateProvinceGeoId?has_content>
       <#assign stateProvince = postalAddress.getRelatedOne("StateProvinceGeo", true)>
       ${stateProvince.abbreviation?default(stateProvince.geoId)}
     </#if>
-    ${postalAddress.postalCode?if_exists}
+    ${postalAddress.postalCode!}
     <#if postalAddress.countryGeoId?has_content><br />
       <#assign country = postalAddress.getRelatedOne("CountryGeo", true)>
       ${country.get("geoName", locale)?default(country.geoId)}
     </#if>
     </div>
     <#if !postalAddress.countryGeoId?has_content>
-    <#assign addr1 = postalAddress.address1?if_exists>
+    <#assign addr1 = postalAddress.address1!>
     <#if addr1?has_content && (addr1.indexOf(" ") > 0)>
       <#assign addressNum = addr1.substring(0, addr1.indexOf(" "))>
       <#assign addressOther = addr1.substring(addr1.indexOf(" ")+1)>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_DEU.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_DEU.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_DEU.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_DEU.fo.ftl Mon Aug 18 07:42:27 2014
@@ -16,9 +16,9 @@ KIND, either express or implied.  See th
 specific language governing permissions and limitations
 under the License.
 -->
-  <fo:block>${postalAddress.address1?if_exists}</fo:block>
-  <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2?if_exists}</fo:block></#if>
-  <fo:block>${postalAddress.postalCode?if_exists} ${postalAddress.city?if_exists}</fo:block>
+  <fo:block>${postalAddress.address1!}</fo:block>
+  <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2!}</fo:block></#if>
+  <fo:block>${postalAddress.postalCode!} ${postalAddress.city!}</fo:block>
   <#if postalAddress.countryGeoId?has_content>
     <fo:block>
       <#assign country = postalAddress.getRelatedOne("CountryGeo", true)>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_DEU.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_DEU.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_DEU.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_DEU.ftl Mon Aug 18 07:42:27 2014
@@ -19,9 +19,9 @@ under the License.
   <div>
     <#if postalAddress.toName?has_content><b>${uiLabelMap.PartyAddrToName}:</b> ${postalAddress.toName}<br /></#if>
     <#if postalAddress.attnName?has_content><b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}<br /></#if>
-    ${postalAddress.address1?if_exists}<br />
+    ${postalAddress.address1!}<br />
     <#if postalAddress.address2?has_content>${postalAddress.address2}<br /></#if>
-    ${postalAddress.postalCode?if_exists} ${postalAddress.city?if_exists}
+    ${postalAddress.postalCode!} ${postalAddress.city!}
     <#if postalAddress.countryGeoId?has_content><br />
       <#assign country = postalAddress.getRelatedOne("CountryGeo", true)>
       ${country.get("geoName", locale)?default(country.geoId)}

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_USA.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_USA.fo.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_USA.fo.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_USA.fo.ftl Mon Aug 18 07:42:27 2014
@@ -16,9 +16,9 @@ KIND, either express or implied.  See th
 specific language governing permissions and limitations
 under the License.
 -->
-  <fo:block>${postalAddress.address1?if_exists}</fo:block>
-  <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2?if_exists}</fo:block></#if>
-  <fo:block>${postalAddress.city?if_exists}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId}</#if> ${postalAddress.postalCode?if_exists}</fo:block>
+  <fo:block>${postalAddress.address1!}</fo:block>
+  <#if postalAddress.address2?has_content><fo:block>${postalAddress.address2!}</fo:block></#if>
+  <fo:block>${postalAddress.city!}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId}</#if> ${postalAddress.postalCode!}</fo:block>
   <#if postalAddress.countryGeoId?has_content>
     <fo:block>
       <#assign country = postalAddress.getRelatedOne("CountryGeo", true)>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_USA.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_USA.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_USA.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/contactmechtemplates/PostalAddress_USA.ftl Mon Aug 18 07:42:27 2014
@@ -19,21 +19,21 @@ under the License.
   <div>
     <#if postalAddress.toName?has_content><b>${uiLabelMap.PartyAddrToName}:</b> ${postalAddress.toName}<br /></#if>
     <#if postalAddress.attnName?has_content><b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}<br /></#if>
-    ${postalAddress.address1?if_exists}<br />
+    ${postalAddress.address1!}<br />
     <#if postalAddress.address2?has_content>${postalAddress.address2}<br /></#if>
-    ${postalAddress.city?if_exists},
+    ${postalAddress.city!},
     <#if postalAddress.stateProvinceGeoId?has_content>
       <#assign stateProvince = postalAddress.getRelatedOne("StateProvinceGeo", true)>
       ${stateProvince.abbreviation?default(stateProvince.geoId)}
     </#if>
-    ${postalAddress.postalCode?if_exists}
+    ${postalAddress.postalCode!}
     <#if postalAddress.countryGeoId?has_content><br />
       <#assign country = postalAddress.getRelatedOne("CountryGeo", true)>
       ${country.get("geoName", locale)?default(country.geoId)}
     </#if>
     </div>
     <#if !postalAddress.countryGeoId?has_content>
-    <#assign addr1 = postalAddress.address1?if_exists>
+    <#assign addr1 = postalAddress.address1!>
     <#if addr1?has_content && (addr1.indexOf(" ") > 0)>
       <#assign addressNum = addr1.substring(0, addr1.indexOf(" "))>
       <#assign addressOther = addr1.substring(addr1.indexOf(" ")+1)>

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/editGeoLocation.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/editGeoLocation.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/editGeoLocation.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/editGeoLocation.ftl Mon Aug 18 07:42:27 2014
@@ -125,8 +125,8 @@ under the License.
         </form>
         <br/><br/>
         <form id="updateMapForm" method="post" action="<@o...@ofbizUrl>">
-            <input type="hidden" name="partyId" value="${partyId?if_exists}"/>
-            <input type="hidden" name="geoPointId" value="${geoPointId?if_exists}"/>
+            <input type="hidden" name="partyId" value="${partyId!}"/>
+            <input type="hidden" name="geoPointId" value="${geoPointId!}"/>
             <input type="hidden" name="lat" id="lat"/>
             <input type="hidden" name="lng" id="lng"/>
             <input type="submit" id="createMapButton" class="smallSubmit" value="${uiLabelMap.CommonSubmit}">

Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/editShoppingList.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/editShoppingList.ftl?rev=1618554&r1=1618553&r2=1618554&view=diff
==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/editShoppingList.ftl (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/party/webapp/partymgr/party/editShoppingList.ftl Mon Aug 18 07:42:27 2014
@@ -24,7 +24,7 @@ under the License.
       <li class="h3">${uiLabelMap.PartyShoppingLists}</li>
       <li>
         <form id="createEmptyShoppingList" action="<@o...@ofbizUrl>" method="post">
-          <input type="hidden" name="partyId" value="${partyId?if_exists}" />
+          <input type="hidden" name="partyId" value="${partyId!}" />
           <a href="javascript:document.getElementById('createEmptyShoppingList').submit();" class="buttontext">${uiLabelMap.CommonCreateNew}</a>
         </form>
       </li>
@@ -43,7 +43,7 @@ under the License.
             <option value="${list.shoppingListId}">${list.listName}</option>
           </#list>
         </select>
-        <input type="hidden" name="partyId" value="${partyId?if_exists}" />
+        <input type="hidden" name="partyId" value="${partyId!}" />
         <a href="javascript:document.selectShoppingList.submit();" class="smallSubmit">${uiLabelMap.CommonEdit}</a>
       </form>
     <#else>
@@ -61,19 +61,19 @@ under the License.
       <li>
       <form method="post" name="createQuoteFromShoppingListForm" action="/ordermgr/control/createQuoteFromShoppingList">
         <input type= "hidden" name= "applyStorePromotions" value= "N"/>
-        <input type= "hidden" name= "shoppingListId" value= "${shoppingList.shoppingListId?if_exists}"/>
+        <input type= "hidden" name= "shoppingListId" value= "${shoppingList.shoppingListId!}"/>
       </form>
       <a href="javascript:document.createQuoteFromShoppingListForm.submit()">${uiLabelMap.PartyCreateNewQuote}</a>
       </li>
-      <li><a href="/ordermgr/control/createCustRequestFromShoppingList?shoppingListId=${shoppingList.shoppingListId?if_exists}">${uiLabelMap.PartyCreateNewCustRequest}</a></li>
-      <li><a href="/ordermgr/control/loadCartFromShoppingList?shoppingListId=${shoppingList.shoppingListId?if_exists}">${uiLabelMap.OrderNewOrder}</a></li>
+      <li><a href="/ordermgr/control/createCustRequestFromShoppingList?shoppingListId=${shoppingList.shoppingListId!}">${uiLabelMap.PartyCreateNewCustRequest}</a></li>
+      <li><a href="/ordermgr/control/loadCartFromShoppingList?shoppingListId=${shoppingList.shoppingListId!}">${uiLabelMap.OrderNewOrder}</a></li>
     </ul>
     <br class="clear"/>
   </div>
   <div class="screenlet-body">
     <form name="updateList" method="post" action="<@o...@ofbizUrl>">
       <input type="hidden" name="shoppingListId" value="${shoppingList.shoppingListId}" />
-      <input type="hidden" name="partyId" value="${shoppingList.partyId?if_exists}" />
+      <input type="hidden" name="partyId" value="${shoppingList.partyId!}" />
       <table class="basic-table" cellspacing='0'>
         <tr>
           <td class="label">${uiLabelMap.PartyListName}</td>
@@ -81,13 +81,13 @@ under the License.
         </tr>
         <tr>
           <td class="label">${uiLabelMap.CommonDescription}</td>
-          <td><input type="text" size="70" name="description" value="${shoppingList.description?if_exists}" <#if shoppingList.listName?default("") == "auto-save">disabled="disabled"</#if> />
+          <td><input type="text" size="70" name="description" value="${shoppingList.description!}" <#if shoppingList.listName?default("") == "auto-save">disabled="disabled"</#if> />
         </tr>
         <tr>
           <td class="label">${uiLabelMap.PartyListType}</td>
           <td>
             <select name="shoppingListTypeId" <#if shoppingList.listName?default("") == "auto-save">disabled</#if>>
-              <#if shoppingListType?exists>
+              <#if shoppingListType??>
                 <option value="${shoppingListType.shoppingListTypeId}">${shoppingListType.get("description",locale)?default(shoppingListType.shoppingListTypeId)}</option>
                 <option value="${shoppingListType.shoppingListTypeId}">--</option>
               </#if>
@@ -112,7 +112,7 @@ under the License.
           <td class="label">${uiLabelMap.PartyParentList}</td>
           <td>
             <select name="parentShoppingListId" <#if shoppingList.listName?default("") == "auto-save">disabled</#if>>
-              <#if parentShoppingList?exists>
+              <#if parentShoppingList??>
                 <option value="${parentShoppingList.shoppingListId}">${parentShoppingList.listName?default(parentShoppingList.shoppingListId)}</option>
               </#if>
               <option value="">${uiLabelMap.PartyNoParent}</option>
@@ -120,7 +120,7 @@ under the License.
                 <option value="${newParShoppingList.shoppingListId}">${newParShoppingList.listName?default(newParShoppingList.shoppingListId)}</option>
               </#list>
             </select>
-            <#if parentShoppingList?exists>
+            <#if parentShoppingList??>
               <a href="<@o...@ofbizUrl>" class="smallSubmit">${uiLabelMap.CommonGotoParent} (${parentShoppingList.listName?default(parentShoppingList.shoppingListId)})</a>
             </#if>
           </td>
@@ -178,7 +178,7 @@ under the License.
     <#if shoppingListItemDatas?has_content>
         <#-- Pagination -->
         <#include "component://common/webcommon/includes/htmlTemplate.ftl"/>
-        <#assign commonUrl = "editShoppingList?partyId=" + partyId + "&shoppingListId="+shoppingListId?if_exists+"&"/>
+        <#assign commonUrl = "editShoppingList?partyId=" + partyId + "&shoppingListId="+shoppingListId!+"&"/>
         <#assign viewIndexFirst = 0/>
         <#assign viewIndexPrevious = viewIndex - 1/>
         <#assign viewIndexNext = viewIndex + 1/>
@@ -202,11 +202,11 @@ under the License.
           <#assign productContentWrapper = Static["org.ofbiz.product.product.ProductContentWrapper"].makeProductContentWrapper(product, request)>
           <#assign unitPrice = shoppingListItemData.unitPrice>
           <#assign totalPrice = shoppingListItemData.totalPrice>
-          <#assign productVariantAssocs = shoppingListItemData.productVariantAssocs?if_exists>
-          <#assign isVirtual = product.isVirtual?exists && product.isVirtual.equals("Y")>
+          <#assign productVariantAssocs = shoppingListItemData.productVariantAssocs!>
+          <#assign isVirtual = product.isVirtual?? && product.isVirtual.equals("Y")>
           <tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
             <td><a href="/catalog/control/EditProduct?productId=${shoppingListItem.productId}&amp;externalLoginKey=${requestAttributes.externalLoginKey}">${shoppingListItem.productId} -
-              ${productContentWrapper.get("PRODUCT_NAME")?default("No Name")}</a> : ${productContentWrapper.get("DESCRIPTION")?if_exists}
+              ${productContentWrapper.get("PRODUCT_NAME")?default("No Name")}</a> : ${productContentWrapper.get("DESCRIPTION")!}
             </td>
             <form method="post" action="<@o...@ofbizUrl>" name='removeform_${shoppingListItem.shoppingListItemSeqId}'>
               <input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId}" />
@@ -221,7 +221,7 @@ under the License.
               <td>
                 <input size="6" type="text" name="quantityPurchased"
                   <#if shoppingListItem.quantityPurchased?has_content>
-                    value="${shoppingListItem.quantityPurchased?if_exists?string.number}"
+                    value="${shoppingListItem.quantityPurchased!?string.number}"
                   </#if> />
               </td>
             </form>
@@ -253,7 +253,7 @@ under the License.
   <div class="screenlet-body">
     <form name="addToShoppingList" method="post" action="<@o...@ofbizUrl>">
       <input type="hidden" name="shoppingListId" value="${shoppingList.shoppingListId}" />
-      <input type="hidden" name="partyId" value="${shoppingList.partyId?if_exists}" />
+      <input type="hidden" name="partyId" value="${shoppingList.partyId!}" />
       <input type="text" name="productId" value="" />
       <input type="text" size="5" name="quantity" value="${requestParameters.quantity?default("1")}" />
       <input type="submit" value="${uiLabelMap.PartyAddToShoppingList}" />