Subversion Repositories SmartDukaan

Rev

Rev 34087 | Rev 34412 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34087 ranu 1
<style>
2
 
3
    h5 {
4
        text-align: center;
5
        background-color: lightgray;
6
        padding: 5px;
7
        font-size: 16px;
8
    }
9
 
10
    #brand-instock tr.hide-table-padding td {
11
        padding: 0;
12
    }
13
 
14
    .expand-button {
15
        position: relative;
16
    }
17
 
18
    .accordion-toggle .expand-button:after {
19
        position: absolute;
20
        left: .75rem;
21
        top: 50%;
22
        transform: translate(0, -50%);
23
        content: '-';
24
    }
25
 
26
    .accordion-toggle.collapsed .expand-button:after {
27
        content: '+';
28
    }
29
 
30
    .tab-inactive {
31
        background-color: #cccccc47;
32
        border-radius: 4px;
33
    }
34
 
35
</style>
36
 
37
 
38
 
39
#if($brand != "undefined")
34384 ranu 40
<div class="container-fluid">
34087 ranu 41
 
34384 ranu 42
    <div class="row">
43
        <hr style="border-top: 2px solid #ccc">
44
        <div class="panel-group">
45
            <div class="panel panel-default">
46
                <a href="#collapse1" data-toggle="collapse">
47
                    <div class="panel-heading">
48
                        <h4 class="panel-title">In Stock</h4>
49
                    </div>
50
                </a>
51
                <div id="collapse1" class="panel-collapse collapse">
34087 ranu 52
 
34384 ranu 53
                    <div style="border-top: 1px solid rgba(204,204,204,0.81);">
54
                        <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover"
55
                               style="width:100%">
56
                            <thead>
57
                            <tr>
58
                                <th>Item</th>
59
                                <th>Qty</th>
34087 ranu 60
 
34384 ranu 61
                            </tr>
62
                            </thead>
63
                            <tbody>
34087 ranu 64
 
34384 ranu 65
                                #foreach($inStock in $inStocks)
34087 ranu 66
                                <tr>
34384 ranu 67
                                    <td>$inStock.getItemDescription()</td>
68
                                    <td>$inStock.getQty()</td>
34087 ranu 69
 
70
                                </tr>
71
 
34384 ranu 72
                                #end
34087 ranu 73
 
34384 ranu 74
                            </tbody>
75
                        </table>
34087 ranu 76
 
34384 ranu 77
                    </div>
78
                </div>
79
            </div>
80
        </div>
34087 ranu 81
    </div>
82
</div>
34384 ranu 83
    ##
84
    ##
85
    ##<div class="row">
86
    ##    <div class="col-lg-12">
87
    ##
88
    ##        <h5> Grn Pending </h5>
89
    ##        <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
90
    ##            <thead>
91
    ##            <tr>
92
    ##                <th>Item</th>
93
    ##                <th>Qty</th>
94
    ##
95
    ##            </tr>
96
    ##            </thead>
97
    ##            <tbody>
98
    ##
99
    ##                #foreach($grnPending in $grnPendings)
100
    ##                <tr>
101
    ##                    <td>$grnPending.getItemDescription()</td>
102
    ##                    <td>$grnPending.getQty()</td>
103
    ##
104
    ##                </tr>
105
    ##
106
    ##                #end
107
    ##
108
    ##            </tbody>
109
    ##        </table>
110
    ##    </div>
111
    ##</div>
34087 ranu 112
 
113
 
34384 ranu 114
    ##<div class="row">
115
    ##    <div class="col-lg-12">
116
    ##
117
    ##        <h5> Pending Indent </h5>
118
    ##        <table id="itemwiseshortagestock" class="table table-striped table-advance table-hover" style="width:100%">
119
    ##            <thead>
120
    ##            <tr>
121
    ##                <th>Item</th>
122
    ##                <th>Qty</th>
123
    ##
124
    ##            </tr>
125
    ##            </thead>
126
    ##            <tbody>
127
    ##
128
    ##                #foreach($pendingIndent in $pendingIndents)
129
    ##                <tr>
130
    ##                    <td>$pendingIndent.getItemDescription()</td>
131
    ##                    <td>$pendingIndent.getQty()</td>
132
    ##
133
    ##                </tr>
134
    ##
135
    ##                #end
136
    ##
137
    ##            </tbody>
138
    ##        </table>
139
    ##    </div>
140
    ##</div>
141
    ##</div>
34087 ranu 142
 
