| 20110 |
kshitij.so |
1 |
<script type="text/javascript">
|
|
|
2 |
$(function()
|
|
|
3 |
{
|
|
|
4 |
$("#promised_pickup_timestamp").datepicker();
|
|
|
5 |
|
|
|
6 |
});
|
|
|
7 |
</script>
|
|
|
8 |
<script type="text/javascript">
|
|
|
9 |
$(function(){
|
|
|
10 |
$("#pickedUpAt").datepicker();
|
|
|
11 |
|
|
|
12 |
});
|
|
|
13 |
</script>
|
|
|
14 |
|
|
|
15 |
<div id="top-infopane">
|
|
|
16 |
<h2>Pickup Details</h4>
|
|
|
17 |
<table id="user-orders-pickup" class="display">
|
|
|
18 |
<thead>
|
|
|
19 |
<tr>
|
|
|
20 |
<th>Return Transaction Id</th>
|
|
|
21 |
<th>Return Order Id</th>
|
|
|
22 |
<th>Order Id</th>
|
|
|
23 |
<th>Item</th>
|
|
|
24 |
<th>Return Qty</th>
|
|
|
25 |
<th>Action</th>
|
|
|
26 |
<th>Status</th>
|
|
|
27 |
</tr>
|
|
|
28 |
</thead>
|
|
|
29 |
<tbody>
|
|
|
30 |
#foreach($returnOrder in $action.getReturnOrderInfoList())
|
|
|
31 |
<tr>
|
|
|
32 |
<td>$returnOrder.getReturnTransactionId()</td>
|
|
|
33 |
<td>$returnOrder.getId()</td>
|
|
|
34 |
<td><a href="/crm/?email=&orderId=$returnOrder.getOrderId()" target="_blank">$returnOrder.getOrderId()</a></td>
|
|
|
35 |
<td class="truncated-text" truncatedTextWidth="400">$action.getProductName($returnOrder.getLineitem())</td>
|
|
|
36 |
<td>$returnOrder.getReturnQuantity()</td>
|
|
|
37 |
<td>$returnOrder.getReturnAction()</td>
|
|
|
38 |
<td>$returnOrder.getReturnStatus()</td>
|
|
|
39 |
</tr>
|
|
|
40 |
#end
|
|
|
41 |
</tbody>
|
|
|
42 |
</table>
|
|
|
43 |
</div>
|
|
|
44 |
#set($pickupRequest = $action.getReturnPickupRequest())
|
|
|
45 |
<div id="bottom-infopane">
|
|
|
46 |
<span style="font-size:14px;">Pickup Request Id: $action.getPickupRequestId()</span><br><br>
|
|
|
47 |
<label><span>Current Pickup Status : $pickupRequest.getPickupStatus()</span></label>
|
|
|
48 |
<br><br>
|
|
|
49 |
#if($action.getForwardStatusForPickup($pickupRequest.getPickupStatus()))
|
|
|
50 |
<label><span>New Pickup Status</span></label>
|
|
|
51 |
<select name="pickupStatus">
|
|
|
52 |
<option value="$action.getForwardStatusForPickup($pickupRequest.getPickupStatus()).getValue()">$action.getForwardStatusForPickup($pickupRequest.getPickupStatus())</option>
|
|
|
53 |
</select>
|
|
|
54 |
<br><br>
|
|
|
55 |
#end
|
|
|
56 |
#if($pickupRequest.getPickupStatus() == 'PICKUP_REQUESTED')
|
|
|
57 |
<label><span>Logistic Provider</span></label>
|
|
|
58 |
<select name="logisticProviderId">
|
|
|
59 |
#set($map=$action.getAvailableLogisticsPartner())
|
|
|
60 |
#foreach ($mapEntry in $map.entrySet())
|
|
|
61 |
#if ($mapEntry.key == $pickupRequest.getLogisticsProviderId())
|
|
|
62 |
<option selected="selected" value="$mapEntry.key">$mapEntry.value</option>
|
|
|
63 |
#else
|
|
|
64 |
<option value="$mapEntry.key">$mapEntry.value</option>
|
|
|
65 |
#end
|
|
|
66 |
#end
|
|
|
67 |
</select>
|
|
|
68 |
<br><br>
|
|
|
69 |
#if ($pickupRequest.getPickupRequestNo())
|
|
|
70 |
<label><span>Pickup Request No :</span></label><input type="text" value="$pickupRequest.getPickupRequestNo()" name="pickupRequestNo" id="pickupRequestNo"/>
|
|
|
71 |
#else
|
|
|
72 |
<label><span>Pickup Request No :</span></label><input type="text" value="" name="pickupRequestNo" id="pickupRequestNo"/>
|
|
|
73 |
#end
|
|
|
74 |
<br><br>
|
|
|
75 |
#end
|
|
|
76 |
#if($pickupRequest.getPickupStatus() == 'PICKUP_CONFIRMED')
|
|
|
77 |
<label><span>Logistic Provider : $action.getLogisticProviderName($pickupRequest.getLogisticsProviderId())</span></label>
|
|
|
78 |
<br><br>
|
|
|
79 |
<label><span>Pickup Request No : $pickupRequest.getPickupRequestNo()</span></label>
|
|
|
80 |
<br><br>
|
|
|
81 |
<label><span>Promised Pickup Time :</span></label><input type="text" value="" name="promised_pickup_timestamp" id="promised_pickup_timestamp"/>
|
|
|
82 |
<br><br>
|
|
|
83 |
#end
|
|
|
84 |
#if($pickupRequest.getPickupStatus() == 'PICKUP_SCHEDULED')
|
|
|
85 |
<label><span>Logistic Provider : $action.getLogisticProviderName($pickupRequest.getLogisticsProviderId())</span></label>
|
|
|
86 |
<br><br>
|
|
|
87 |
<label><span>Pickup Request No : $pickupRequest.getPickupRequestNo()</span></label>
|
|
|
88 |
<br><br>
|
|
|
89 |
<label><span>Promised Pickup Timestamp : $action.convertDate($pickupRequest.getPromised_pickup_timestamp())</span></label>
|
|
|
90 |
<br><br>
|
|
|
91 |
<label><span>Pickedup At :</span></label><input type="text" value="" name="pickedUpAt" id="pickedUpAt"/>
|
|
|
92 |
<br><br>
|
|
|
93 |
#end
|
|
|
94 |
#if( $pickupRequest.getPickupStatus() == 'PICKUP_IN_TRANSIT' || $pickupRequest.getPickupStatus() == 'PICKUP_RECEIVED' )
|
|
|
95 |
<label><span>Logistic Provider : $action.getLogisticProviderName($pickupRequest.getLogisticsProviderId())</span></label>
|
|
|
96 |
<br><br>
|
|
|
97 |
<label><span>Pickup Request No : $pickupRequest.getPickupRequestNo()</span></label>
|
|
|
98 |
<br><br>
|
|
|
99 |
<label><span>Promised Pickup Timestamp : $action.convertDate($pickupRequest.getPromised_pickup_timestamp())</span></label>
|
|
|
100 |
<br><br>
|
|
|
101 |
<label><span>Picked up At Timestamp : $action.convertDate($pickupRequest.getPickedUpAt())</span></label>
|
|
|
102 |
<br><br>
|
|
|
103 |
#end
|
|
|
104 |
#if( $pickupRequest.getPickupStatus() != 'PICKUP_RECEIVED')
|
|
|
105 |
<button type="submit" value="$pickupRequest.getId()" class="update-return-pickup" style="margin-right:10px">Update Pickup</button>
|
|
|
106 |
#end
|
|
|
107 |
</div>
|