Subversion Repositories SmartDukaan

Rev

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