Subversion Repositories SmartDukaan

Rev

Rev 31304 | Rev 31306 | Go to most recent revision | 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>
22
                    #foreach($ym in $yearMonth)
23
 
24
                    <th>$ym.format($dateYearMonthFormatter)</th>
25
                    #end
26
                     </tr>
27
                </thead>
28
                <tbody>
29
                    #foreach($name in $customRetailerMap.entrySet())
30
                    <tr>
31
                     <td>$name.getValue().getBusinessName()</td>
32
                    #foreach($ym in $yearMonth)
33
                     #if($partnerMonthPurchaseMap.get($name.getValue().getPartnerId()).get($ym))
31305 tejbeer 34
                    <td class="currency">$math.roundTo(2,$partnerMonthPurchaseMap.get($name.getValue().getPartnerId()).get($ym))</td>
31297 tejbeer 35
                    #else
36
                    <td>0</td>
37
                    #end
38
                    #end
39
 
40
                     </tr>
41
                    #end
42
                </tbody>
43
            </table>
44
        </div>
45
 
46
 
47
    </div>
48
 
49
 
50
 
51
 
52
 
53
</section>
54
 
55
 
56
 
57
<script type="text/javascript">
58
 
59
 
60
        var table = $('#purchaseDetail').DataTable({
61
            "lengthMenu": [10, 25, 50, 75, 100, 250, 1000],
62
            "scrollX": true,
63
 
64
            orderCellsTop: true,
65
            fixedHeader: true
66
        });
67
 
68
 
69
</script>
70
 
71
 
72
 
73
 
74
 
75
 
76