From 87f742e5bf1133c8b5d4b491722e18fd6875fc19 Mon Sep 17 00:00:00 2001 From: Vikas Mayur Date: Sat, 25 Jul 2009 12:11:50 +0000 Subject: [PATCH] No functional change. Only formatting changes. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@797760 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/ordermgr/return/returnLinks.ftl | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/applications/order/webapp/ordermgr/return/returnLinks.ftl b/applications/order/webapp/ordermgr/return/returnLinks.ftl index a0cc6f17fb..9cb41f2c12 100644 --- a/applications/order/webapp/ordermgr/return/returnLinks.ftl +++ b/applications/order/webapp/ordermgr/return/returnLinks.ftl @@ -18,49 +18,49 @@ under the License. --> <#assign selected = tabButtonItem?default("void")> <#if returnHeader?exists> -
+ -
+
+
<#if selected != "OrderReturnHistory"> - PDF - <#if returnId?exists> - <#assign returnItems = delegator.findByAnd("ReturnItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("returnId", returnId, "returnTypeId", "RTN_REFUND"))/> - <#if returnItems?has_content> - <#assign orderId = (Static["org.ofbiz.entity.util.EntityUtil"].getFirst(returnItems)).getString("orderId")/> - <#assign partyId = "${(returnHeader.fromPartyId)?if_exists}"/> - ${uiLabelMap.OrderCreateExchangeOrder} ${uiLabelMap.CommonFor} ${orderId?if_exists} - - <#if "RETURN_ACCEPTED" == returnHeader.statusId> - <#assign returnItems = delegator.findByAnd("ReturnItem", {"returnId" : returnId})/> + PDF + <#if returnId?exists> + <#assign returnItems = delegator.findByAnd("ReturnItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("returnId", returnId, "returnTypeId", "RTN_REFUND"))/> <#if returnItems?has_content> <#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}))/> - <#assign shipGroup = delegator.findOne("OrderItemShipGroup", {"orderId" : orderId, "shipGroupSeqId" : shipGroupAssoc.shipGroupSeqId}, false)> - <#assign shipGroupShipment = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("Shipment", {"primaryOrderId" : shipGroup.orderId, "primaryShipGroupSeqId" : shipGroup.shipGroupSeqId}))/> - <#assign shipmentRoutSegment = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("ShipmentRouteSegment", {"shipmentId" : shipGroupShipment.shipmentId}))> - <#if "UPS" == shipmentRoutSegment.carrierPartyId> - ${uiLabelMap.ProductEmailReturnShippingLabelUPS} -
- - - -
+ <#assign partyId = "${(returnHeader.fromPartyId)?if_exists}"/> + ${uiLabelMap.OrderCreateExchangeOrder} ${uiLabelMap.CommonFor} ${orderId?if_exists} + + <#if "RETURN_ACCEPTED" == returnHeader.statusId> + <#assign returnItems = delegator.findByAnd("ReturnItem", {"returnId" : returnId})/> + <#if returnItems?has_content> + <#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}))/> + <#assign shipGroup = delegator.findOne("OrderItemShipGroup", {"orderId" : orderId, "shipGroupSeqId" : shipGroupAssoc.shipGroupSeqId}, false)> + <#assign shipGroupShipment = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("Shipment", {"primaryOrderId" : shipGroup.orderId, "primaryShipGroupSeqId" : shipGroup.shipGroupSeqId}))/> + <#assign shipmentRoutSegment = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("ShipmentRouteSegment", {"shipmentId" : shipGroupShipment.shipmentId}))> + <#if "UPS" == shipmentRoutSegment.carrierPartyId> + ${uiLabelMap.ProductEmailReturnShippingLabelUPS} +
+ + + +
+ - -
+
<#else>

${uiLabelMap.OrderCreateNewReturn}

<#if requestParameters.returnId?has_content>

${uiLabelMap.OrderNoReturnFoundWithId} : ${requestParameters.returnId}


- + \ No newline at end of file