svn commit: r629261 - in /ofbiz/trunk/applications: ecommerce/webapp/ecommerce/order/requestreturn.ftl order/webapp/ordermgr/WEB-INF/actions/return/returnItems.bsh

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

svn commit: r629261 - in /ofbiz/trunk/applications: ecommerce/webapp/ecommerce/order/requestreturn.ftl order/webapp/ordermgr/WEB-INF/actions/return/returnItems.bsh

bibryam
Author: bibryam
Date: Tue Feb 19 14:48:06 2008
New Revision: 629261

URL: http://svn.apache.org/viewvc?rev=629261&view=rev
Log:
Fixed broken ecommerce return screens.

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/requestreturn.ftl
    ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnItems.bsh

Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/requestreturn.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/requestreturn.ftl?rev=629261&r1=629260&r2=629261&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/requestreturn.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/order/requestreturn.ftl Tue Feb 19 14:48:06 2008
@@ -57,12 +57,14 @@
             <#if returnableItems?has_content>
               <#assign rowCount = 0>
               <#list returnableItems.keySet() as orderItem>
+              <#if !orderItem.orderAdjustmentId?has_content>    <#-- filter orderAdjustments -->
                 <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="returnItemType_o_${rowCount}" value="ITEM"/> -->
                 <#assign returnItemType = returnItemTypeMap.get(returnableItems.get(orderItem).get("itemTypeKey"))/>
                 <input type="hidden" name="returnItemTypeId_o_${rowCount}" value="${returnItemType}"/>
+                <input type="hidden" name="returnPrice_o_${rowCount}" value="${returnableItems.get(orderItem).get("returnablePrice")}"/>                
 
                 <#-- need some order item information -->
                 <#assign orderHeader = orderItem.getRelatedOne("OrderHeader")>
@@ -106,6 +108,7 @@
                 </tr>
                 <tr><td colspan="6"><hr class="sepbar"/></td></tr>
                 <#assign rowCount = rowCount + 1>
+              </#if>
               </#list>
               <input type="hidden" name="_rowCount" value="${rowCount}"/>
               <tr>

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnItems.bsh
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnItems.bsh?rev=629261&r1=629260&r2=629261&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnItems.bsh (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnItems.bsh Tue Feb 19 14:48:06 2008
@@ -28,6 +28,7 @@
 if (returnId == null) {
     returnId = request.getAttribute("returnId");
 }
+if (returnId == null) return;
 context.put("returnId", returnId);
 
 orderId = request.getParameter("orderId");