Subversion Repositories SmartDukaan

Rev

Rev 34261 | Rev 36242 | 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>
35971 aman 119
                                <td>
120
                                    $fofoIdsAndRetailerName.get($wallet.getRetailerId()).getBusinessName()
121
                                    #if($wallet.getFspId() > 0)
122
                                        <br><span class="label label-info"
123
                                                  style="font-size:10px;">Full Stock Payment</span>
124
                                    #end
125
                                </td>
34102 aman.kumar 126
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getEmail()</td>
127
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getAddress().city</td>
128
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getAddress().state</td>
129
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getMobileNumber()</td>
130
                                <td>$wallet.getTransaction_reference()</td>
131
                                #if($wallet.getBank_name())
132
                                    <td>$wallet.getBank_name()</td>
133
                                #else
134
                                    <td> null</td>
135
                                #end
136
                                <td>$wallet.getReference_date()</td>
137
 
138
                                <td class="currency">$wallet.getAmount()</td>
139
                                #if(
140
                                    $wallet.getRequestedBy() > 0)
141
                                    <td>$authUsers.get($wallet.getRequestedBy()).getFullName()</td>
142
                                #else
143
                                    <td> Retailer</td>
144
                                #end
145
                                <td>$wallet.getCreateTimestamp().format($dateTimeFormatter)</td>
146
                                <td>$wallet.getUpdateTimestamp().format($dateTimeFormatter)</td>
147
                                #if($wallet.getStatus()=="pending")
148
 
149
                                    <td>
150
                                        <button class="btn btn-primary check" data-requestid="$wallet.getId()"
151
                                                data-amount="$wallet.getAmount()" data-toggle="modal"
152
                                                data-target="#newAddwalletModal" type="button">Approve
153
                                        </button>
154
                                    </td>
155
 
156
                                    <td>
157
                                        <button class="btn btn-primary rejected" data-requestid="$wallet.getId()"
158
                                                type="button">Reject
159
                                        </button>
160
                                    </td>
161
 
162
                                #end
163
                            </tr>
164
                            #end
165
                        #else
166
                        <tr>
167
                            <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
168
                        </tr>
169
                        #end
170
                    </tbody>
171
                </table>
172
            </div>
173
        </div>
174
    </div>
175
 
176
    <div id="newAddwalletModal" class="modal" role="dialog">
177
        <div class="modal-dialog">
178
 
179
            <!-- Modal content-->
180
            <div class="modal-content">
181
                <div class="modal-header">
182
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
183
                    <h4 class="modal-title">Unsettled Payments</h4>
184
                </div>
185
                <div class="modal-body">
186
                    <div id="unsettle-payment-modal">
187
 
188
                    </div>
189
                </div>
190
            </div>
191
        </div>
192
    </div>
193
 
194
 
195
    <div id="newEntrywalletModal" class="modal" role="dialog">
196
        <div class="modal-dialog">
197
 
198
            <!-- Modal content-->
199
            <div class="modal-content">
200
                <div class="modal-header">
201
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
202
                    <h4 class="modal-title">Add money to Wallet</h4>
203
                </div>
204
                <div class="modal-body">
205
                    <div id="add-wallet-amount">
206
                        <div class="row">
207
                            <div class="col-lg-3">
208
                                <div class="input-group">
209
                                    <input placeholder="Partner Name" type="text" class="typeahead form-control"
210
                                           id="typeaheadpartner" name="Item" data-provide="typeahead"
211
                                           autocomplete="off">
212
                                </div>
213
                            </div>
214
 
215
                            <div class="col-lg-3 form-group">
216
                                <input placeholder="Amount" id="amount" name="amount" type="number" value=""
217
                                       class="form-control input-sm">
218
                            </div>
219
 
220
                            <div class="col-lg-3 form-group">
221
                                <input placeholder="Transaction Reference" id="transactionReference"
222
                                       name="transactionReference" type="text" value="" class="form-control input-sm">
223
                            </div>
224
                        </div>
225
                        <div class="row">
226
 
227
                            <div class="col-lg-3 form-group">
228
                                <select id="bankName" name="bankName" class="form-control input-sm">
229
                                    <option value="HDFC Bank Limited">HDFC Bank Limited</option>
230
                                    <option value="Indusind Bank Ltd">Indusind Bank Ltd</option>
231
                                </select>
232
                            </div>
233
 
234
                            <div class="col-lg-3 form-group">
235
                                <input id="referenceTime" name="referenceTime" type="text" value=""
236
                                       class="form-control input-sm">
237
                            </div>
238
                        </div>
239
                    </div>
240
                </div>
241
 
242
                <div class="modal-footer">
243
                    <button type="button" data-dismiss="modal" class="btn btn-default request-cancel">Cancel</button>
244
                    <button type="button" data-dismiss="modal" class="btn btn-default add-money-request">Submit</button>
245
 
246
                </div>
247
            </div>
248
        </div>
249
    </div>
250
 
251
 
252
    #if(!$walletRequest.isEmpty())
253
        <div class="row" id="add-wallet-request-paginated">
254
            <div class="col-lg-9">
255
                <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span
256
                        class="size">$size</span> items</p>
257
            </div>
258
            <div class="col-lg-3" style="text-align:right;">
259
                <div class="btn-group" style="width:40%">
260
                    <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
261
                </div>
262
                <div class="btn-group" style="width:40%">
263
                    #if($end >= $size)
264
                        <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
265
                    #else
266
                        <button class="btn btn-primary next" style="width:100%">Next</button>
267
                    #end
268
                </div>
269
            </div>
270
        </div>
271
    #end
272
</section>
273
<div id="add-wallet-request-container" style="background:white;background-color:white;">
274
</div>