| 25640 |
tejbeer |
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
<script>
|
|
|
6 |
$(document).ready(function() {
|
|
|
7 |
$('#chckcancelHead').click(function () {
|
|
|
8 |
if (this.checked == false) {
|
|
|
9 |
$('.chcktbl:checked').attr('checked', false);
|
|
|
10 |
}
|
|
|
11 |
else {
|
|
|
12 |
$('.chcktbl:not(:checked)').attr('checked', true);
|
|
|
13 |
}
|
|
|
14 |
|
|
|
15 |
});
|
|
|
16 |
});
|
|
|
17 |
</script>
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
<div class="modal-header">
|
|
|
21 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
22 |
<h4 class="modal-title">Cancel Order</h4>
|
|
|
23 |
</div>
|
|
|
24 |
<div class="modal-body">
|
|
|
25 |
|
|
|
26 |
<div class=form-inline'>
|
|
|
27 |
<label for='reason'>Reason:</label>
|
|
|
28 |
<select class='form-control input-sm' id='selectreason' onchange="myFunction()" >
|
|
|
29 |
<option selected disabled>Reasons</option>
|
|
|
30 |
<option value='The model is currently not in stock with Brand/ND'>The model is currently not in stock with Brand/ND</option>
|
|
|
31 |
<option value='The model is currently not available in the specific color with Brand/ND'>The model is currently not available in the specific color with Brand/ND</option>
|
|
|
32 |
<option value='The model/color is discontinued.'>The model/color is discontinued.</option>
|
|
|
33 |
<option value='other'>other</option>
|
|
|
34 |
</select>
|
|
|
35 |
<br>
|
|
|
36 |
<textarea class='form-control' rows='1' id='textreason'></textarea>
|
|
|
37 |
</div>
|
|
|
38 |
|
|
|
39 |
<div class="-selected-cancel-order-table">
|
|
|
40 |
|
|
|
41 |
<div class = "row">
|
|
|
42 |
|
|
|
43 |
<div class="col-lg-12">
|
|
|
44 |
|
|
|
45 |
<table class="table table-advance" id = "cancel-order-table">
|
|
|
46 |
<tbody>
|
|
|
47 |
<tr>
|
|
|
48 |
<td><input type="checkbox" id="chckcancelHead"/></td>
|
|
|
49 |
<th>Item Id</th>
|
|
|
50 |
<th>OrderId</th>
|
|
|
51 |
<th>Description</th>
|
|
|
52 |
<th>Customer Name </th>
|
|
|
53 |
<th>Quantity</th>
|
|
|
54 |
<th>City</th>
|
|
|
55 |
<th>State</th>
|
|
|
56 |
<th>Store Code</th>
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
</tr>
|
|
|
60 |
|
|
|
61 |
</thead>
|
|
|
62 |
|
|
|
63 |
#foreach($request in $inProcessCancelOrder )
|
|
|
64 |
<tr>
|
|
|
65 |
<td> <input type="checkbox" class ="chcktbl" name="partnerOrderCheck" /></td>
|
|
|
66 |
<td>$request.getLineItem().getItemId()</td>
|
|
|
67 |
<td>$request.getId()</td>
|
|
|
68 |
<td>$request.getLineItem().getItem().getItemDescription()</td>
|
|
|
69 |
<td>$request.getRetailerName()</td>
|
|
|
70 |
<td>$request.getLineItem().getQuantity()</td>
|
|
|
71 |
<td>$request.getRetailerCity()</td>
|
|
|
72 |
<td>$request.getRetailerState()</td>
|
|
|
73 |
<td>$storeIdAndFofoIdMap.get($request.getRetailerId())</td>
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
</tr>
|
|
|
77 |
#end
|
|
|
78 |
</tbody>
|
|
|
79 |
</table>
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|
|
|
82 |
</div>
|
|
|
83 |
</div>
|
|
|
84 |
<div class="modal-footer">
|
|
|
85 |
<button type="button" data-dismiss="modal" class="btn btn-default cancel-order-request">Cancel</button>
|
|
|
86 |
<button type="button" class="btn btn-default cancel-order-submit">Submit</button>
|
|
|
87 |
|
|
|
88 |
</div>
|