Subversion Repositories SmartDukaan

Rev

Rev 34505 | 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
                    ) (
34097 aman.kumar 26
                    #if($userWallet.getAmount())
27
                        Wallet Amount : $userWallet.getAmount()
33815 ranu 28
                    #end)
34011 tejus.loha 29
                </h4>
33092 tejus.loha 30
                #set($counter =$counter+1)
31
            #end
34066 aman.kumar 32
            #if($isRBM)
33
                <div style="float: left;"
34
                     class="col-lg-2 form-group">
35
                    <select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
36
                        <option value="" disabled selected>Partners</option>
37
                        #foreach($fofoId in $customRetailersMap.keySet())
38
                            <option value="$fofoId"
39
                                    data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
40
                        #end
41
                    </select>
42
                </div>
43
            #else
34097 aman.kumar 44
                <div class="row col-lg-12" style="float: right;">
45
                    <div class="col-lg-2">
46
                        <div class="input-group">
47
                            <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
48
                                   id="typeaheadpartner"
49
                                   name="Item" data-provide="typeahead" autocomplete="off"
50
                                   style="margin-bottom: 10px;margin-left: -9px">
51
                            <input id="partnerId" type="hidden">
52
                            <br>
53
                        </div>
33092 tejus.loha 54
                    </div>
55
                </div>
34066 aman.kumar 56
            #end
33092 tejus.loha 57
        #end
34505 ranu 58
        #if(!$isAnalysis)
59
            #springMessage("reportswalletstatement.from") <input type="date" id="startDate-wallet-summary-report"
60
                                                                 placeholder="" name="" value="$startDate">
33092 tejus.loha 61
 
34505 ranu 62
            #springMessage("reportswalletstatement.to") <input type="date" id="endDate-wallet-summary-report"
63
                                                               placeholder=""
64
                                                               value="$endDate">
65
            <button type="submit" class="wallet-summary-fetch-report">Fetch Report</button>
66
            <button type="submit" class="download-wallet-summary-report">#springMessage(
67
                "reportswalletstatement.downloadreport") </button>
68
        #else
69
            #springMessage("reportswalletstatement.from") <input type="date"
70
                                                                 id="analysis-startDate-wallet-summary-report"
71
                                                                 placeholder="" name="" value="$startDate">
72
 
73
            #springMessage("reportswalletstatement.to") <input type="date" id="analysis-endDate-wallet-summary-report"
74
                                                               placeholder=""
75
                                                               value="$endDate">
76
            <button type="submit" class="analysis-wallet-summary-fetch-report" data-fofoid="$fofoId">Fetch Report
77
            </button>
78
            <button type="submit" class="analysis-download-wallet-summary-report" data-fofoid="$fofoId">#springMessage(
33092 tejus.loha 79
            "reportswalletstatement.downloadreport") </button>
34505 ranu 80
        #end
33092 tejus.loha 81
 
82
    </div>
83
 
84
 
30164 manish 85
    <div class="col-lg-12">
33815 ranu 86
 
87
 
30164 manish 88
        <table class="table table-border table-condensed table-bordered" id="walletSummaryReport" style="width:100%">
89
 
90
            <thead class="row htable" style="background:#F5F5F5;">
91
 
92
            <tr style="color:black;">
33092 tejus.loha 93
 
34097 aman.kumar 94
                <th> #springMessage("reportswalletstatement.amount")</th>
33092 tejus.loha 95
                <th>  #springMessage("reportswalletstatement.reference")</th>
96
                <th>  #springMessage("reportswalletstatement.referencetype")</th>
33815 ranu 97
                <th>Running Balance</th>
33092 tejus.loha 98
                <th> Created On</th>
99
                <th> #springMessage("reportswalletstatement.description")</th>
100
 
101
 
30164 manish 102
            </tr>
103
            </thead>
104
            <tbody>
105
                #foreach($walletSummart in $walletSummartList )
33092 tejus.loha 106
                <tr>
30164 manish 107
                    <td>$walletSummart.getAmount()</td>
33092 tejus.loha 108
                    <td>$walletSummart.getReference()</td>
109
                    <td>$walletSummart.getReferenceType()</td>
33815 ranu 110
                    <td>
111
                        #set($runningBalance = $openingBalance+$walletSummart.getAmount())
112
                        $runningBalance
113
                    </td>
33092 tejus.loha 114
                    <td>$walletSummart.getTimestamp().format($datehiphenFormatter)</td>
30164 manish 115
                    <td>$walletSummart.getDescription()</td>
33092 tejus.loha 116
                </tr>
30164 manish 117
                #end
118
 
119
            </tbody>
120
 
121
        </table>
122
    </div>
33092 tejus.loha 123
 
30164 manish 124
</section>
125
 
126
 
127
<script>
128
 
33092 tejus.loha 129
    var dtable = $('#walletSummaryReport').DataTable(
130
            {
131
                "scrollX": true,
132
                "bPaginate": true,
133
                "bLengthChange": true,
134
                "bFilter": true,
135
                "bInfo": false,
136
                "bAutoWidth": false,
137
 
138
 
139
            });
140
 
141
 
142
</script>
143
#if($isAdmin)
144
<script type="text/javascript">
145
    $(function () {
146
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
147
            partnerId = selectedPartner.partnerId;
148
 
149
            console.log(partnerId);
150
        });
151
    });
34066 aman.kumar 152
    $(function () {
153
        $('#fofo-users').on('change', function () {
154
            var selectedFofoId = $(this).val();
155
            if (selectedFofoId) {
156
                partnerId = selectedFofoId;
157
                console.log("Partner ID set to:", partnerId);
158
            } else {
36080 aman 159
                alert("Please select a valid Partner ID.");
34066 aman.kumar 160
            }
161
        });
162
    });
33092 tejus.loha 163
</script>
164
+#end
30164 manish 165