| 2674 |
vikas |
1 |
#set($messages = $action.getActionErrors())
|
|
|
2 |
#if($messages && $messages.size() != 0)
|
|
|
3 |
#foreach($message in $messages)
|
|
|
4 |
$message <br/>
|
|
|
5 |
#end
|
|
|
6 |
#else
|
| 4142 |
mandeep.dh |
7 |
#set($order = $action.getOrder())
|
|
|
8 |
#if($action.canEditOrderAddress())
|
|
|
9 |
<a class="change-shipment-address">
|
|
|
10 |
Change shipment address
|
|
|
11 |
</a>
|
|
|
12 |
<div id="addresses">
|
|
|
13 |
<form class="change-address">
|
|
|
14 |
<table >
|
|
|
15 |
#foreach($address in $action.getAddresses())
|
|
|
16 |
<tr >
|
|
|
17 |
<td >
|
|
|
18 |
<input type="radio" id="address" name="addressId" value="$address.getId()"/>
|
|
|
19 |
</td>
|
|
|
20 |
<td >
|
|
|
21 |
#if($address.getName())
|
|
|
22 |
<b>$address.getName()</b><br />
|
|
|
23 |
#end
|
|
|
24 |
#if($address.getLine1())
|
|
|
25 |
<label>$address.getLine1() </label><br />
|
|
|
26 |
#end
|
|
|
27 |
#if($address.getLine2() != "")
|
|
|
28 |
<label>$address.getLine2()</label><br />
|
|
|
29 |
#end
|
|
|
30 |
#if($address.getCity())
|
|
|
31 |
<label>$address.getCity()</label><br />
|
|
|
32 |
#end
|
|
|
33 |
#if($address.getState())
|
|
|
34 |
<label>$address.getState()</label><br />
|
|
|
35 |
#end
|
|
|
36 |
#if($address.getPin())
|
|
|
37 |
<label>Pin: $address.getPin()</label>
|
|
|
38 |
#end
|
|
|
39 |
</p>
|
|
|
40 |
#if($address.getPhone())
|
|
|
41 |
<b>Phone: $address.getPhone() </b>
|
|
|
42 |
#end
|
|
|
43 |
</td>
|
|
|
44 |
</tr>
|
|
|
45 |
<tr>
|
|
|
46 |
<td >
|
|
|
47 |
<input type="submit" value="Change Address"/>
|
|
|
48 |
</td>
|
|
|
49 |
</tr>
|
|
|
50 |
#end
|
|
|
51 |
</table>
|
|
|
52 |
</form>
|
|
|
53 |
</div>
|
| 4689 |
anupam.sin |
54 |
#end
|
| 4142 |
mandeep.dh |
55 |
#set($ticketId = $action.getCodTicketId())
|
|
|
56 |
#if($ticketId)
|
|
|
57 |
<br />
|
|
|
58 |
<a href="/crm?email=&ticketId=$ticketId">
|
|
|
59 |
COD verification ticket
|
|
|
60 |
</a>
|
|
|
61 |
<br />
|
|
|
62 |
#end
|
|
|
63 |
<br />
|
| 4689 |
anupam.sin |
64 |
#if($action.canOrderBeCancelled())
|
|
|
65 |
<div id="cancel-div" class="hidden">
|
|
|
66 |
<form id="cancel-form">
|
|
|
67 |
<table class="display">
|
|
|
68 |
#foreach($item in $action.getCODCancelMatrix())
|
|
|
69 |
#if($velocityCount % 2 != 0)
|
|
|
70 |
<tr >
|
|
|
71 |
#end
|
|
|
72 |
<td>
|
|
|
73 |
#if($item.name().equals("INVALID_CONTACT_DETAILS"))
|
|
|
74 |
<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" checked />
|
|
|
75 |
#else
|
|
|
76 |
<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" />
|
|
|
77 |
#end
|
|
|
78 |
<label title="$item.getDescription()">$item.name()</label>
|
|
|
79 |
</td>
|
|
|
80 |
#if($velocityCount % 2 == 0)
|
|
|
81 |
</ tr>
|
|
|
82 |
#end
|
|
|
83 |
#end
|
|
|
84 |
<tr >
|
|
|
85 |
<td id ="cancelReasonBox" colspan="2">
|
|
|
86 |
<textarea name="body" rows="5" cols="80" id="cancel-body"></textarea>
|
|
|
87 |
</td>
|
|
|
88 |
</tr>
|
|
|
89 |
<tr >
|
|
|
90 |
<td colspan="2">
|
|
|
91 |
<input type="submit" value="Cancel Order"/>
|
|
|
92 |
</td>
|
|
|
93 |
</tr>
|
|
|
94 |
</table>
|
|
|
95 |
</form>
|
|
|
96 |
</div>
|
|
|
97 |
|
|
|
98 |
<div>
|
|
|
99 |
<select id = "cancellationInitiator" name="cancellationInitiator">
|
|
|
100 |
<option value="CUSTOMER">CUSTOMER REQUEST</option>
|
| 4751 |
anupam.sin |
101 |
#if($action.canViewOrderCancellation())
|
| 4689 |
anupam.sin |
102 |
<option value="INTERNAL">INTERNAL</option>
|
|
|
103 |
#end
|
|
|
104 |
</select>
|
|
|
105 |
<input type="button" class="display-cancel-order-popup" value="Cancel Order" id="orderCancellationButton" orderid="$order.getId()">
|
|
|
106 |
</div>
|
|
|
107 |
#end
|
| 4142 |
mandeep.dh |
108 |
<label class="heading">Order details</label><br />
|
| 2674 |
vikas |
109 |
<div id="orderTopLeft">
|
| 4241 |
anupam.sin |
110 |
<span>Status Description :
|
|
|
111 |
$action.getOrderStatusDescription($order)
|
|
|
112 |
</span><br/>
|
| 4142 |
mandeep.dh |
113 |
<span>Invoice No : #if($order.getInvoice_number()) $order.getInvoice_number() #end</span><br/>
|
|
|
114 |
<span>Airway Bill No : #if($order.getAirwaybill_no()) $order.getAirwaybill_no() #end</span><br/>
|
|
|
115 |
<span>Receiver : #if($order.getReceiver()) $order.getReceiver() #end</span><br/>
|
|
|
116 |
<span>Out Of Stock Time :
|
|
|
117 |
#if($order.getOutofstock_timestamp() != 0) $action.convertDate($order.getOutofstock_timestamp())
|
|
|
118 |
#end</span><br/>
|
| 2674 |
vikas |
119 |
</div>
|
| 2830 |
vikas |
120 |
<div id="orderTopMiddle">
|
| 4142 |
mandeep.dh |
121 |
<span>Accepted :
|
|
|
122 |
#if($order.getAccepted_timestamp() != 0) $action.convertDate($order.getAccepted_timestamp())
|
|
|
123 |
#end</span><br/>
|
|
|
124 |
<span>Billed By :#if($order.getBilled_by()) $order.getBilled_by() #end</span><br/>
|
|
|
125 |
<span>Billed :
|
|
|
126 |
#if($order.getBilling_timestamp() != 0) $action.convertDate($order.getBilling_timestamp())
|
|
|
127 |
#end</span><br/>
|
|
|
128 |
<span>Shipped :
|
|
|
129 |
#if($order.getShipping_timestamp() != 0) $action.convertDate($order.getShipping_timestamp())
|
|
|
130 |
#end</span><br/>
|
|
|
131 |
<span>Pickup :
|
|
|
132 |
#if($order.getPickup_timestamp() != 0) $action.convertDate($order.getPickup_timestamp())
|
|
|
133 |
#end</span><br/>
|
| 4241 |
anupam.sin |
134 |
#if($order.isSetRefund_timestamp())
|
|
|
135 |
<span>Refund Time :
|
|
|
136 |
$action.convertDate($order.getRefund_timestamp())
|
|
|
137 |
#end</span><br/>
|
| 2674 |
vikas |
138 |
</div>
|
|
|
139 |
<div id="orderTopRight">
|
| 4241 |
anupam.sin |
140 |
<span>Verification timestamp :
|
|
|
141 |
#if($order.getVerification_timestamp() != 0) $action.convertDate($order.getVerification_timestamp())
|
|
|
142 |
#end</span><br/>
|
| 4142 |
mandeep.dh |
143 |
<span class="bold">Promised Shipping : </span>
|
|
|
144 |
#if($order.getPromised_shipping_time() != 0) $action.convertDate($order.getPromised_shipping_time())
|
|
|
145 |
#end<br/>
|
|
|
146 |
<span class="bold">Expected Shipping : </span>
|
|
|
147 |
#if($order.getExpected_shipping_time() != 0) $action.convertDate($order.getExpected_shipping_time())
|
|
|
148 |
#end<br/>
|
|
|
149 |
<span class="bold">Promised Delivery : </span>
|
|
|
150 |
#if($order.getPromised_delivery_time() != 0) $action.convertDate($order.getPromised_delivery_time())
|
|
|
151 |
#end<br/>
|
|
|
152 |
<span class="bold">Expected Delivery : </span>
|
|
|
153 |
#if($order.getExpected_delivery_time() != 0) $action.convertDate($order.getExpected_delivery_time())
|
|
|
154 |
#end<br/>
|
|
|
155 |
<span>Delivered : #if($order.getDelivery_timestamp() != 0) $action.convertDate($order.getDelivery_timestamp()) #end</span><br/>
|
| 2674 |
vikas |
156 |
</div>
|
| 6322 |
amar.kumar |
157 |
|
|
|
158 |
<div id = "order-confirmation-link-div">
|
| 6366 |
amar.kumar |
159 |
<a href = "/crm/user-order-info!getOrderConfirmationMail?orderId=$order.getId()" id = "order-confirmation-mail" orderId = "$order.getId()">Get Order Confirmation Mail</a>
|
| 6322 |
amar.kumar |
160 |
</div>
|
|
|
161 |
|
| 3090 |
mandeep.dh |
162 |
<div id="orderMiddle">
|
| 4142 |
mandeep.dh |
163 |
<br />
|
| 6676 |
anupam.sin |
164 |
#if($order.isOtg())
|
|
|
165 |
<span class='info'>This order is covered under On Time Guarantee</span>
|
| 6678 |
anupam.sin |
166 |
<br>
|
| 6676 |
anupam.sin |
167 |
#end
|
| 6956 |
anupam.sin |
168 |
#if($order.getInsurer() > 0 && $order.getStatus().toString().equals("DELIVERY_SUCCESS"))
|
| 6903 |
anupam.sin |
169 |
<span class='bold'>Insurer: </span>New India Assurance Limited<br>
|
| 6912 |
anupam.sin |
170 |
<span class='bold'>Insurance valid upto : </span>$action.getInsuranceExpiryDate($order.getDelivery_timestamp())<br>
|
| 6903 |
anupam.sin |
171 |
#end
|
| 4142 |
mandeep.dh |
172 |
#set($delayReason = "")
|
|
|
173 |
#if($order.getDelayReason())
|
|
|
174 |
$delayReason = $order.getDelayReason().name()
|
|
|
175 |
#end
|
| 5022 |
anupam.sin |
176 |
#if($order.getRefundReason())
|
| 6676 |
anupam.sin |
177 |
<span class="bold" style='color:blue;'>Cancellation Reason : </span><span>$order.getRefundReason()</span></br>
|
| 5022 |
anupam.sin |
178 |
#end
|
| 4034 |
mandeep.dh |
179 |
#if($action.canViewDelayedDeliveries())
|
| 4105 |
mandeep.dh |
180 |
<span class="bold">Delay Reason: </span>$delayReason <br />
|
| 4034 |
mandeep.dh |
181 |
#end
|
| 4146 |
mandeep.dh |
182 |
#foreach($lineItem in $order.getLineitems())
|
| 4142 |
mandeep.dh |
183 |
<span class="bold">$action.getProductName($lineItem) $lineItem.getTotal_price()($action.convertDouble($lineItem.getQuantity()), $lineItem.getUnit_price())</span><br/>
|
| 2674 |
vikas |
184 |
#end
|
| 5890 |
anupam.sin |
185 |
#if($order.getPickupStoreId() == 0)
|
| 5845 |
mandeep.dh |
186 |
#if($action.getAddress($order)) <span class="bold">Shipping Address: </span>$action.getAddress($order)<br/>#end
|
|
|
187 |
#else
|
|
|
188 |
<span class="bold">Store Shipping Address: </span>$action.getShippingAddressOfStore($order.getPickupStoreId())<br/>
|
|
|
189 |
<span class="bold">Billing Address: </span>$action.getAddress($order)<br/>
|
|
|
190 |
#end
|
| 3996 |
mandeep.dh |
191 |
<br />
|
| 4142 |
mandeep.dh |
192 |
<br />
|
|
|
193 |
<label class="heading">Payment details</label><br />
|
|
|
194 |
#set($payments = $action.getPayments())
|
| 2674 |
vikas |
195 |
#set($count = 1)
|
|
|
196 |
#foreach($payment in $payments)
|
|
|
197 |
<span>Payment No. $count</span><br/>
|
|
|
198 |
#set($count = $count + 1)
|
| 3090 |
mandeep.dh |
199 |
<div id="orderMiddleLeft">
|
| 4142 |
mandeep.dh |
200 |
#if($payment.getDescription()) <span>Description : $payment.getDescription()</span><br/>#end
|
|
|
201 |
#if($payment.getStatus().name()) <span>Status : $payment.getStatus().name()</span><br/>#end
|
|
|
202 |
#if($payment.getAmount()) <span>Amount : $payment.getAmount()</span><br/>#end
|
|
|
203 |
#if($payment.getAuthCode()) <span>AuthCode : $payment.getAuthCode()</span><br/>#end
|
| 4844 |
anupam.sin |
204 |
#set($payMethod = $action.getPaymentMethod($payment.getAttributes()))
|
|
|
205 |
#if((!$order.isCod()) && $payMethod == "COD")
|
|
|
206 |
<span>Pay Method : Prepaid</span>
|
|
|
207 |
#elseif($payMethod)
|
|
|
208 |
<span>Pay Method : $payMethod</span>
|
|
|
209 |
#end
|
| 2674 |
vikas |
210 |
</div>
|
| 3090 |
mandeep.dh |
211 |
<div id="orderMiddleMiddle">
|
| 4142 |
mandeep.dh |
212 |
#set($gatewayName = $action.getGatewayName($payment))
|
| 4145 |
mandeep.dh |
213 |
#if($gatewayName) <span>Gateway : $gatewayName</span><br/>#end
|
|
|
214 |
#if($payment.getGatewayPaymentId()) <span>Gtwy Payment Id : $payment.getGatewayPaymentId()</span><br/>#end
|
|
|
215 |
#if($payment.getGatewayTxnDate()) <span>Gtwy Txn Date : $payment.getGatewayTxnDate()</span><br/>#end
|
|
|
216 |
#if($payment.getGatewayTxnId()) <span>Gtwy Txn Id : $payment.getGatewayTxnId()</span><br/>#end
|
| 4142 |
mandeep.dh |
217 |
#if($payment.getGatewayTxnStatus()) <span>Gtwy Txn Status : $payment.getGatewayTxnStatus()</span>#end
|
| 2674 |
vikas |
218 |
</div>
|
| 3090 |
mandeep.dh |
219 |
<div id="orderMiddleRight">
|
| 4142 |
mandeep.dh |
220 |
#if($payment.getErrorCode()) <span>Error Code : $payment.getErrorCode()</span><br/>#end
|
|
|
221 |
#if($payment.getReferenceCode()) <span>Ref Code : $payment.getReferenceCode()</span><br/>#end
|
|
|
222 |
#if($payment.getSessionId()) <span>Session Id : $payment.getSessionId()</span><br/>#end
|
|
|
223 |
#if($payment.getSuccessTimestamp() != 0) <span>Success Time : $action.convertDate($payment.getSuccessTimestamp())</span>#end
|
| 2674 |
vikas |
224 |
</div>
|
| 3996 |
mandeep.dh |
225 |
#end
|
| 2674 |
vikas |
226 |
</div>
|
| 4142 |
mandeep.dh |
227 |
<div id="orderBottom">
|
| 3996 |
mandeep.dh |
228 |
<br />
|
| 3578 |
mandeep.dh |
229 |
<br />
|
| 4142 |
mandeep.dh |
230 |
<label class="heading">Shipment updates</label><br />
|
|
|
231 |
<table id="shipment-details">
|
| 3090 |
mandeep.dh |
232 |
<thead >
|
|
|
233 |
<tr >
|
|
|
234 |
<th >Date</th>
|
|
|
235 |
<th >Time</th>
|
|
|
236 |
<th >City</th>
|
|
|
237 |
<th >Description</th>
|
|
|
238 |
</tr>
|
|
|
239 |
</thead>
|
|
|
240 |
<tbody >
|
|
|
241 |
#foreach($shipmentUpdate in $action.getShipmentUpdates())
|
| 3106 |
mandeep.dh |
242 |
#set($trClass = "table-tr-odd")
|
|
|
243 |
#if($velocityCount % 2 == 0)
|
|
|
244 |
#set($trClass = "table-tr-even")
|
|
|
245 |
#end
|
|
|
246 |
<tr class="$trClass">
|
| 3090 |
mandeep.dh |
247 |
<td >$shipmentUpdate.getDate()</td>
|
|
|
248 |
<td >$shipmentUpdate.getTime()</td>
|
|
|
249 |
<td >$shipmentUpdate.getCity()</td>
|
|
|
250 |
<td >$shipmentUpdate.getDescription()</td>
|
|
|
251 |
</tr>
|
|
|
252 |
#end
|
|
|
253 |
</tbody>
|
|
|
254 |
</table>
|
|
|
255 |
</div>
|
| 2749 |
vikas |
256 |
#end
|