34384 ranu 143
#else
34087 ranu 144
 
145
 
34384 ranu 146
    ##<div class="row">
147
    ##    <div class="col-lg-12">
148
    ##        <h5> Focused Model </h5>
149
    ##        <table class="table  table-advance" id="brand-focused">
150
    ##            <tbody>
151
    ##            <tr>
152
    ##                <th>#</th>
153
    ##                <th>Brand</th>
154
    ##
155
    ##            </tr>
156
    ##                #set($index = 0)
157
    ##
158
    ##                #foreach($focused in $focusedModelShortageBrandMap.entrySet())
159
    ##
160
    ##                <tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1"
161
    ##                    href="#focused-$index">
162
    ##                    <td class="expand-button"></td>
163
    ##                    <td>$focused.getKey()</td>
164
    ##
165
    ##                </tr>
166
    ##
167
    ##
168
    ##                <tr class="hide-table-padding">
169
    ##                    <td></td>
170
    ##                    <td colspan="3">
171
    ##                        <div class="collapse p-3" id="focused-$index">
172
    ##                            <table class="table  table-advance">
173
    ##                                <tbody>
174
    ##                                <tr>
175
    ##                                    <th>Item</th>
176
    ##                                    <th>Pending Indent</th>
177
    ##                                    <th>In Stock</th>
178
    ##                                    <th>Shortage Qty</th>
179
    ##                                    <th>Availability</th>
180
    ##
181
    ##                                </tr>
182
    ##
183
    ##                                    #foreach($item in $focused.getValue())
184
    ##
185
    ##
186
    ##                                    <tr>
187
    ##                                        <td>$item.getBrandName() $item.getModelName()  $item.getModelNumber() </td>
188
    ##                                        <td>$item.getPendingIndentQty()</td>
189
    ##
190
    ##
191
    ##                                        #if($item.getShortageQty() > $item.getGrnStockQty())
192
    ##                                            <td style="color:red">$item.getGrnStockQty()</td>
193
    ##                                        #else
194
    ##                                            <td>$item.getGrnStockQty()</td>
195
    ##                                        #end
196
    ##
197
    ##                                        #if($item.getShortageQty() > 0 )
198
    ##                                            <td>$item.getShortageQty()</td>
199
    ##                                        #else
200
    ##                                            <td>0</td>
201
    ##                                        #end
202
    ##                                        <td>$item.getAvailabitiy()</td>
203
    ##
204
    ##                                    </tr>
205
    ##
206
    ##
207
    ##                                    #end
208
    ##
209
    ##
210
    ##                                </tbody>
211
    ##                            </table>
212
    ##                        </div>
213
    ##                    </td>
214
    ##
215
    ##
216
    ##                </tr>
217
    ##                    #set($index=$index+1)
218
    ##                #end
219
    ##
220
    ##
221
    ##            </tbody>
222
    ##        </table>
223
    ##
224
    ##    </div>
225
    ##</div>
34087 ranu 226
 
227
<div class="row">
228
    <div class="col-lg-12">
34384 ranu 229
        <h5>
230
            <a data-toggle="collapse" href="#inStockCollapse" role="button" aria-expanded="false"
231
               aria-controls="inStockCollapse">
232
                In Stock
233
            </a>
234
        </h5>
34087 ranu 235
 
34384 ranu 236
        <div class="collapse" id="inStockCollapse">
237
            <table class="table table-advance" id="brand-instock">
238
                <tbody>
239
                <tr>
240
                    <th>#</th>
241
                    <th>Brand</th>
34087 ranu 242
                </tr>
34384 ranu 243
                    #set($index = 0)
244
                    #foreach($brand in $inStockBrandMap.entrySet())
245
                    <tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse"
246
                        data-parent="#accordion1"
247
                        href="#brand-$index">
248
                        <td class="expand-button"></td>
249
                        <td>$brand.getKey()</td>
250
                    </tr>
34087 ranu 251
 
34384 ranu 252
                    <tr class="hide-table-padding">
253
                        <td></td>
254
                        <td colspan="3">
255
                            <div class="collapse p-3" id="brand-$index">
256
                                <table class="table table-advance">
257
                                    <tbody>
34087 ranu 258
                                    <tr>
34384 ranu 259
                                        <th width="36%">Item</th>
260
                                        <th>Quantity</th>
34087 ranu 261
                                    </tr>
34384 ranu 262
                                        #foreach($items in $brand.getValue())
263
                                        <tr>
264
                                            <td>$items.getItemDescription()</td>
