Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
34102 aman.kumar 1
<script>
2
 
3
    $(".approve").click(function () {
4
        $("#newAddwalletModal").modal({backdrop: false});
5
    });
6
 
7
    $(".confirm").click(function () {
8
        $("#newAddwalletModal").modal({backdrop: false});
9
    });
10
 
11
    $(".approved").click(function () {
12
        $("#newAddwalletModal").modal({backdrop: false});
13
    });
14
 
15
    $(".cancel").click(function () {
16
        $("#newAddwalletModal").modal({backdrop: false});
17
    });
18
</script>
19
 
20
<style>
21
    .table-striped > tbody > tr:nth-child(odd) > td {
22
        background: white;
23
        background-color: white;
24
    }
25
 
26
    .table-striped > tbody > tr:nth-child(even) > td {
27
        background: white;
28
        background-color: white;
29
    }
30
 
31
    .table-striped > tbody > tr:hover > td,
32
    .table-striped > tbody > tr:hover {
33
        background-color: #e98c8f;
34
        color: white;
35
    }
36
 
37
    .btn:hover {
38
        color: grey;
39
        text-decoration: none;
40
    }
41
 
42
    .btn-primary:hover {
43
        color: grey;
44
        text-decoration: none;
45
    }
46
 
47
    .sale-details {
48
        cursor: pointer;
49
    }
50
</style>
51
<script type="text/javascript">
52
    $(function () {
53
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
54
            partnerId = selectedPartner.partnerId;
55
 
56
            console.log(partnerId);
57
        });
58
    });
59
 
60
    $(function () {
61
        $('input[name="referenceTime"]').daterangepicker(getSingleDatePicker());
62
    });
63
</script>
64
<section class="wrapper">
65
    <div class="row">
66
        <div class="col-lg-12">
34261 tejus.loha 67
            <h3 class="page-header"><i class="icon_document_alt"></i>WALLET ADDN-REQUEST/Pending</h3>
34102 aman.kumar 68
            <ol class="breadcrumb">
69
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
34261 tejus.loha 70
                <li><i class="icon_document_alt"></i>Wallet Addn-Request/Pending</li>
34102 aman.kumar 71
                <li>
72
                    <button class="btn btn-primary newEntry" data-toggle="modal" data-target="#newEntrywalletModal"
73
                            type="button">New
74
                    </button>
75
                </li>
34261 tejus.loha 76
                <div style="float:right;margin-bottom: 1%">
77
                    From:
78
                    <input type="date" name="from" placeholder="Form">
79
                    To:
80
                    <input type="date" name="to" placeholder="To">
81
                    <button id="downloadAddWalletRequestPendingReport" class="btn-primary">
82
                        Download
83
                    </button>
84
                </div>
34102 aman.kumar 85
            </ol>
86
        </div>
87
    </div>
88
 
89
    <input id="url" name="url" type="hidden" value="$url"/>
90
    <div id="add-wallet-request-table">
91
        <div class="row">
92
            <div class="col-lg-12">
93
                <table class="table table-striped table-advance table-hover">
94
                    <tbody>
95
                    <tr>
96
                        <th>Retailer Id</th>
97
                        <th>Retailer Name</th>
98
                        <th>Email</th>
99
                        <th>City</th>
100
                        <th>State</th>
101
                        <th>Mobile</th>
102
                        <th>Transaction Reference</th>
103
                        <th>Bank Name</th>
104
                        <th>Reference Date</th>
105
                        <th>Amount</th>
106
                        <th>Requested By</th>
107
                        <th>Created On</th>
108
                        <th>Updated On</th>
109
 
110
 
111
                        #if($rStatus == "pending")
112
                            <th colspan=2>Status</th>
113
                        #end
114
                    </tr>
115
                        #if(!$walletRequest.isEmpty())
116
                            #foreach( $wallet in $walletRequest )
117
                            <tr class="add-wallet" data="$wallet.getId()">
118
                                <td>$wallet.getRetailerId()</td>
119
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getBusinessName()</td>
120
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getEmail()</td>
121
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getAddress().city</td>
122
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getAddress().state</td>
123
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getMobileNumber()</td>
124
                                <td>$wallet.getTransaction_reference()</td>
125
                                #if($wallet.getBank_name())
126
                                    <td>$wallet.getBank_name()</td>
127
                                #else
128
                                    <td> null</td>
129
                                #end
130
                                <td>$wallet.getReference_date()</td>
131
 
132
                                <td class="currency">$wallet.getAmount()</td>
133
                                #if(
134
                                    $wallet.getRequestedBy() > 0)
