Subversion Repositories SmartDukaan

Rev

Rev 32159 | Rev 34180 | 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>
32230 amit.gupta 8
            <th rowspan="2">Focused</th>
9
            <th rowspan="2">Item Id</th>
32159 amit.gupta 10
            <th rowspan="2">Category</th>
32132 amit.gupta 11
            #foreach($entry in $warehouseMap.entrySet())
12
                <th style="text-align: center" colspan="4">$entry.getValue()</th>
13
            #end
14
        </tr>
15
        <tr>
16
            #foreach($entry in $warehouseMap.entrySet())
32158 amit.gupta 17
                <th>Avlbl</th>
32230 amit.gupta 18
                <th>Indent</th>
32132 amit.gupta 19
                <th>Intran</th>
20
                <th>Net</th>
21
            #end
22
        </tr>
23
        </thead>
24
        <tbody>
25
            #foreach($itemWarehouseEntry in $warehouseStockMap.entrySet())
26
            <tr>
32158 amit.gupta 27
                <td>$itemWarehouseEntry.getKey().getBrand()</td>
32140 amit.gupta 28
                <td>$itemWarehouseEntry.getKey().getModelName() $itemWarehouseEntry.getKey().getModelNumber()</td>
32132 amit.gupta 29
                <td>$itemWarehouseEntry.getKey().getColor()</td>
32230 amit.gupta 30
                <td>#if($itemWarehouseEntry.getKey().isFocused()) True
31
                #else False
32
                #end
33
                </td>
32132 amit.gupta 34
                <td>$itemWarehouseEntry.getKey().getItemId()</td>
32159 amit.gupta 35
                <td>$itemWarehouseEntry.getKey().getItemType()</td>
32132 amit.gupta 36
                #foreach($entry in $warehouseMap.entrySet())
37
                    #if($itemWarehouseEntry.getValue().get($entry.getKey()))
38
                        <td>$itemWarehouseEntry.getValue().get($entry.getKey()).getAvailability()</td>
39
                        <td>$itemWarehouseEntry.getValue().get($entry.getKey()).getReserved()</td>
40
                        <td>$itemWarehouseEntry.getValue().get($entry.getKey()).getInTransit()</td>
41
                        <td>$itemWarehouseEntry.getValue().get($entry.getKey()).getNetAvailability()</td>
42
                    #else
43
                        <td>0</td>
44
                        <td>0</td>
45
                        <td>0</td>
46
                        <td>0</td>
47
                    #end
48
                #end
49
            </tr>
50
            #end
51
        </tbody>
52
    </table>
53
</div>
54
 
55
<script type="text/javascript">
56
    var table = $('#brandwise-stock').DataTable({
57
        "scrollX": true,
32142 amit.gupta 58
        "scrollY": "600px",
32136 amit.gupta 59
        "fixedHeader": true,
32138 amit.gupta 60
        "bPaginate": false,
32132 amit.gupta 61
        "bLengthChange": true,
32158 amit.gupta 62
        "bFilter": true
32132 amit.gupta 63
    });
64
</script>