| 3546 |
mandeep.dh |
1 |
<div id="bottom-infopane">
|
| 3106 |
mandeep.dh |
2 |
#set($messages = $action.getActionErrors())
|
|
|
3 |
#if($messages && $messages.size() != 0)
|
|
|
4 |
#foreach($message in $messages)
|
|
|
5 |
$message <br/>
|
|
|
6 |
#end
|
|
|
7 |
#else
|
| 3090 |
mandeep.dh |
8 |
#set($ticket = $action.getTicket())
|
|
|
9 |
#set($ticketId = $ticket.getId())
|
|
|
10 |
<div >
|
| 3397 |
mandeep.dh |
11 |
<div id="mail-div" class="hidden">
|
| 3206 |
mandeep.dh |
12 |
<form id="mail-form">
|
|
|
13 |
<table >
|
|
|
14 |
<colgroup >
|
|
|
15 |
<col width="10%"/>
|
|
|
16 |
<col width="90%"/>
|
|
|
17 |
</colgroup>
|
|
|
18 |
<tbody >
|
| 3405 |
mandeep.dh |
19 |
#if($ticket.isSetCustomerId())
|
| 3998 |
mandeep.dh |
20 |
#set($customerEmailId = $action.getUser($ticket.getCustomerId()).getCommunicationEmail())
|
| 3405 |
mandeep.dh |
21 |
#else
|
| 3422 |
mandeep.dh |
22 |
#set($customerEmailId = $ticket.getCustomerEmailId())
|
| 3269 |
mandeep.dh |
23 |
#end
|
| 3206 |
mandeep.dh |
24 |
<tr >
|
|
|
25 |
<td ><span >Reply to:</span></td>
|
| 3405 |
mandeep.dh |
26 |
<td >$customerEmailId</td>
|
| 3206 |
mandeep.dh |
27 |
</tr>
|
|
|
28 |
<tr >
|
|
|
29 |
<td ><span >Subject:</span></td>
|
| 3519 |
mandeep.dh |
30 |
<td ><textarea name="subject" rows="1" class="required" cols="80">$action.getSubject()</textarea></td>
|
| 3206 |
mandeep.dh |
31 |
</tr>
|
|
|
32 |
<tr >
|
|
|
33 |
<td ><span >Body:</span></td>
|
| 3519 |
mandeep.dh |
34 |
<td ><textarea name="body" rows="12" class="required" cols="80" id="mail-body"></textarea></td>
|
| 3206 |
mandeep.dh |
35 |
</tr>
|
|
|
36 |
<tr >
|
| 3405 |
mandeep.dh |
37 |
<td ><input type="hidden" name="customerEmailId" value="$customerEmailId"/></td>
|
| 3206 |
mandeep.dh |
38 |
<td ><input type="submit" value="Send mail and save ticket"/></td>
|
|
|
39 |
</tr>
|
|
|
40 |
</tbody>
|
|
|
41 |
</table>
|
|
|
42 |
</form>
|
|
|
43 |
</div>
|
| 4020 |
mandeep.dh |
44 |
<div id="escalation-div" class="hidden">
|
|
|
45 |
<form id="escalation-form">
|
| 4027 |
mandeep.dh |
46 |
<table class="display">
|
| 16244 |
manish.sha |
47 |
#if($action.isSaholicAndProfitMandiAllowed())
|
|
|
48 |
#foreach($item in $action.getEscalationMatrix())
|
|
|
49 |
#if($velocityCount % 2 != 0)
|
|
|
50 |
<tr >
|
|
|
51 |
#end
|
|
|
52 |
<td>
|
|
|
53 |
#if($item.name().equals("SHIPPING_AND_DELIVERY"))
|
|
|
54 |
<input type="radio" name="escalate" value="$item.name()" checked />
|
|
|
55 |
#else
|
|
|
56 |
<input type="radio" name="escalate" value="$item.name()" />
|
|
|
57 |
#end
|
|
|
58 |
<label title="$item.getDescription()">$item.name()</label>
|
|
|
59 |
</td>
|
|
|
60 |
#if($velocityCount % 2 == 0)
|
|
|
61 |
</ tr>
|
|
|
62 |
#end
|
|
|
63 |
#end
|
|
|
64 |
#foreach($item in $action.getPMEscalationMatrix())
|
|
|
65 |
#if($velocityCount % 2 != 0)
|
|
|
66 |
<tr >
|
|
|
67 |
#end
|
|
|
68 |
<td>
|
|
|
69 |
<input type="radio" name="escalate" value="$item.name()" />
|
|
|
70 |
<label title="$item.getDescription()">$item.name()</label>
|
|
|
71 |
</td>
|
|
|
72 |
#if($velocityCount % 2 == 0)
|
|
|
73 |
</ tr>
|
|
|
74 |
#end
|
|
|
75 |
#end
|
|
|
76 |
#elseif($action.isProfitMandiAgent())
|
|
|
77 |
#foreach($item in $action.getPMEscalationMatrix())
|
|
|
78 |
#if($velocityCount % 2 != 0)
|
|
|
79 |
<tr >
|
|
|
80 |
#end
|
|
|
81 |
<td>
|
|
|
82 |
#if($item.name().equals("PM_CASH_BACK_INQUIRY"))
|
|
|
83 |
<input type="radio" name="escalate" value="$item.name()" checked />
|
|
|
84 |
#else
|
|
|
85 |
<input type="radio" name="escalate" value="$item.name()" />
|
|
|
86 |
#end
|
|
|
87 |
<label title="$item.getDescription()">$item.name()</label>
|
|
|
88 |
</td>
|
|
|
89 |
#if($velocityCount % 2 == 0)
|
|
|
90 |
</ tr>
|
|
|
91 |
#end
|
|
|
92 |
#end
|
|
|
93 |
#else
|
|
|
94 |
#foreach($item in $action.getEscalationMatrix())
|
|
|
95 |
#if($velocityCount % 2 != 0)
|
|
|
96 |
<tr >
|
|
|
97 |
#end
|
|
|
98 |
<td>
|
|
|
99 |
#if($item.name().equals("SHIPPING_AND_DELIVERY"))
|
|
|
100 |
<input type="radio" name="escalate" value="$item.name()" checked />
|
|
|
101 |
#else
|
|
|
102 |
<input type="radio" name="escalate" value="$item.name()" />
|
|
|
103 |
#end
|
|
|
104 |
<label title="$item.getDescription()">$item.name()</label>
|
|
|
105 |
</td>
|
|
|
106 |
#if($velocityCount % 2 == 0)
|
|
|
107 |
</ tr>
|
|
|
108 |
#end
|
|
|
109 |
#end
|
|
|
110 |
#end
|
| 4020 |
mandeep.dh |
111 |
<tr >
|
| 4027 |
mandeep.dh |
112 |
<td colspan="2">
|
| 4020 |
mandeep.dh |
113 |
<textarea name="body" rows="5" class="required" cols="80" id="escalation-mail-body"></textarea>
|
|
|
114 |
</td>
|
|
|
115 |
</tr>
|
|
|
116 |
<tr >
|
| 4027 |
mandeep.dh |
117 |
<td colspan="2">
|
| 4020 |
mandeep.dh |
118 |
<input type="submit" value="Escalate"/>
|
|
|
119 |
</td>
|
|
|
120 |
</tr>
|
|
|
121 |
</table>
|
|
|
122 |
</form>
|
|
|
123 |
</div>
|
| 19072 |
manish.sha |
124 |
<div id="cancel-div" class="hidden" cancelType="">
|
| 4689 |
anupam.sin |
125 |
<form id="cancel-form">
|
| 4241 |
anupam.sin |
126 |
<table class="display">
|
|
|
127 |
#foreach($item in $action.getCODCancelMatrix())
|
|
|
128 |
#if($velocityCount % 2 != 0)
|
|
|
129 |
<tr >
|
|
|
130 |
#end
|
|
|
131 |
<td>
|
|
|
132 |
#if($item.name().equals("INVALID_CONTACT_DETAILS"))
|
| 4681 |
amar.kumar |
133 |
<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" checked />
|
| 4241 |
anupam.sin |
134 |
#else
|
| 4681 |
amar.kumar |
135 |
<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" />
|
| 4241 |
anupam.sin |
136 |
#end
|
|
|
137 |
<label title="$item.getDescription()">$item.name()</label>
|
|
|
138 |
</td>
|
|
|
139 |
#if($velocityCount % 2 == 0)
|
|
|
140 |
</ tr>
|
|
|
141 |
#end
|
|
|
142 |
#end
|
|
|
143 |
<tr >
|
| 4681 |
amar.kumar |
144 |
<td id ="cancelReasonBox" colspan="2">
|
| 4689 |
anupam.sin |
145 |
<textarea name="body" rows="5" cols="80" id="cancel-body"></textarea>
|
| 4241 |
anupam.sin |
146 |
</td>
|
|
|
147 |
</tr>
|
|
|
148 |
<tr >
|
|
|
149 |
<td colspan="2">
|
|
|
150 |
<input type="submit" value="Cancel COD"/>
|
|
|
151 |
</td>
|
|
|
152 |
</tr>
|
|
|
153 |
</table>
|
|
|
154 |
</form>
|
|
|
155 |
</div>
|
| 7645 |
anupam.sin |
156 |
<div id='store-return-auth' style='display:none;text-align:center;font-size: 15px;'>
|
|
|
157 |
<form id='store-return-form'>
|
|
|
158 |
Case closure : <input type="radio" checked='checked' name="closureType" value="reship">Reship</input>
|
|
|
159 |
<input type="radio" name="closureType" value="refund">Refund</input>
|
|
|
160 |
<br>
|
|
|
161 |
<br>
|
|
|
162 |
Premises : <input type="radio" checked='checked' name="premises" value="store">Store</input>
|
|
|
163 |
<input type="radio" name="premises" value="home">Customer premises</input>
|
|
|
164 |
<br><br>
|
|
|
165 |
<input id='auth-return-button' type='button' value='AUTHORIZE'>
|
|
|
166 |
</form>
|
|
|
167 |
</div>
|
|
|
168 |
<div id='store-doa-auth' style='display:none;text-align:center;font-size: 15px;'>
|
|
|
169 |
<form id='store-doa-form' action='/crm/tickets!authorizeDOA'>
|
|
|
170 |
Case closure : <input type="radio" checked='checked' name="closureType" value="reship">Reship</input>
|
|
|
171 |
<input type="radio" name="closureType" value="refund">Refund</input>
|
|
|
172 |
<br>
|
|
|
173 |
<br>
|
|
|
174 |
Premises : <input type="radio" checked='checked' name="premises" value="store">Store</input>
|
|
|
175 |
<input type="radio" name="premises" value="home">Customer premises</input>
|
|
|
176 |
<br><br>
|
|
|
177 |
<input id='auth-doa-button' type='button' value='AUTHORIZE'>
|
|
|
178 |
</form>
|
|
|
179 |
</div>
|
| 4267 |
anupam.sin |
180 |
#if($action.getPayments() && $action.canViewFlaggedPayments())
|
|
|
181 |
<div id="payment-pane">
|
|
|
182 |
<br />
|
|
|
183 |
<label class="heading">Payments</label><br />
|
|
|
184 |
<table id="payment-table" class="display">
|
|
|
185 |
<thead>
|
|
|
186 |
<tr>
|
|
|
187 |
<th>Payment Id</th>
|
|
|
188 |
<th>Gateway Payment Id</th>
|
|
|
189 |
<th>Gateway Id</th>
|
|
|
190 |
<th>Amount</th>
|
|
|
191 |
<th></th>
|
|
|
192 |
<th></th>
|
|
|
193 |
</tr>
|
|
|
194 |
</thead>
|
|
|
195 |
<tbody>
|
|
|
196 |
#foreach($payment in $action.getPayments())
|
|
|
197 |
#set($paymentId = $payment.getPaymentId())
|
|
|
198 |
#set($trClass = "table-tr-odd")
|
|
|
199 |
#if($velocityCount % 2 == 0)
|
|
|
200 |
#set($trClass = "table-tr-even")
|
|
|
201 |
#end
|
|
|
202 |
<tr id="payment-row-$paymentId" class="$trClass">
|
|
|
203 |
<td>
|
|
|
204 |
$paymentId
|
|
|
205 |
</td>
|
|
|
206 |
#if($payment.getGatewayPaymentId())
|
|
|
207 |
<td class="truncated-text-for-order-table">$payment.getGatewayPaymentId()</td>
|
|
|
208 |
#else
|
|
|
209 |
<td>N/A</td>
|
|
|
210 |
#end
|
|
|
211 |
<td class="truncated-text-for-order-table">$payment.getGatewayId()</td>
|
|
|
212 |
<td>$payment.getAmount()</td>
|
| 4438 |
anupam.sin |
213 |
<td class="center-aligned"><input id="block-payment" type="button" transactionId="$payment.getMerchantTxnId()" paymentId = "$paymentId" ticketId="$ticketId" value="Block Payment" class="CODButton"/> </td>
|
|
|
214 |
<td class="center-aligned"><input id="allow-payment" type="button" transactionId="$payment.getMerchantTxnId()" paymentId = "$paymentId" ticketId="$ticketId" value="Allow Payment" class="CODButton"/> </td>
|
| 4267 |
anupam.sin |
215 |
</tr>
|
|
|
216 |
#end
|
|
|
217 |
</tbody>
|
|
|
218 |
</table>
|
|
|
219 |
</div>
|
|
|
220 |
#end
|
| 18341 |
amit.gupta |
221 |
#if($action.canVerifyCOD())
|
|
|
222 |
<div>
|
| 18344 |
amit.gupta |
223 |
<label>Transactions</label>
|
| 18348 |
amit.gupta |
224 |
<table id="tr-table" class="display">
|
| 18341 |
amit.gupta |
225 |
<thead>
|
|
|
226 |
<tr>
|
|
|
227 |
<th>Tr Id</th>
|
|
|
228 |
<th>Total</th>
|
|
|
229 |
<th>Shipping</th>
|
|
|
230 |
<th>Address</th>
|
|
|
231 |
<th>Mobile</th>
|
| 18348 |
amit.gupta |
232 |
<th>Trust Level</th>
|
| 19072 |
manish.sha |
233 |
<th></th>
|
|
|
234 |
<th></th>
|
| 18341 |
amit.gupta |
235 |
</tr>
|
|
|
236 |
</thead>
|
|
|
237 |
<tbody>
|
| 18344 |
amit.gupta |
238 |
#foreach($mapEntry in $action.getTransactions().entrySet())
|
| 18341 |
amit.gupta |
239 |
<tr>
|
| 18348 |
amit.gupta |
240 |
<td><a href="#" class="mk_transaction">$mapEntry.key</a></td>
|
| 18341 |
amit.gupta |
241 |
<td>$action.getTransactionTotal().get($mapEntry.key)</td>
|
| 18353 |
amit.gupta |
242 |
#set($shipping = $action.getTransactionShipping().get($mapEntry.key))
|
|
|
243 |
<td>#if($shipping==0)
|
|
|
244 |
|
|
|
245 |
#else
|
|
|
246 |
<span style="color:red">$shipping</span>
|
| 18355 |
amit.gupta |
247 |
#end
|
| 18353 |
amit.gupta |
248 |
</td>
|
| 18341 |
amit.gupta |
249 |
<td>$action.getAddress($mapEntry.value)</td>
|
|
|
250 |
<td>$mapEntry.value.getCustomer_mobilenumber()</td>
|
| 18356 |
amit.gupta |
251 |
<td class="center-aligned">$action.getCustomerTrustLevel($mapEntry.value.getCustomer_id())</td>
|
| 19072 |
manish.sha |
252 |
#if($ticket.getCategory().name().equals("COD_VERIFICATION"))
|
| 19085 |
manish.sha |
253 |
<td class="center-aligned"><input type="button" value="Verify Txn" ticketId="$ticketId" transactionId="$mapEntry.key" orderStatus="SUBMITTED_FOR_PROCESSING" class="update-txn-status CODButton"/> </td>
|
|
|
254 |
<td class="center-aligned"><input type="button" value="Cancel Txn" ticketId="$ticketId" transactionId="$mapEntry.key" orderStatus="COD_VERIFICATION_FAILED" class="display-cancel-order-popup CODButton"/> </td>
|
| 19086 |
manish.sha |
255 |
#else
|
|
|
256 |
<td> </td>
|
|
|
257 |
<td> </td>
|
| 19072 |
manish.sha |
258 |
#end
|
| 18341 |
amit.gupta |
259 |
</tr>
|
|
|
260 |
#end
|
|
|
261 |
</tbody>
|
|
|
262 |
</table>
|
|
|
263 |
</div>
|
|
|
264 |
#end
|
| 4490 |
anupam.sin |
265 |
#if($action.getOrders() && ($action.canVerifyCOD() || $action.canViewFailedPayments() || ($action.canViewDoaRequests())))
|
| 3090 |
mandeep.dh |
266 |
<div id="bottom-infopane-upper">
|
| 4142 |
mandeep.dh |
267 |
<br />
|
|
|
268 |
<label class="heading">Orders</label><br />
|
| 4105 |
mandeep.dh |
269 |
<table id="order-table" class="display">
|
|
|
270 |
<thead>
|
|
|
271 |
<tr>
|
|
|
272 |
<th>Order Id</th>
|
|
|
273 |
<th>Product</th>
|
| 18873 |
amit.gupta |
274 |
<th>Qty</th>
|
| 4105 |
mandeep.dh |
275 |
<th>Amount</th>
|
| 18341 |
amit.gupta |
276 |
<th>Expected delivery</th>
|
|
|
277 |
#if($ticket.getCategory().name().equals("COD_VERIFICATION"))
|
|
|
278 |
#else
|
| 4105 |
mandeep.dh |
279 |
<th>Mobile No</th>
|
|
|
280 |
<th>Shipping Address</th>
|
| 18341 |
amit.gupta |
281 |
#end
|
| 5407 |
amar.kumar |
282 |
#if($ticket.getCategory().name().equals("COD_VERIFICATION"))
|
| 18885 |
amit.gupta |
283 |
<script type='text/javascript'>
|
| 18889 |
amit.gupta |
284 |
ordertype='codverification';
|
| 18885 |
amit.gupta |
285 |
</script>
|
| 4105 |
mandeep.dh |
286 |
<th></th>
|
|
|
287 |
<th></th>
|
| 18890 |
amit.gupta |
288 |
<th></th>
|
| 5791 |
anupam.sin |
289 |
#elseif($ticket.getCategory().name().equals("STORE_PICKUP"))
|
| 18885 |
amit.gupta |
290 |
<script type='text/javascript'>
|
|
|
291 |
ordertype='storepickup';
|
|
|
292 |
</script>
|
| 5791 |
anupam.sin |
293 |
<th>Pickup Expiry</th>
|
|
|
294 |
<th></th>
|
|
|
295 |
<th></th>
|
| 18351 |
amit.gupta |
296 |
<th>TransactionId</th>
|
| 5407 |
amar.kumar |
297 |
#elseif($ticket.getCategory().name().equals("ORDER_CANCELLATION") || $ticket.getCategory().name().equals("DOA_RECEIVED") || $ticket.getCategory().name().equals("RETURN_FORM"))
|
| 18885 |
amit.gupta |
298 |
<script type='text/javascript'>
|
|
|
299 |
ordertype='return';
|
|
|
300 |
</script>
|
| 5407 |
amar.kumar |
301 |
<th></th>
|
|
|
302 |
<th></th>
|
| 4105 |
mandeep.dh |
303 |
#elseif($ticket.getCategory().name().equals("DELAYED_DELIVERY"))
|
| 18885 |
amit.gupta |
304 |
<script type='text/javascript'>
|
|
|
305 |
ordertype='delayed';
|
|
|
306 |
</script>
|
| 4105 |
mandeep.dh |
307 |
<th>Promised delivery</th>
|
|
|
308 |
<th>Delay reason</th>
|
|
|
309 |
#end
|
|
|
310 |
</tr>
|
|
|
311 |
</thead>
|
|
|
312 |
<tbody>
|
|
|
313 |
#foreach($order in $action.getOrders())
|
|
|
314 |
#set($orderId = $order.getId())
|
|
|
315 |
#set($trClass = "table-tr-odd")
|
|
|
316 |
#if($velocityCount % 2 == 0)
|
|
|
317 |
#set($trClass = "table-tr-even")
|
| 5890 |
anupam.sin |
318 |
#end
|
|
|
319 |
#if($order.getPickupStoreId() != 0)
|
| 5912 |
anupam.sin |
320 |
<tr id="order-row-$orderId" class="$trClass" style="color:red">
|
| 5890 |
anupam.sin |
321 |
#else
|
|
|
322 |
<tr id="order-row-$orderId" class="$trClass">
|
|
|
323 |
#end
|
| 4105 |
mandeep.dh |
324 |
<td>
|
|
|
325 |
<a alt="Show Order Details" title="Show Order Details" href="/crm?email=&orderId=$orderId">
|
|
|
326 |
$orderId
|
|
|
327 |
</a>
|
|
|
328 |
</td>
|
| 18344 |
amit.gupta |
329 |
#if($ticket.getCategory().name().equals("COD_VERIFICATION"))
|
|
|
330 |
<td class="truncated-text" truncatedTextWidth="400">$action.getProductName($order.getLineitems().get(0))</td>
|
| 18625 |
amit.gupta |
331 |
<td class="truncated-text" truncatedTextWidth="400">$order.getLineitems().get(0).getQuantity()</td>
|
| 18344 |
amit.gupta |
332 |
<td>$order.getTotal_amount()</td>
|
|
|
333 |
<td class="truncated-text" truncatedTextWidth="250">$action.convertDate($order.getExpected_delivery_time())</td>
|
|
|
334 |
<td class="center-aligned"><input type="button" value="Verify COD" ticketId="$ticketId" orderId="$orderId" orderStatus="SUBMITTED_FOR_PROCESSING" class="update-order-status CODButton"/> </td>
|
|
|
335 |
<td class="center-aligned"><input type="button" value="Cancel order" ticketId="$ticketId" orderId="$orderId" orderStatus="COD_VERIFICATION_FAILED" class="display-cancel-order-popup CODButton"/> </td>
|
|
|
336 |
#else
|
| 18873 |
amit.gupta |
337 |
<td class="truncated-text" truncatedTextWidth="400">$action.getProductName($order.getLineitems().get(0))</td>
|
|
|
338 |
<td>$order.getLineitems().get(0).getQuantity()</td>
|
| 4105 |
mandeep.dh |
339 |
<td>$order.getTotal_amount()</td>
|
| 18341 |
amit.gupta |
340 |
<td class="truncated-text-for-order-table">$action.convertDate($order.getExpected_delivery_time())</td>
|
| 4105 |
mandeep.dh |
341 |
<td>$order.getCustomer_mobilenumber()</td>
|
|
|
342 |
<td class="truncated-text-for-order-table">$action.getAddress($order)</td>
|
| 18341 |
amit.gupta |
343 |
#end
|
| 4105 |
mandeep.dh |
344 |
#if($ticket.getCategory().name().equals("COD_VERIFICATION"))
|
| 18348 |
amit.gupta |
345 |
<td>$order.getTransactionId()</td>
|
| 4277 |
anupam.sin |
346 |
#elseif($ticket.getCategory().name().equals("ORDER_CANCELLATION"))
|
| 4280 |
anupam.sin |
347 |
<td class="center-aligned"><input type="button" value="Confirm" ticketId="$ticketId" orderId="$orderId" orderStatus="CANCEL_REQUEST_CONFIRMED" class="update-order-status CODButton"/> </td>
|
|
|
348 |
<td class="center-aligned"><input type="button" value="Deny" ticketId="$ticketId" orderId="$orderId" orderStatus="DENY_CANCEL_REQUEST" class="update-order-status CODButton"/> </td>
|
| 4490 |
anupam.sin |
349 |
#elseif(($ticket.getCategory().name().equals("RETURN_FORM")) && ($action.canViewDoaRequests()))
|
| 7645 |
anupam.sin |
350 |
#set($storeAuthId = "authorize-return")
|
|
|
351 |
#if($order.getSource() == 2)
|
|
|
352 |
#set($storeAuthId = "display-store-ret-auth-options")
|
|
|
353 |
#end
|
| 4490 |
anupam.sin |
354 |
<td class="center-aligned"><input id="deny-return" type="button" value="Deny" ticketId="$ticketId" orderId="$orderId" class="CODButton"/> </td>
|
| 7645 |
anupam.sin |
355 |
<td class="center-aligned"><input id="$storeAuthId" type="button" value="Authorize" ticketId="$ticketId" orderId="$orderId"class="CODButton"/> </td>
|
| 4490 |
anupam.sin |
356 |
#elseif(($ticket.getCategory().name().equals("DOA_RECEIVED")) && ($action.canViewDoaRequests()))
|
| 7645 |
anupam.sin |
357 |
#set($storeAuthId = "authorize-doa")
|
|
|
358 |
#if($order.getSource() == 2)
|
|
|
359 |
#set($storeAuthId = "display-store-doa-auth-options")
|
|
|
360 |
#end
|
| 4490 |
anupam.sin |
361 |
<td class="center-aligned"><input id="deny-doa" type="button" value="Deny" ticketId="$ticketId" orderId="$orderId" class="CODButton"/> </td>
|
| 7645 |
anupam.sin |
362 |
<td class="center-aligned"><input id="$storeAuthId" type="button" value="Authorize" ticketId="$ticketId" orderId="$orderId"class="CODButton"/> </td>
|
| 4490 |
anupam.sin |
363 |
#elseif($ticket.getCategory().name().equals("DELAYED_DELIVERY"))
|
| 4105 |
mandeep.dh |
364 |
<td class="truncated-text-for-order-table">$action.convertDate($order.getPromised_delivery_time())</td>
|
|
|
365 |
<td class="truncated-text-for-order-table">$order.getDelayReason().name()</td>
|
| 5791 |
anupam.sin |
366 |
#elseif($ticket.getCategory().name().equals("STORE_PICKUP"))
|
|
|
367 |
<td class="center-aligned truncated-text-for-order-table">$action.getPickupExpiryDate($orderId, $order.getDelivery_timestamp())</td>
|
| 5918 |
anupam.sin |
368 |
#if(!$ticket.getStatus().name().equals("CLOSED"))
|
|
|
369 |
<td class="center-aligned" id="pickupExtensionContainer">
|
|
|
370 |
<select id="pickupExtension" name="pickupExtension" class="pickupExtension" style="width:50px">
|
|
|
371 |
<option value="0" selected="selected">0</option>
|
|
|
372 |
<option value="1">1</option>
|
|
|
373 |
<option value="2">2</option>
|
|
|
374 |
<option value="3">3</option>
|
|
|
375 |
<option value="4">4</option>
|
|
|
376 |
<option value="5">5</option>
|
|
|
377 |
</select>
|
|
|
378 |
</td>
|
|
|
379 |
<td class="center-aligned"><input type="button" value="Extend" ticketId="$ticketId" orderId="$orderId" class="extend-expiry CODButton"/> </td>
|
|
|
380 |
#else
|
|
|
381 |
<td></td>
|
|
|
382 |
<td></td>
|
|
|
383 |
#end
|
|
|
384 |
|
| 4105 |
mandeep.dh |
385 |
#end
|
|
|
386 |
</tr>
|
|
|
387 |
#end
|
|
|
388 |
</tbody>
|
|
|
389 |
</table>
|
|
|
390 |
</div>
|
|
|
391 |
#end
|
| 4142 |
mandeep.dh |
392 |
<div id="bottom-infopane-lower">
|
|
|
393 |
<br />
|
|
|
394 |
<br />
|
|
|
395 |
<label class="heading">Activities</label><br />
|
| 4241 |
anupam.sin |
396 |
<a name=currentActivity></a>
|
| 4142 |
mandeep.dh |
397 |
<table id="activity-table" class="display">
|
|
|
398 |
<thead >
|
|
|
399 |
<tr class="table-tr-header">
|
|
|
400 |
<th >Activity Id</th>
|
|
|
401 |
<th >Type</th>
|
|
|
402 |
<th >Description</th>
|
|
|
403 |
<th >Timestamp</th>
|
|
|
404 |
<th >Created by</th>
|
|
|
405 |
<th >Assignee</th>
|
|
|
406 |
<th >Category</th>
|
|
|
407 |
<th >Status</th>
|
|
|
408 |
<th >Priority</th>
|
|
|
409 |
<th >Ticket Description</th>
|
|
|
410 |
<!--th >Customer Name</th>
|
|
|
411 |
<th >Customer Email Id</th>
|
|
|
412 |
<th >Customer Mobile No</th-->
|
|
|
413 |
</tr>
|
|
|
414 |
</thead>
|
|
|
415 |
<tbody >
|
|
|
416 |
#foreach($activity in $action.getActivities())
|
|
|
417 |
#set($date = $action.convertDate($activity.getCreationTimestamp()))
|
|
|
418 |
#set($trClass = "table-tr-odd")
|
|
|
419 |
#if($velocityCount % 2 == 0)
|
|
|
420 |
#set($trClass = "table-tr-even")
|
|
|
421 |
#end
|
|
|
422 |
<tr class="$trClass">
|
| 4241 |
anupam.sin |
423 |
<td>
|
| 5521 |
amar.kumar |
424 |
<a alt="Show Activity Description" title="Show Activity Description" href="#currentActivity" activityId="$activity.getId()" isRead="$activity.isIsRead()"class="show-activity-description">
|
| 4241 |
anupam.sin |
425 |
$activity.getId()
|
|
|
426 |
</a>
|
|
|
427 |
</td>
|
|
|
428 |
<!--<td class="truncated-text-for-activity-table">$activity.getId()</td>
|
|
|
429 |
-->
|
| 4142 |
mandeep.dh |
430 |
<td class="truncated-text-for-activity-table">$activity.getType().name()</td>
|
| 4241 |
anupam.sin |
431 |
<td id="activity-description" class="truncated-text-for-activity-table"><pre>$activity.getDescription()</pre></td>
|
| 4142 |
mandeep.dh |
432 |
<td class="truncated-text-for-activity-table">$date</td>
|
|
|
433 |
<td class="truncated-text-for-activity-table">$action.getAgent($activity.getCreatorId()).getEmailId()</td>
|
|
|
434 |
#if($activity.isSetTicketAssigneeId())
|
|
|
435 |
<td class="truncated-text-for-activity-table">$action.getAgent($activity.getTicketAssigneeId()).getEmailId()</td>
|
|
|
436 |
#else
|
|
|
437 |
<td class="truncated-text-for-activity-table">N/A</td>
|
|
|
438 |
#end
|
|
|
439 |
<td class="truncated-text-for-activity-table">$activity.getTicketCategory().name()</td>
|
|
|
440 |
<td class="truncated-text-for-activity-table">$activity.getTicketStatus().name()</td>
|
|
|
441 |
<td class="truncated-text-for-activity-table">$activity.getTicketPriority().name()</td>
|
|
|
442 |
<td class="truncated-text-for-activity-table">$activity.getTicketDescription()</td>
|
|
|
443 |
<!--td class="truncated-text-for-activity-table">
|
|
|
444 |
#if($activity.getCustomerName())
|
|
|
445 |
$activity.getCustomerName()
|
|
|
446 |
#else
|
|
|
447 |
N/A
|
|
|
448 |
#end
|
|
|
449 |
</td>
|
|
|
450 |
<td class="truncated-text-for-activity-table">
|
|
|
451 |
#if($activity.getCustomerEmailId())
|
|
|
452 |
$activity.getCustomerEmailId()
|
|
|
453 |
#else
|
|
|
454 |
N/A
|
|
|
455 |
#end
|
|
|
456 |
</td>
|
|
|
457 |
<td class="truncated-text-for-activity-table">
|
|
|
458 |
#if($activity.getCustomerMobileNumber())
|
|
|
459 |
$activity.getCustomerMobileNumber()
|
|
|
460 |
#else
|
|
|
461 |
N/A
|
|
|
462 |
#end
|
|
|
463 |
</td-->
|
|
|
464 |
</tr>
|
|
|
465 |
#end
|
|
|
466 |
</tbody>
|
|
|
467 |
</table>
|
| 4490 |
anupam.sin |
468 |
<label class="bold">Attachments: </label>
|
|
|
469 |
#set($map = $action.getAllAttachmentsForTicket())
|
|
|
470 |
#foreach($key in $map.keySet())
|
|
|
471 |
<br/>
|
|
|
472 |
<a alt="Download Attachment" title="Download Attachment" href="/crm/activity-info!downloadAttachment?attachment=$map.get($key)" attachment="$map.get($key)" target="_blank">
|
|
|
473 |
$key
|
|
|
474 |
</a>
|
|
|
475 |
#end
|
|
|
476 |
<br/>
|
| 4142 |
mandeep.dh |
477 |
</div>
|
| 4241 |
anupam.sin |
478 |
<div id="activity-description-pane" class="activity-description-bg">
|
|
|
479 |
</div>
|
| 4105 |
mandeep.dh |
480 |
<div id="bottom-infopane-middle">
|
| 4142 |
mandeep.dh |
481 |
<br />
|
|
|
482 |
<br />
|
|
|
483 |
<label class="heading">Ticket details</label><br />
|
| 3090 |
mandeep.dh |
484 |
<form id="update-ticket-form" ticketId="$ticketId" _method="put" method="post" action="">
|
|
|
485 |
<table>
|
|
|
486 |
<colgroup>
|
|
|
487 |
<col width="200px"/>
|
|
|
488 |
<col width="250px"/>
|
| 3106 |
mandeep.dh |
489 |
<col width="120px"/>
|
| 3090 |
mandeep.dh |
490 |
<col width="200px"/>
|
| 3106 |
mandeep.dh |
491 |
<col width="300px"/>
|
| 3090 |
mandeep.dh |
492 |
</colgroup>
|
| 3405 |
mandeep.dh |
493 |
#if($ticket.isSetCustomerId())
|
| 3546 |
mandeep.dh |
494 |
#set($user = $action.getUser())
|
|
|
495 |
<tr >
|
| 4142 |
mandeep.dh |
496 |
<td class="bold">Customer Name: </td>
|
| 3546 |
mandeep.dh |
497 |
<td >$user.getName()</td>
|
|
|
498 |
<td ></td>
|
| 4142 |
mandeep.dh |
499 |
<td class="bold">Customer Mobile No: </td>
|
| 3853 |
mandeep.dh |
500 |
<td >
|
|
|
501 |
#if($user.isSetMobileNumber())
|
|
|
502 |
$user.getMobileNumber()
|
|
|
503 |
#else
|
|
|
504 |
N/A
|
|
|
505 |
#end
|
|
|
506 |
</td>
|
| 3546 |
mandeep.dh |
507 |
</tr>
|
| 3405 |
mandeep.dh |
508 |
#else
|
|
|
509 |
<tr >
|
| 4142 |
mandeep.dh |
510 |
<td class="bold">Customer Name: </td>
|
| 3405 |
mandeep.dh |
511 |
<td >
|
|
|
512 |
#if($ticket.isSetCustomerName())
|
|
|
513 |
<input type="text" name="customerName" value="$ticket.getCustomerName()"/>
|
|
|
514 |
#else
|
|
|
515 |
<input type="text" name="customerName"/>
|
|
|
516 |
#end
|
|
|
517 |
</td>
|
|
|
518 |
<td ></td>
|
| 4142 |
mandeep.dh |
519 |
<td class="bold">Customer Mobile No: </td>
|
| 3405 |
mandeep.dh |
520 |
<td >
|
|
|
521 |
#if($ticket.isSetCustomerMobileNumber())
|
|
|
522 |
<input type="text" name="customerMobileNumber" value="$ticket.getCustomerMobileNumber()"/>
|
|
|
523 |
#else
|
|
|
524 |
<input type="text" name="customerMobileNumber"/>
|
|
|
525 |
#end
|
|
|
526 |
</td>
|
|
|
527 |
</tr>
|
|
|
528 |
#end
|
| 3090 |
mandeep.dh |
529 |
<tr >
|
| 3106 |
mandeep.dh |
530 |
<td ><label>Description:</label></td>
|
| 3578 |
mandeep.dh |
531 |
<td colspan="4"><textarea id="description" class="required" name="description" rows="10" cols="90">$ticket.getDescription()</textarea></td>
|
| 3106 |
mandeep.dh |
532 |
</tr>
|
|
|
533 |
<tr >
|
| 3090 |
mandeep.dh |
534 |
<td ><label>Category:</label></td>
|
|
|
535 |
<td >
|
| 3106 |
mandeep.dh |
536 |
<select name="category" class="width10">
|
|
|
537 |
#foreach( $category in $action.getTicketCategories() )
|
|
|
538 |
#if($category.name() == $ticket.getCategory().name())
|
|
|
539 |
<option value="$category.name()" selected="selected">$category.name()</option>
|
| 3090 |
mandeep.dh |
540 |
#else
|
| 3106 |
mandeep.dh |
541 |
<option value="$category.name()">$category.name()</option>
|
| 3090 |
mandeep.dh |
542 |
#end
|
|
|
543 |
#end
|
|
|
544 |
</select>
|
|
|
545 |
</td>
|
|
|
546 |
<td></td>
|
| 3106 |
mandeep.dh |
547 |
<td ><label>Order Id:</label></td>
|
|
|
548 |
<td >
|
| 3168 |
mandeep.dh |
549 |
#if($ticket.isSetOrderId())
|
| 3519 |
mandeep.dh |
550 |
<a alt="Show Order Details" title="Show Order Details" href="/crm?email=&orderId=$ticket.getOrderId()">
|
|
|
551 |
$ticket.getOrderId()
|
|
|
552 |
</a>
|
| 3106 |
mandeep.dh |
553 |
#else
|
|
|
554 |
N/A
|
|
|
555 |
#end
|
|
|
556 |
</td>
|
| 3090 |
mandeep.dh |
557 |
</tr>
|
|
|
558 |
<tr >
|
|
|
559 |
<td ><label>Assignee:</label></td>
|
| 3405 |
mandeep.dh |
560 |
#if($action.isAssigneeEditable())
|
| 3090 |
mandeep.dh |
561 |
<td >
|
| 3106 |
mandeep.dh |
562 |
<select name="assigneeEmailId" class="width10">
|
| 3090 |
mandeep.dh |
563 |
#foreach( $agent in $action.getAllAgents() )
|
| 4020 |
mandeep.dh |
564 |
#if(($agent.getId() == $ticket.getAssigneeId()))
|
| 3090 |
mandeep.dh |
565 |
<option value="$agent.getEmailId()" selected="selected">$agent.getEmailId()</option>
|
|
|
566 |
#else
|
|
|
567 |
<option value="$agent.getEmailId()">$agent.getEmailId()</option>
|
|
|
568 |
#end
|
|
|
569 |
#end
|
|
|
570 |
</select>
|
|
|
571 |
</td>
|
| 3405 |
mandeep.dh |
572 |
#else
|
| 4020 |
mandeep.dh |
573 |
<td >
|
|
|
574 |
<select name="assigneeEmailId" class="width10">
|
|
|
575 |
#if ($ticket.isSetAssigneeId())
|
|
|
576 |
#set($assigneeEmailId = $action.getAgent($ticket.getAssigneeId()).getEmailId())
|
|
|
577 |
<option value="$assigneeEmailId" selected="selected">$assigneeEmailId</option>
|
|
|
578 |
#else
|
|
|
579 |
<option value="" selected="selected">N/A</option>
|
|
|
580 |
#end
|
|
|
581 |
<option value="$action.getCurrentAgentEmailId()">$action.getCurrentAgentEmailId()</option>
|
|
|
582 |
</select>
|
|
|
583 |
</td>
|
| 3090 |
mandeep.dh |
584 |
#end
|
|
|
585 |
<td ></td>
|
| 3106 |
mandeep.dh |
586 |
<td ><label>Created by:</label></td>
|
|
|
587 |
<td >$action.getAgent($ticket.getCreatorId()).getEmailId()</td>
|
| 3090 |
mandeep.dh |
588 |
</tr>
|
|
|
589 |
<tr >
|
|
|
590 |
<td ><label>Status:</label></td>
|
|
|
591 |
<td >
|
| 3106 |
mandeep.dh |
592 |
<select name="status" class="width10">
|
|
|
593 |
#foreach( $status in $action.getTicketStatuses() )
|
|
|
594 |
#if($status.name() == $ticket.getStatus().name())
|
|
|
595 |
<option value="$status.name()" selected="selected">$status.name()</option>
|
| 3090 |
mandeep.dh |
596 |
#else
|
| 3106 |
mandeep.dh |
597 |
<option value="$status.name()">$status.name()</option>
|
| 3090 |
mandeep.dh |
598 |
#end
|
|
|
599 |
#end
|
|
|
600 |
</select>
|
|
|
601 |
</td>
|
|
|
602 |
<td ></td>
|
|
|
603 |
<td ><label>Priority:</label></td>
|
|
|
604 |
<td >
|
| 3106 |
mandeep.dh |
605 |
<select name="priority" class="width10">
|
|
|
606 |
#foreach( $priority in $action.getTicketPriorities() )
|
|
|
607 |
#if($priority.name() == $ticket.getPriority().name())
|
|
|
608 |
<option value="$priority.name()" selected="selected">$priority.name()</option>
|
| 3090 |
mandeep.dh |
609 |
#else
|
| 3106 |
mandeep.dh |
610 |
<option value="$priority.name()">$priority.name()</option>
|
| 3090 |
mandeep.dh |
611 |
#end
|
|
|
612 |
#end
|
|
|
613 |
</select>
|
|
|
614 |
</td>
|
|
|
615 |
</tr>
|
|
|
616 |
<tr >
|
| 3106 |
mandeep.dh |
617 |
<td ><label>Activity Type:</label></td>
|
|
|
618 |
<td colspan="4">
|
| 3339 |
mandeep.dh |
619 |
<select id="activity-type" name="activityType" class="width-activity-type">
|
| 3106 |
mandeep.dh |
620 |
#foreach( $type in $action.getActivityTypes() )
|
|
|
621 |
#if($type.name() == "OTHER")
|
|
|
622 |
<option value="$type.name()" selected="selected">$type.name()</option>
|
| 3090 |
mandeep.dh |
623 |
#else
|
| 3106 |
mandeep.dh |
624 |
<option value="$type.name()">$type.name()</option>
|
| 3090 |
mandeep.dh |
625 |
#end
|
|
|
626 |
#end
|
|
|
627 |
</select>
|
|
|
628 |
</td>
|
| 3106 |
mandeep.dh |
629 |
</td>
|
| 3090 |
mandeep.dh |
630 |
</tr>
|
| 20152 |
aman.kumar |
631 |
#if($action.getActionable().size()>0)
|
| 3090 |
mandeep.dh |
632 |
<tr >
|
| 20152 |
aman.kumar |
633 |
<td ><label>Action:</label></td>
|
|
|
634 |
<td colspan="4">
|
|
|
635 |
<select id="activity-type" name="disposition" class="width-activity-type">
|
|
|
636 |
#foreach( $act in $action.getActionable() )
|
|
|
637 |
<option value="$act">$act</option>
|
|
|
638 |
#end
|
|
|
639 |
</select>
|
|
|
640 |
</td>
|
|
|
641 |
</tr>
|
|
|
642 |
#end
|
|
|
643 |
<tr >
|
| 3106 |
mandeep.dh |
644 |
<td ><label>Activity description:</label></td>
|
| 3405 |
mandeep.dh |
645 |
<td colspan="4"><textarea class="required" name="activityDescription" rows="2" cols="90"></textarea></td>
|
| 3106 |
mandeep.dh |
646 |
</tr>
|
|
|
647 |
<tr >
|
| 3090 |
mandeep.dh |
648 |
<td colspan="2"></td>
|
|
|
649 |
<td colspan="2"><input type="submit" value="Save" /></td>
|
| 3405 |
mandeep.dh |
650 |
<td ><input type="hidden" name="userId" value="$ticket.getCustomerId()"/></td>
|
| 3090 |
mandeep.dh |
651 |
</tr>
|
|
|
652 |
</table>
|
|
|
653 |
</form>
|
|
|
654 |
</div>
|
| 3546 |
mandeep.dh |
655 |
<br />
|
| 3090 |
mandeep.dh |
656 |
</div>
|
| 3106 |
mandeep.dh |
657 |
#end
|
| 3546 |
mandeep.dh |
658 |
</div>
|
| 3106 |
mandeep.dh |
659 |
<script >
|
| 3499 |
mandeep.dh |
660 |
$(document).ready(
|
|
|
661 |
function () {
|
|
|
662 |
$(".truncated-text-for-activity-table").truncate({
|
|
|
663 |
width : 65,
|
|
|
664 |
addtitle : true
|
|
|
665 |
});
|
| 3546 |
mandeep.dh |
666 |
|
|
|
667 |
$(".truncated-text-for-order-table").truncate({
|
| 3711 |
mandeep.dh |
668 |
width : 85,
|
| 3546 |
mandeep.dh |
669 |
addtitle : true
|
|
|
670 |
});
|
| 3499 |
mandeep.dh |
671 |
}
|
|
|
672 |
);
|
| 3390 |
mandeep.dh |
673 |
</script>
|