Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32132 amit.gupta 1
<div class="col-lg-12">
32143 amit.gupta 2
    <table id="brandwise-stock" class="table table-condensed table-bordered">
32132 amit.gupta 3
        <thead>
4
        <tr>
32158 amit.gupta 5
            <th rowspan="2">Brand</th>
32144 amit.gupta 6
            <th rowspan="2">Name</th>
7
            <th rowspan="2">Color</th>
8
            <th rowspan="2">Id</th>
32159 amit.gupta 9
            <th rowspan="2">Category</th>
32132 amit.gupta 10
            #foreach($entry in $warehouseMap.entrySet())
11
                <th style="text-align: center" colspan="4">$entry.getValue()</th>
12
            #end
13
        </tr>
14
        <tr>
15
            #foreach($entry in $warehouseMap.entrySet())
32158 amit.gupta 16
                <th>Avlbl</th>
17
                <th>Rsvd</th>
32132 amit.gupta 18
                <th>Intran</th>
19
                <th>Net</th>
20
            #end
21
        </tr>
22
        </thead>
23
        <tbody>
24
            #foreach($itemWarehouseEntry in $warehouseStockMap.entrySet())
25
            <tr>
32158 amit.gupta 26
                <td>$itemWarehouseEntry.getKey().getBrand()</td>
32140 amit.gupta 27
                <td>$itemWarehouseEntry.getKey().getModelName() $itemWarehouseEntry.getKey().getModelNumber()</td>
32132 amit.gupta 28
                <td>$itemWarehouseEntry.getKey().getColor()</td>
29
                <td>$itemWarehouseEntry.getKey().getItemId()</td>
32159 amit.gupta 30
                <td>$itemWarehouseEntry.getKey().getItemType()</td>
32132 amit.gupta 31
                #foreach($entry in $warehouseMap.entrySet())
32
                    #if($itemWarehouseEntry.getValue().get($entry.getKey()))
33
                        <td>$itemWarehouseEntry.getValue().get($entry.getKey()).getAvailability()</td>
34
                        <td>$itemWarehouseEntry.getValue().get($entry.getKey()).getReserved()</td>
35
                        <td>$itemWarehouseEntry.getValue().get($entry.getKey()).getInTransit()</td>
36
                        <td>$itemWarehouseEntry.getValue().get($entry.getKey()).getNetAvailability()</td>
37
                    #else
38
                        <td>0</td>
39
                        <td>0</td>
40
                        <td>0</td>
41
                        <td>0</td>
42
                    #end
43
                #end
44
            </tr>
45
            #end
46
        </tbody>
47
    </table>
48
</div>
49
 
50
<script type="text/javascript">
51
    var table = $('#brandwise-stock').DataTable({
52
        "scrollX": true,
32142 amit.gupta 53
        "scrollY": "600px",
32136 amit.gupta 54
        "fixedHeader": true,
32138 amit.gupta 55
        "bPaginate": false,
32132 amit.gupta 56
        "bLengthChange": true,
32158 amit.gupta 57
        "bFilter": true
32132 amit.gupta 58
    });
59
</script>