Subversion Repositories SmartDukaan

Rev

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