Subversion Repositories SmartDukaan

Rev

Rev 33092 | Rev 34011 | 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()
33815 ranu 25
                    ) (
26
                    #if($openingBalance)
27
                        Opening Balance : $openingBalance
28
                    #end)
33092 tejus.loha 29
                </h2>
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"
38
                               style="margin-bottom: 10px;margin-left: -9px"> <input id="partnerId"
39
                                                                                     type="hidden">
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
                ##                <th> #springMessage("reportswalletstatement.id")</th>
66
                ##                <th> #springMessage("reportswalletstatement.code")</th>
67
                ##                <th> #springMessage("reportswalletstatement.name")</th>
68
                ##                <th> #springMessage("reportswalletstatement.email")</th>
69
                ##                <th>  #springMessage("reportswalletstatement.phone")</th>
70
                <th> #springMessage("reportswalletstatement.amount")</th>
71
 
72
                <th>  #springMessage("reportswalletstatement.reference")</th>
73
                <th>  #springMessage("reportswalletstatement.referencetype")</th>
33815 ranu 74
                <th>Running Balance</th>
33092 tejus.loha 75
                <th> Created On</th>
76
                ##                <th> Business Date</th>
77
                <th> #springMessage("reportswalletstatement.description")</th>
78
 
79
 
30164 manish 80
            </tr>
81
            </thead>
82
            <tbody>
83
                #foreach($walletSummart in $walletSummartList )
33092 tejus.loha 84
                <tr>
85
                    ##                    <td>$walletSummart.getId()</td>
86
                    ##                    <td>$walletSummart.getCode()</td>
87
                    ##                    <td>$walletSummart.getName()</td>
88
                    ##                    <td>$walletSummart.getEmail()</td>
89
                    ##                    <td>$walletSummart.getPhone()</td>
30164 manish 90
                    <td>$walletSummart.getAmount()</td>
33092 tejus.loha 91
                    <td>$walletSummart.getReference()</td>
92
                    <td>$walletSummart.getReferenceType()</td>
33815 ranu 93
                    <td>
94
                        #set($runningBalance = $openingBalance+$walletSummart.getAmount())
95
                        $runningBalance
96
                    </td>
33092 tejus.loha 97
 
33815 ranu 98
 
33092 tejus.loha 99
                    <td>$walletSummart.getTimestamp().format($datehiphenFormatter)</td>
100
 
101
                    ##                    #if($walletSummart.getBusinessTimestamp())
102
                    ##                        <td>$walletSummart.getBusinessTimestamp().format($datehiphenFormatter)</td>
103
                    ##                    #else
104
                    ##                        <td>--</td>
105
                    ##                    #end
30164 manish 106
                    <td>$walletSummart.getDescription()</td>
33092 tejus.loha 107
 
108
                </tr>
30164 manish 109
                #end
110
 
111
            </tbody>
112
 
113
        </table>
114
    </div>
33092 tejus.loha 115
 
30164 manish 116
</section>
117
 
118
 
119
<script>
120
 
33092 tejus.loha 121
    var dtable = $('#walletSummaryReport').DataTable(
122
            {
123
                "scrollX": true,
124
                "bPaginate": true,
125
                "bLengthChange": true,
126
                "bFilter": true,
127
                "bInfo": false,
128
                "bAutoWidth": false,
129
 
130
 
131
            });
132
 
133
 
134
</script>
135
#if($isAdmin)
136
<script type="text/javascript">
137
    $(function () {
138
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
139
            partnerId = selectedPartner.partnerId;
140
 
141
            console.log(partnerId);
142
        });
143
    });
144
</script>
145
+#end
30164 manish 146