Subversion Repositories SmartDukaan

Rev

Rev 31306 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
31297 tejbeer 1
<section class="wrapper">
2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header"><i class="icon_document_alt"></i>Purchase</h3>
5
            <ol class="breadcrumb">
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
7
                <li><i class="icon_document_alt"></i>Purchase</li>
8
            </ol>
9
        </div>
10
    </div>
11
 
12
 
13
 
14
 
15
    <div class="row">
16
 
17
        <div class="col-lg-12">
18
            <table id="purchaseDetail" class="table table-striped table-advance table-hover" style="width:100%">
19
                <thead>
20
                <tr>
21
                    <th>Name</th>
31751 tejbeer 22
                    <th>Code</th>
31297 tejbeer 23
                    #foreach($ym in $yearMonth)
24
 
25
                    <th>$ym.format($dateYearMonthFormatter)</th>
26
                    #end
27
                     </tr>
28
                </thead>
29
                <tbody>
30
                    #foreach($name in $customRetailerMap.entrySet())
31
                    <tr>
32
                     <td>$name.getValue().getBusinessName()</td>
31751 tejbeer 33
                     <td>$name.getValue().getCode()</td>
31297 tejbeer 34
                    #foreach($ym in $yearMonth)
35
                     #if($partnerMonthPurchaseMap.get($name.getValue().getPartnerId()).get($ym))
31306 tejbeer 36
                    <td class="currency">$partnerMonthPurchaseMap.get($name.getValue().getPartnerId()).get($ym)</td>
31297 tejbeer 37
                    #else
38
                    <td>0</td>
39
                    #end
40
                    #end
41
 
42
                     </tr>
43
                    #end
44
                </tbody>
45
            </table>
46
        </div>
47
 
48
 
49
    </div>
50
 
51
 
52
 
53
 
54
 
55
</section>
56
 
57
 
58
 
59
<script type="text/javascript">
60
 
61
 
62
        var table = $('#purchaseDetail').DataTable({
63
            "lengthMenu": [10, 25, 50, 75, 100, 250, 1000],
64
            "scrollX": true,
65
 
66
            orderCellsTop: true,
67
            fixedHeader: true
68
        });
69
 
70
 
71
</script>
72
 
73
 
74
 
75
 
76
 
77
 
78