135
                                    <td>$authUsers.get($wallet.getRequestedBy()).getFullName()</td>
136
                                #else
137
                                    <td> Retailer</td>
138
                                #end
139
                                <td>$wallet.getCreateTimestamp().format($dateTimeFormatter)</td>
140
                                <td>$wallet.getUpdateTimestamp().format($dateTimeFormatter)</td>
141
                                #if($wallet.getStatus()=="pending")
142
 
143
                                    <td>
144
                                        <button class="btn btn-primary check" data-requestid="$wallet.getId()"
145
                                                data-amount="$wallet.getAmount()" data-toggle="modal"
146
                                                data-target="#newAddwalletModal" type="button">Approve
147
                                        </button>
148
                                    </td>
149
 
150
                                    <td>
151
                                        <button class="btn btn-primary rejected" data-requestid="$wallet.getId()"
152
                                                type="button">Reject
153
                                        </button>
154
                                    </td>
155
 
156
                                #end
157
                            </tr>
158
                            #end
159
                        #else
160
                        <tr>
161
                            <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
162
                        </tr>
163
                        #end
164
                    </tbody>
165
                </table>
166
            </div>
167
        </div>
168
    </div>
169
 
170
    <div id="newAddwalletModal" class="modal" role="dialog">
171
        <div class="modal-dialog">
172
 
173
            <!-- Modal content-->
174
            <div class="modal-content">
175
                <div class="modal-header">
176
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
177
                    <h4 class="modal-title">Unsettled Payments</h4>
178
                </div>
179
                <div class="modal-body">
180
                    <div id="unsettle-payment-modal">
181
 
182
                    </div>
183
                </div>
184
            </div>
185
        </div>
186
    </div>
187
 
188
 
189
    <div id="newEntrywalletModal" class="modal" role="dialog">
190
        <div class="modal-dialog">
191
 
192
            <!-- Modal content-->
193
            <div class="modal-content">
194
                <div class="modal-header">
195
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
196
                    <h4 class="modal-title">Add money to Wallet</h4>
197
                </div>
198
                <div class="modal-body">
199
                    <div id="add-wallet-amount">
200
                        <div class="row">
201
                            <div class="col-lg-3">
202
                                <div class="input-group">
203
                                    <input placeholder="Partner Name" type="text" class="typeahead form-control"
204
                                           id="typeaheadpartner" name="Item" data-provide="typeahead"
205
                                           autocomplete="off">
206
                                </div>
207
                            </div>
208
 
209
                            <div class="col-lg-3 form-group">
210
                                <input placeholder="Amount" id="amount" name="amount" type="number" value=""
211
                                       class="form-control input-sm">
212
                            </div>
213
 
214
                            <div class="col-lg-3 form-group">
215
                                <input placeholder="Transaction Reference" id="transactionReference"
216
                                       name="transactionReference" type="text" value="" class="form-control input-sm">
217
                            </div>
218
                        </div>
219
                        <div class="row">
220
 
221
                            <div class="col-lg-3 form-group">
222
                                <select id="bankName" name="bankName" class="form-control input-sm">
223
                                    <option value="HDFC Bank Limited">HDFC Bank Limited</option>
224
                                    <option value="Indusind Bank Ltd">Indusind Bank Ltd</option>
225
                                </select>
226
                            </div>
227
 
228
                            <div class="col-lg-3 form-group">
229
                                <input id="referenceTime" name="referenceTime" type="text" value=""
230
                                       class="form-control input-sm">
231
                            </div>
232
                        </div>
233
                    </div>
234
                </div>
235
 
236
                <div class="modal-footer">
237
                    <button type="button" data-dismiss="modal" class="btn btn-default request-cancel">Cancel</button>
238
                    <button type="button" data-dismiss="modal" class="btn btn-default add-money-request">Submit</button>
239
 
240
                </div>
241
            </div>
242
        </div>
243
    </div>
244
 
245
 
246
    #if(!$walletRequest.isEmpty())
247
        <div class="row" id="add-wallet-request-paginated">
248
            <div class="col-lg-9">
249
                <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span
250
                        class="size">$size</span> items</p>
251
            </div>
252
            <div class="col-lg-3" style="text-align:right;">
253
                <div class="btn-group" style="width:40%">
254
                    <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
255
                </div>
256
                <div class="btn-group" style="width:40%">
257
                    #if($end >= $size)
258
                        <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
259
                    #else
260
                        <button class="btn btn-primary next" style="width:100%">Next</button>
261
                    #end
262
                </div>
263
            </div>
264
        </div>
265
    #end
266
</section>
267
<div id="add-wallet-request-container" style="background:white;background-color:white;">
268
</div>