265
                                            <td>$items.getQty()</td>
266
                                        </tr>
267
                                        #end
268
                                    </tbody>
269
                                </table>
270
                            </div>
271
                        </td>
272
                    </tr>
273
                        #set($index = $index + 1)
274
                    #end
275
                </tbody>
276
            </table>
277
        </div>
34087 ranu 278
    </div>
279
</div>
280
 
281
 
282
 
34384 ranu 283
    ##<div class="row">
284
    ##    <div class="col-lg-12">
285
    ##        <h5> Grn Pending </h5>
286
    ##        <table class="table  table-advance" id="brand-grn">
287
    ##            <tbody>
288
    ##            <tr>
289
    ##                <th>#</th>
290
    ##                <th>Brand</th>
291
    ##
292
    ##            </tr>
293
    ##                #set($index = 0)
294
    ##
295
    ##                #foreach($grnpending in $grnPendingBrandMap.entrySet())
296
    ##
297
    ##                <tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1"
298
    ##                    href="#grn-$index">
299
    ##                    <td class="expand-button"></td>
300
    ##                    <td>$grnpending.getKey()</td>
301
    ##
302
    ##                </tr>
303
    ##
304
    ##
305
    ##                <tr class="hide-table-padding">
306
    ##                    <td></td>
307
    ##                    <td colspan="3">
308
    ##                        <div class="collapse p-3" id="grn-$index">
309
    ##                            <table class="table  table-advance">
310
    ##                                <tbody>
311
    ##                                <tr>
312
    ##                                    <th width="36%">Item</th>
313
    ##                                    <th>Quantity</th>
314
    ##
315
    ##                                </tr>
316
    ##
317
    ##                                    #foreach($items in $grnpending.getValue())
318
    ##
319
    ##                                    <tr>
320
    ##                                        <td>$items.getItemDescription()</td>
321
    ##                                        <td>$items.getQty()</td>
322
    ##
323
    ##                                    </tr>
324
    ##                                    #end
325
    ##
326
    ##
327
    ##                                </tbody>
328
    ##                            </table>
329
    ##                        </div>
330
    ##                    </td>
331
    ##
332
    ##
333
    ##                </tr>
334
    ##                    #set($index=$index+1)
335
    ##                #end
336
    ##
337
    ##
338
    ##            </tbody>
339
    ##        </table>
340
    ##
341
    ##    </div>
342
    ##</div>
34087 ranu 343
 
344
 
34384 ranu 345
    ##<div class="row">
346
    ##    <div class="col-lg-12">
347
    ##        <h5> Pending Indent </h5>
348
    ##        <table class="table  table-advance" id="brand-pending">
349
    ##            <tbody>
350
    ##            <tr>
351
    ##                <th>#</th>
352
    ##                <th>Brand</th>
353
    ##
354
    ##            </tr>
355
    ##                #set($index = 0)
356
    ##
357
    ##                #foreach($pendingIndent in $pendingIndentBrandMap.entrySet())
358
    ##
359
    ##                <tr class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1"
360
    ##                    href="#pending-$index">
361
    ##                    <td class="expand-button"></td>
362
    ##                    <td>$pendingIndent.getKey()</td>
363
    ##
364
    ##                </tr>
365
    ##
366
    ##
367
    ##                <tr class="hide-table-padding">
368
    ##                    <td></td>
369
    ##                    <td colspan="3">
370
    ##                        <div class="collapse p-3" id="pending-$index">
371
    ##                            <table class="table  table-advance">
372
    ##                                <tbody>
373
    ##                                <tr>
374
    ##                                    <th width="36%">Item</th>
375
    ##                                    <th>Quantity</th>
376
    ##
377
    ##                                </tr>
378
    ##
379
    ##                                    #foreach($items in $pendingIndent.getValue())
380
    ##
381
    ##                                    <tr>
382
    ##                                        <td>$items.getItemDescription()</td>
383
    ##                                        <td>$items.getQty()</td>
384
    ##
385
    ##                                    </tr>
386
    ##                                    #end
387
    ##
388
    ##
389
    ##                                </tbody>
390
    ##                            </table>
391
    ##                        </div>
392
    ##                    </td>
393
    ##
394
    ##
395
    ##                </tr>
396
    ##                    #set($index=$index+1)
397
    ##                #end
398
    ##
399
    ##
400
    ##            </tbody>
401
    ##        </table>
402
    ##
403
    ##    </div>
404
    ##</div>
34087 ranu 405
#end