Subversion Repositories SmartDukaan

Rev

Rev 33815 | Rev 34066 | 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
34011 tejus.loha 22
                <h4 style="color:#055fb7;margin-top: 20px;margin-bottom: 10px;margin-left:auto:">
33092 tejus.loha 23
                    $walletSummart.getCode() - $walletSummart.getName()(
24
                    $walletSummart.getPhone()-$walletSummart.getEmail()
33815 ranu 25
                    ) (
26
                    #if($openingBalance)
27
                        Opening Balance : $openingBalance
28
                    #end)
34011 tejus.loha 29
                </h4>
33092 tejus.loha 30
                #set($counter =$counter+1)
31
            #end
32
            <div class="row col-lg-12" style="float: right;">
33
                <div class="col-lg-2">
34
                    <div class="input-group">
35
                        <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
36
                               id="typeaheadpartner"
37
                               name="Item" data-provide="typeahead" autocomplete="off"
34011 tejus.loha 38
                               style="margin-bottom: 10px;margin-left: -9px">
39
                        <input id="partnerId" type="hidden">
33092 tejus.loha 40
                        <br>
41
                    </div>
42
                </div>
43
            </div>
44
        #end
45
        #springMessage("reportswalletstatement.from") <input type="date" id="startDate-wallet-summary-report"
46
                                                             placeholder="" name="" value="$startDate">
47
 
48
        #springMessage("reportswalletstatement.to") <input type="date" id="endDate-wallet-summary-report" placeholder=""
49
                                                           value="$endDate">
50
        <button type="submit" class="wallet-summary-fetch-report">Fetch Report</button>
51
        <button type="submit" class="download-wallet-summary-report">#springMessage(
52
            "reportswalletstatement.downloadreport") </button>
53
 
54
    </div>
55
 
56
 
30164 manish 57
    <div class="col-lg-12">
33815 ranu 58
 
59
 
30164 manish 60
        <table class="table table-border table-condensed table-bordered" id="walletSummaryReport" style="width:100%">
61
 
62
            <thead class="row htable" style="background:#F5F5F5;">
63
 
64
            <tr style="color:black;">
33092 tejus.loha 65
 
34011 tejus.loha 66
            <th> #springMessage("reportswalletstatement.amount")</th>
33092 tejus.loha 67
                <th>  #springMessage("reportswalletstatement.reference")</th>
68
                <th>  #springMessage("reportswalletstatement.referencetype")</th>
33815 ranu 69
                <th>Running Balance</th>
33092 tejus.loha 70
                <th> Created On</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>
30164 manish 79
                    <td>$walletSummart.getAmount()</td>
33092 tejus.loha 80
                    <td>$walletSummart.getReference()</td>
81
                    <td>$walletSummart.getReferenceType()</td>
33815 ranu 82
                    <td>
83
                        #set($runningBalance = $openingBalance+$walletSummart.getAmount())
84
                        $runningBalance
85
                    </td>
33092 tejus.loha 86
                    <td>$walletSummart.getTimestamp().format($datehiphenFormatter)</td>
30164 manish 87
                    <td>$walletSummart.getDescription()</td>
33092 tejus.loha 88
                </tr>
30164 manish 89
                #end
90
 
91
            </tbody>
92
 
93
        </table>
94
    </div>
33092 tejus.loha 95
 
30164 manish 96
</section>
97
 
98
 
99
<script>
100
 
33092 tejus.loha 101
    var dtable = $('#walletSummaryReport').DataTable(
102
            {
103
                "scrollX": true,
104
                "bPaginate": true,
105
                "bLengthChange": true,
106
                "bFilter": true,
107
                "bInfo": false,
108
                "bAutoWidth": false,
109
 
110
 
111
            });
112
 
113
 
114
</script>
115
#if($isAdmin)
116
<script type="text/javascript">
117
    $(function () {
118
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
119
            partnerId = selectedPartner.partnerId;
120
 
121
            console.log(partnerId);
122
        });
123
    });
124
</script>
125
+#end
30164 manish 126