Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
33092 tejus.loha 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>#springMessage(
5
                "reportswalletstatement.walletstatement")</h3>
6
            <ol class="breadcrumb">
7
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage(
8
                    "reportswalletstatement.home")</a></li>
9
                <li><i class="icon_document_alt"></i>#springMessage("reportswalletstatement.walletstatement")</li>
10
            </ol>
11
        </div>
12
    </div>
13
    <div class="row col-lg-12" style="float: right;">
14
 
15
 
16
        #if($isAdmin)
17
            #set($counter =0)
18
            #foreach($walletSummart in $walletSummartList )
19
                #if($counter==1)
20
                    #break
21
                #end
22
                <h2 style="color:red;margin-top: 20px;margin-bottom: 10px;margin-left:auto">
23
                    $walletSummart.getCode() - $walletSummart.getName()(
24
                    $walletSummart.getPhone()-$walletSummart.getEmail()
25
                    )
26
                </h2>
27
                #set($counter =$counter+1)
28
            #end
29
            <div class="row col-lg-12" style="float: right;">
30
                <div class="col-lg-2">
31
                    <div class="input-group">
32
                        <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
33
                               id="typeaheadpartner"
34
                               name="Item" data-provide="typeahead" autocomplete="off"
35
                               style="margin-bottom: 10px;margin-left: -9px"> <input id="partnerId"
36
                                                                                     type="hidden">
37
                        <br>
38
                    </div>
39
                </div>
40
            </div>
41
        #end
42
        #springMessage("reportswalletstatement.from") <input type="date" id="startDate-wallet-summary-report"
43
                                                             placeholder="" name="" value="$startDate">
44
 
45
        #springMessage("reportswalletstatement.to") <input type="date" id="endDate-wallet-summary-report" placeholder=""
46
                                                           value="$endDate">
47
        <button type="submit" class="wallet-summary-fetch-report">Fetch Report</button>
48
        <button type="submit" class="download-wallet-summary-report">#springMessage(
49
            "reportswalletstatement.downloadreport") </button>
50
 
51
    </div>
52
 
53
 
30164 manish 54
    <div class="col-lg-12">
55
        <table class="table table-border table-condensed table-bordered" id="walletSummaryReport" style="width:100%">
56
 
57
            <thead class="row htable" style="background:#F5F5F5;">
58
 
59
            <tr style="color:black;">
33092 tejus.loha 60
                ##                <th> #springMessage("reportswalletstatement.id")</th>
61
                ##                <th> #springMessage("reportswalletstatement.code")</th>
62
                ##                <th> #springMessage("reportswalletstatement.name")</th>
63
                ##                <th> #springMessage("reportswalletstatement.email")</th>
64
                ##                <th>  #springMessage("reportswalletstatement.phone")</th>
65
                <th> #springMessage("reportswalletstatement.amount")</th>
66
 
67
                <th>  #springMessage("reportswalletstatement.reference")</th>
68
                <th>  #springMessage("reportswalletstatement.referencetype")</th>
69
                <th> Created On</th>
70
                ##                <th> Business Date</th>
71
                <th> #springMessage("reportswalletstatement.description")</th>
72
 
73
 
30164 manish 74
            </tr>
75
            </thead>
76
            <tbody>
77
                #foreach($walletSummart in $walletSummartList )
33092 tejus.loha 78
                <tr>
79
                    ##                    <td>$walletSummart.getId()</td>
80
                    ##                    <td>$walletSummart.getCode()</td>
81
                    ##                    <td>$walletSummart.getName()</td>
82
                    ##                    <td>$walletSummart.getEmail()</td>
83
                    ##                    <td>$walletSummart.getPhone()</td>
30164 manish 84
                    <td>$walletSummart.getAmount()</td>
33092 tejus.loha 85
                    <td>$walletSummart.getReference()</td>
86
                    <td>$walletSummart.getReferenceType()</td>
87
 
88
                    <td>$walletSummart.getTimestamp().format($datehiphenFormatter)</td>
89
 
90
                    ##                    #if($walletSummart.getBusinessTimestamp())
91
                    ##                        <td>$walletSummart.getBusinessTimestamp().format($datehiphenFormatter)</td>
92
                    ##                    #else
93
                    ##                        <td>--</td>
94
                    ##                    #end
30164 manish 95
                    <td>$walletSummart.getDescription()</td>
33092 tejus.loha 96
 
97
                </tr>
30164 manish 98
                #end
99
 
100
            </tbody>
101
 
102
        </table>
103
    </div>
33092 tejus.loha 104
 
30164 manish 105
</section>
106
 
107
 
108
<script>
109
 
33092 tejus.loha 110
    var dtable = $('#walletSummaryReport').DataTable(
111
            {
112
                "scrollX": true,
113
                "bPaginate": true,
114
                "bLengthChange": true,
115
                "bFilter": true,
116
                "bInfo": false,
117
                "bAutoWidth": false,
118
 
119
 
120
            });
121
 
122
 
123
</script>
124
#if($isAdmin)
125
<script type="text/javascript">
126
    $(function () {
127
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
128
            partnerId = selectedPartner.partnerId;
129
 
130
            console.log(partnerId);
131
        });
132
    });
133
</script>
134
+#end
30164 manish 135