| 27723 |
tejbeer |
1 |
|
|
|
2 |
<section class="wrapper">
|
|
|
3 |
<div class="row">
|
|
|
4 |
<div class="col-lg-12">
|
|
|
5 |
<h3 class="page-header"><i class="icon_document_alt"></i>Inventory</h3>
|
|
|
6 |
<ol class="breadcrumb">
|
|
|
7 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
8 |
<li><i class="icon_document_alt"></i>Inventory</li>
|
|
|
9 |
</ol>
|
|
|
10 |
</div>
|
|
|
11 |
</div>
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
<table style="Width:100%; margin:15px">
|
|
|
15 |
<tr>
|
|
|
16 |
<td style="Width:40%; float:left">
|
|
|
17 |
<div class = "row">
|
|
|
18 |
<div class="col-lg-6">
|
|
|
19 |
<div class="input-group">
|
|
|
20 |
<select class="form-control input-sm" id = "warehouseMap" name="warehouseMap" placeholder="Warehouse">
|
|
|
21 |
<option value="" disabled selected>Warehouse</option>
|
|
|
22 |
#if($warehouseId.contains(0))
|
|
|
23 |
<option value="0" selected>All</option>
|
|
|
24 |
#else
|
|
|
25 |
<option value="0">All</option>
|
|
|
26 |
#end
|
|
|
27 |
#foreach($wm in $warehouseMap.entrySet()))
|
|
|
28 |
#if($warehouseId.contains($wm.getKey()) && !$warehouseId.contains(0))
|
|
|
29 |
<option value="$wm.getKey()" selected>$wm.getValue()</option>
|
|
|
30 |
#else
|
|
|
31 |
<option value="$wm.getKey()">$wm.getValue()</option>
|
|
|
32 |
#end
|
|
|
33 |
#end
|
|
|
34 |
</select>
|
|
|
35 |
<span class="input-group-btn">
|
|
|
36 |
<button class="btn btn-primary submit" id="warehouse-wise-billing" type="button">Go!</button>
|
|
|
37 |
</span>
|
|
|
38 |
</div>
|
|
|
39 |
</div>
|
|
|
40 |
</div>
|
|
|
41 |
</td>
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
</tr>
|
|
|
45 |
</table>
|
|
|
46 |
<div class="row">
|
|
|
47 |
<div class="col-lg-6">
|
|
|
48 |
|
|
|
49 |
<div class="row col-lg-3">
|
|
|
50 |
<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Open PO</strong></h3>
|
|
|
51 |
</div>
|
| 27738 |
tejbeer |
52 |
<table class="table table-striped table-advance table-hover" id ="openpo">
|
| 27723 |
tejbeer |
53 |
<tbody>
|
|
|
54 |
<tr>
|
|
|
55 |
<th>Brand</th>
|
|
|
56 |
<th>today Qty</th>
|
|
|
57 |
<th>today</th>
|
|
|
58 |
<th>3 Days Qty</th>
|
|
|
59 |
<th>3 Days</th>
|
|
|
60 |
<th>7 Days Qty</th>
|
|
|
61 |
<th>7 Days</th>
|
|
|
62 |
</tr>
|
|
|
63 |
#foreach($po in $openPO)
|
|
|
64 |
<tr onclick="">
|
|
|
65 |
<td>$po.getBrand()</td>
|
| 27738 |
tejbeer |
66 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$po.getBrand()" class="currency openpodays">$po.getTodayQty()</td>
|
|
|
67 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$po.getBrand()" class="currency openpodays">$po.getTodayValue()</td>
|
|
|
68 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$po.getBrand()" class="currency openpodays">$po.getThreedaysQty()</td>
|
|
|
69 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$po.getBrand()" class="currency openpodays">$po.getThreedaysValue()</td>
|
|
|
70 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "7" data-brand = "$po.getBrand()" class="currency openpodays">$po.getSevendaysQty()</td>
|
|
|
71 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "7" data-brand = "$po.getBrand()" class="currency openpodays">$po.getSevendaysValue()</td>
|
| 27723 |
tejbeer |
72 |
</tr>
|
|
|
73 |
#end
|
|
|
74 |
|
|
|
75 |
</tbody>
|
|
|
76 |
</table>
|
|
|
77 |
|
|
|
78 |
<div class="row col-lg-3">
|
|
|
79 |
<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Our Purchase</strong></h3>
|
|
|
80 |
</div>
|
| 27738 |
tejbeer |
81 |
<table class="table table-striped table-advance table-hover" id ="openpurchase">
|
| 27723 |
tejbeer |
82 |
<tbody>
|
|
|
83 |
<tr>
|
|
|
84 |
<th>Brand</th>
|
|
|
85 |
<th>today Qty</th>
|
|
|
86 |
<th>today</th>
|
|
|
87 |
<th>3 Days Qty</th>
|
|
|
88 |
<th>3 Days</th>
|
| 27748 |
tejbeer |
89 |
<th>Lms Qty</th>
|
|
|
90 |
<th>Lms</th>
|
| 27723 |
tejbeer |
91 |
<th>MTD Qty</th>
|
|
|
92 |
<th>MTD</th>
|
|
|
93 |
|
|
|
94 |
</tr>
|
|
|
95 |
#foreach($pur in $purchase)
|
|
|
96 |
<tr onclick="">
|
|
|
97 |
<td>$pur.getBrand()</td>
|
| 27738 |
tejbeer |
98 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getTodayQty()</td>
|
|
|
99 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getTodayValue()</td>
|
|
|
100 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getThreedaysQty()</td>
|
|
|
101 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getThreedaysValue()</td>
|
| 27748 |
tejbeer |
102 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "-1" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getLmsQty()</td>
|
|
|
103 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "-1" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getLms()</td>
|
| 27738 |
tejbeer |
104 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getMtdQty()</td>
|
|
|
105 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$pur.getBrand()" class="currency openpurchasedays">$pur.getMtd()</td>
|
| 27723 |
tejbeer |
106 |
</tr>
|
|
|
107 |
#end
|
|
|
108 |
|
|
|
109 |
</tbody>
|
|
|
110 |
</table>
|
|
|
111 |
</div>
|
|
|
112 |
|
|
|
113 |
<div class="col-lg-6">
|
|
|
114 |
<div class="row col-lg-4">
|
|
|
115 |
<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Secondary Billing</strong></h3>
|
|
|
116 |
</div>
|
| 27738 |
tejbeer |
117 |
<table class="table table-striped table-advance table-hover" id ="secondaryBillingtable">
|
| 27723 |
tejbeer |
118 |
<tbody>
|
|
|
119 |
<tr>
|
|
|
120 |
<th>Brand</th>
|
|
|
121 |
<th>today Qty</th>
|
|
|
122 |
<th>today</th>
|
|
|
123 |
<th>3 Days Qty</th>
|
|
|
124 |
<th>3 Days</th>
|
| 27748 |
tejbeer |
125 |
<th>LMS Qty</th>
|
|
|
126 |
<th>LMS</th>
|
| 27723 |
tejbeer |
127 |
<th>MTD Qty</th>
|
|
|
128 |
<th>MTD</th>
|
|
|
129 |
<th>LMTD Qty</th>
|
|
|
130 |
<th>LMTD</th>
|
|
|
131 |
|
|
|
132 |
</tr>
|
| 27724 |
tejbeer |
133 |
|
|
|
134 |
#foreach($bill in $billing)
|
| 27723 |
tejbeer |
135 |
<tr onclick="">
|
| 27724 |
tejbeer |
136 |
<td>$bill.getBrand()</td>
|
| 27738 |
tejbeer |
137 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getTodayQty()</td>
|
|
|
138 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getTodayValue()</td>
|
|
|
139 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getThreedaysQty()</td>
|
|
|
140 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getThreedaysValue()</td>
|
| 27748 |
tejbeer |
141 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "-1" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getLmsQty()</td>
|
|
|
142 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "-1" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getLms()</td>
|
| 27738 |
tejbeer |
143 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getMtdQty()</td>
|
|
|
144 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getMtd()</td>
|
|
|
145 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "2" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getLmtdQty()</td>
|
|
|
146 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "2" data-brand = "$bill.getBrand()" class="currency secondaryBilling">$bill.getLmtd()</td>
|
| 27724 |
tejbeer |
147 |
</tr>
|
|
|
148 |
#end
|
|
|
149 |
|
| 27723 |
tejbeer |
150 |
|
|
|
151 |
</tbody>
|
|
|
152 |
</table>
|
|
|
153 |
|
|
|
154 |
<div class="row col-lg-3">
|
|
|
155 |
<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Partner Tertairy</strong></h3>
|
|
|
156 |
</div>
|
| 27738 |
tejbeer |
157 |
<table class="table table-striped table-advance table-hover" id ="tertiaryTable">
|
| 27723 |
tejbeer |
158 |
<tbody>
|
|
|
159 |
<tr>
|
|
|
160 |
<th>Brand</th>
|
|
|
161 |
<th>today Qty</th>
|
|
|
162 |
<th>today</th>
|
|
|
163 |
<th>3 Days Qty</th>
|
|
|
164 |
<th>3 Days</th>
|
| 27748 |
tejbeer |
165 |
<th>LMS Qty</th>
|
|
|
166 |
<th>LMS</th>
|
| 27723 |
tejbeer |
167 |
<th>MTD Qty</th>
|
|
|
168 |
<th>MTD</th>
|
|
|
169 |
<th>LMTD Qty</th>
|
|
|
170 |
<th>LMTD</th>
|
|
|
171 |
|
|
|
172 |
</tr>
|
| 27724 |
tejbeer |
173 |
#foreach($ter in $tertiary)
|
| 27723 |
tejbeer |
174 |
<tr onclick="">
|
| 27724 |
tejbeer |
175 |
<td>$ter.getBrand()</td>
|
| 27738 |
tejbeer |
176 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getTodayQty()</td>
|
|
|
177 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "0" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getTodayValue()</td>
|
|
|
178 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getThreedaysQty()</td>
|
|
|
179 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "3" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getThreedaysValue()</td>
|
| 27748 |
tejbeer |
180 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "-1" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getLmsQty()</td>
|
|
|
181 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "-1" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getLms()</td>
|
|
|
182 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getMtdQty()</td>
|
| 27738 |
tejbeer |
183 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "1" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getMtd()</td>
|
|
|
184 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "2" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getLmtdQty()</td>
|
|
|
185 |
<td data-toggle="modal" data-toggle="modal" data-target="#inventoryListingModel" data-time = "2" data-brand = "$ter.getBrand()" class="currency tertBilling">$ter.getLmtd()</td>
|
| 27724 |
tejbeer |
186 |
</tr>
|
|
|
187 |
#end
|
| 27723 |
tejbeer |
188 |
</tbody>
|
|
|
189 |
</table>
|
|
|
190 |
|
|
|
191 |
</div>
|
|
|
192 |
</div>
|
|
|
193 |
|
| 27738 |
tejbeer |
194 |
|
|
|
195 |
<div id="inventoryListingModel" class="modal" role="dialog">
|
|
|
196 |
<div class="modal-dialog">
|
|
|
197 |
<div class="modal-content">
|
|
|
198 |
|
|
|
199 |
</div>
|
|
|
200 |
</div>
|
|
|
201 |
</div>
|
|
|
202 |
|
|
|
203 |
<script>
|
|
|
204 |
$('#openpo').on('click', '.openpodays', function(){
|
|
|
205 |
console.log("Hello")
|
|
|
206 |
|
|
|
207 |
var timeValue = $(this).data('time');
|
| 27748 |
tejbeer |
208 |
var brand = [];
|
|
|
209 |
brand.push($(this).data('brand'));
|
| 27738 |
tejbeer |
210 |
var warehouseId = $('#warehouseMap').val()
|
|
|
211 |
|
|
|
212 |
doGetAjaxRequestHandler(context + "/getOpenPoItemByBrand?timeValue="
|
|
|
213 |
+ timeValue+ "&brand="+brand +"&warehouseIds="+warehouseId, function(response) {
|
|
|
214 |
|
|
|
215 |
$('#inventoryListingModel .modal-content').html(response);
|
|
|
216 |
|
|
|
217 |
});
|
|
|
218 |
});
|
|
|
219 |
|
|
|
220 |
|
|
|
221 |
$('#openpurchase').on('click', '.openpurchasedays', function(){
|
|
|
222 |
console.log("Hello")
|
|
|
223 |
|
|
|
224 |
var timeValue = $(this).data('time');
|
|
|
225 |
|
|
|
226 |
var brand = $(this).data('brand');
|
|
|
227 |
var warehouseId = $('#warehouseMap').val()
|
|
|
228 |
|
|
|
229 |
doGetAjaxRequestHandler(context + "/getOurPurchaseItemByBrand?timeValue="
|
|
|
230 |
+ timeValue+ "&brand="+brand +"&warehouseIds="+warehouseId, function(response) {
|
|
|
231 |
|
|
|
232 |
$('#inventoryListingModel .modal-content').html(response);
|
|
|
233 |
|
|
|
234 |
});
|
|
|
235 |
});
|
|
|
236 |
|
|
|
237 |
$('#secondaryBillingtable').on('click', '.secondaryBilling', function(){
|
|
|
238 |
console.log("Hello")
|
|
|
239 |
|
|
|
240 |
var timeValue = $(this).data('time');
|
|
|
241 |
|
|
|
242 |
var brand = $(this).data('brand');
|
|
|
243 |
var warehouseId = $('#warehouseMap').val()
|
|
|
244 |
|
|
|
245 |
doGetAjaxRequestHandler(context + "/getSecondaryBillingItemByBrand?timeValue="
|
|
|
246 |
+ timeValue+ "&brand="+brand +"&warehouseIds="+warehouseId, function(response) {
|
|
|
247 |
|
|
|
248 |
$('#inventoryListingModel .modal-content').html(response);
|
|
|
249 |
|
|
|
250 |
});
|
|
|
251 |
});
|
|
|
252 |
|
|
|
253 |
$('#tertiaryTable').on('click', '.tertBilling', function(){
|
|
|
254 |
console.log("Hello")
|
|
|
255 |
|
|
|
256 |
var timeValue = $(this).data('time');
|
|
|
257 |
|
|
|
258 |
var brand = $(this).data('brand');
|
|
|
259 |
var warehouseId = $('#warehouseMap').val()
|
|
|
260 |
|
|
|
261 |
doGetAjaxRequestHandler(context + "/getPartnerTertiaryItemByBrand?timeValue="
|
|
|
262 |
+ timeValue+ "&brand="+brand +"&warehouseIds="+warehouseId, function(response) {
|
|
|
263 |
|
|
|
264 |
$('#inventoryListingModel .modal-content').html(response);
|
|
|
265 |
|
|
|
266 |
});
|
|
|
267 |
});
|
|
|
268 |
|
|
|
269 |
</script>
|
|
|
270 |
</section>
|