| 28377 |
tejbeer |
1 |
<style>
|
|
|
2 |
.btn:hover, .btn:focus {
|
|
|
3 |
color: grey;
|
|
|
4 |
text-decoration: none;
|
|
|
5 |
}
|
|
|
6 |
|
|
|
7 |
.modal-dialog.modal-lg {
|
|
|
8 |
left: 10%;
|
|
|
9 |
right: auto;
|
|
|
10 |
width: 80%;
|
|
|
11 |
}
|
|
|
12 |
|
|
|
13 |
.modal-content {
|
|
|
14 |
background: white;
|
|
|
15 |
}
|
|
|
16 |
|
|
|
17 |
.border-highlight {
|
|
|
18 |
border: 3px solid red;
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
td.highlight {
|
|
|
22 |
background-color: yellowgreen !important;
|
|
|
23 |
}
|
|
|
24 |
</style>
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
<section class="wrapper">
|
|
|
28 |
<div class="row">
|
|
|
29 |
<div class="col-lg-12">
|
|
|
30 |
<h3 class="page-header">
|
|
|
31 |
<i class="icon_document_alt"></i>All Online Order
|
|
|
32 |
</h3>
|
|
|
33 |
<ol class="breadcrumb">
|
|
|
34 |
<li><i class="fa fa-home"></i><a
|
|
|
35 |
href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
36 |
<li><i class="icon_document_alt"></i>All Online Order</li>
|
|
|
37 |
</ol>
|
|
|
38 |
</div>
|
|
|
39 |
</div>
|
|
|
40 |
|
|
|
41 |
<div class="row">
|
|
|
42 |
<div class="col-lg-2 form-group">
|
|
|
43 |
|
|
|
44 |
<div class="input-group">
|
|
|
45 |
<input type="date" class="form-control order-date" value="$date" />
|
|
|
46 |
</div>
|
|
|
47 |
</div>
|
|
|
48 |
|
|
|
49 |
<div class="col-lg-2 form-group">
|
|
|
50 |
<div class="input-group">
|
|
|
51 |
|
|
|
52 |
<button class="btn btn-primary all-online-order" type="button">
|
|
|
53 |
Submit</button>
|
|
|
54 |
|
|
|
55 |
</div>
|
|
|
56 |
</div>
|
|
|
57 |
</div>
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
<div id="pending-order-table">
|
|
|
63 |
<div class="row">
|
|
|
64 |
<div class="col-lg-12">
|
|
|
65 |
|
|
|
66 |
<table class="table table-border table-condensed table-bordered"
|
|
|
67 |
id="pending-order-item">
|
|
|
68 |
<thead>
|
|
|
69 |
<tr>
|
|
|
70 |
<th>OrderId</th>
|
|
|
71 |
<th>First Name</th>
|
|
|
72 |
<th>Last Name</th>
|
|
|
73 |
<th>Mobile</th>
|
|
|
74 |
<th>Order Status</th>
|
|
|
75 |
<th>Partner</th>
|
|
|
76 |
<th>Pay Method</th>
|
|
|
77 |
<th>Pay Mode</th>
|
|
|
78 |
<th>Order Item Id</th>
|
|
|
79 |
<th>Item Id</th>
|
|
|
80 |
<th>Item Details</th>
|
|
|
81 |
<th>Selling Price</th>
|
|
|
82 |
<th>Order Item Status</th>
|
|
|
83 |
<th>Created on</th>
|
|
|
84 |
<th>Verified On</th>
|
|
|
85 |
<th>Billed On</th>
|
|
|
86 |
<th>Delivered On</th>
|
|
|
87 |
<th>Remarks</th>
|
|
|
88 |
<th>Availability</th>
|
|
|
89 |
<th>Cancelled on</th>
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
</tr>
|
|
|
93 |
</thead>
|
|
|
94 |
<tbody>
|
|
|
95 |
#if(!$pendingOrderItem.isEmpty()) #foreach( $request in
|
|
|
96 |
$pendingOrderItem)
|
|
|
97 |
<tr class="pendingOrder" data="$request.getItemId()">
|
|
|
98 |
<td>$request.getOrderId()</td>
|
|
|
99 |
<td>$request.getPendingOrder().getCustomerAddress().getName()</td>
|
|
|
100 |
<td>$request.getPendingOrder().getCustomerAddress().getLastName()</td>
|
|
|
101 |
<td>$request.getPendingOrder().getCustomerAddress().getPhoneNumber()</td>
|
|
|
102 |
<td>$request.getPendingOrder().getStatus()</td>
|
|
|
103 |
#if($customRetailersMap.get($request.getPendingOrder().getFofoId()))
|
|
|
104 |
<td>$customRetailersMap.get($request.getPendingOrder().getFofoId()).getBusinessName()</td>
|
|
|
105 |
#else
|
|
|
106 |
<td></td> #end
|
|
|
107 |
<td>$request.getPendingOrder().getPayMethodDescription()</td>
|
|
|
108 |
#if($request.getPendingOrder().getTotalAmount() ==
|
|
|
109 |
$request.getPendingOrder().getPaidAmount())
|
|
|
110 |
<td>ONLINE</td> #else
|
|
|
111 |
<td>OFFLINE</td> #end
|
|
|
112 |
|
|
|
113 |
<td>$request.getId()</td>
|
|
|
114 |
<td>$request.getItemId()</td>
|
|
|
115 |
<td>$request.getItemName()</td>
|
|
|
116 |
<td>$request.getSellingPrice()</td>
|
|
|
117 |
<td>$request.getStatus()</td>
|
|
|
118 |
<td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
|
|
|
119 |
#if($request.getVerifiedTimestamp())
|
|
|
120 |
<td>$request.getVerifiedTimestamp().format($dateTimeFormatter)</td>
|
|
|
121 |
#else
|
|
|
122 |
<td></td> #end #if($request.getBilledTimestamp())
|
|
|
123 |
<td>$request.getBilledTimestamp().format($dateTimeFormatter)</td>
|
|
|
124 |
#else
|
|
|
125 |
<td></td> #end #if($request.getDeliveredTimestamp())
|
|
|
126 |
<td>$request.getDeliveredTimestamp().format($dateTimeFormatter)</td>
|
|
|
127 |
#else
|
|
|
128 |
<td></td> #end #if($request.getRemark())
|
|
|
129 |
<td>$request.getRemark()</td> #else
|
|
|
130 |
<td></td> #end
|
|
|
131 |
#if($partnerInventoryMap.get($request.getPendingOrder().getFofoId()).get($request.getItemId()).getAvailability()>0)
|
|
|
132 |
<td>$partnerInventoryMap.get($request.getPendingOrder().getFofoId()).get($request.getItemId()).getAvailability()
|
|
|
133 |
</td> #else
|
|
|
134 |
<td>out of stock</td> #end #if($request.getCancelledTimestamp())
|
|
|
135 |
<td>$request.getCancelledTimestamp().format($dateTimeFormatter)</td>
|
|
|
136 |
#else
|
|
|
137 |
<td></td> #end
|
|
|
138 |
</tr>
|
|
|
139 |
#end
|
|
|
140 |
<script type="text/javascript">
|
|
|
141 |
$(document).ready(function() {
|
|
|
142 |
$('#pending-order-item').dataTable({
|
|
|
143 |
"scrollX" : true,
|
|
|
144 |
"scrollCollapse" : true
|
|
|
145 |
|
|
|
146 |
});
|
|
|
147 |
});
|
|
|
148 |
</script>
|
|
|
149 |
#else
|
|
|
150 |
<tr>
|
|
|
151 |
<td colspan="12" style="text-align: center;">NO MATCHING
|
|
|
152 |
DATA FOUND FOR CRITERIA</td>
|
|
|
153 |
</tr>
|
|
|
154 |
#end
|
|
|
155 |
</tbody>
|
|
|
156 |
</table>
|
|
|
157 |
</div>
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
</div>
|
|
|
163 |
</div>
|
|
|
164 |
|
|
|
165 |
</section>
|