| 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>
|
| 36242 |
aman |
109 |
<th>Doc</th>
|
| 34102 |
aman.kumar |
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>
|
| 36242 |
aman |
147 |
<td>
|
|
|
148 |
#if($wallet.getFspId() > 0 && $fspAttachmentMap && $fspAttachmentMap.containsKey($wallet.getId()))
|
|
|
149 |
<button type="button" class="btn btn-info btn-xs wallet-doc-view-btn"
|
|
|
150 |
data-doc-url="${rc.contextPath}/document/$fspAttachmentMap.get($wallet.getId())">
|
|
|
151 |
<i class="fa fa-eye"></i>
|
|
|
152 |
</button>
|
|
|
153 |
#end
|
|
|
154 |
</td>
|
| 34102 |
aman.kumar |
155 |
#if($wallet.getStatus()=="pending")
|
|
|
156 |
|
|
|
157 |
<td>
|
|
|
158 |
<button class="btn btn-primary check" data-requestid="$wallet.getId()"
|
|
|
159 |
data-amount="$wallet.getAmount()" data-toggle="modal"
|
|
|
160 |
data-target="#newAddwalletModal" type="button">Approve
|
|
|
161 |
</button>
|
|
|
162 |
</td>
|
|
|
163 |
|
|
|
164 |
<td>
|
|
|
165 |
<button class="btn btn-primary rejected" data-requestid="$wallet.getId()"
|
|
|
166 |
type="button">Reject
|
|
|
167 |
</button>
|
|
|
168 |
</td>
|
|
|
169 |
|
|
|
170 |
#end
|
|
|
171 |
</tr>
|
|
|
172 |
#end
|
|
|
173 |
#else
|
|
|
174 |
<tr>
|
|
|
175 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
176 |
</tr>
|
|
|
177 |
#end
|
|
|
178 |
</tbody>
|
|
|
179 |
</table>
|
|
|
180 |
</div>
|
|
|
181 |
</div>
|
|
|
182 |
</div>
|
|
|
183 |
|
|
|
184 |
<div id="newAddwalletModal" class="modal" role="dialog">
|
|
|
185 |
<div class="modal-dialog">
|
|
|
186 |
|
|
|
187 |
<!-- Modal content-->
|
|
|
188 |
<div class="modal-content">
|
|
|
189 |
<div class="modal-header">
|
|
|
190 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
191 |
<h4 class="modal-title">Unsettled Payments</h4>
|
|
|
192 |
</div>
|
|
|
193 |
<div class="modal-body">
|
|
|
194 |
<div id="unsettle-payment-modal">
|
|
|
195 |
|
|
|
196 |
</div>
|
|
|
197 |
</div>
|
|
|
198 |
</div>
|
|
|
199 |
</div>
|
|
|
200 |
</div>
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
<div id="newEntrywalletModal" class="modal" role="dialog">
|
|
|
204 |
<div class="modal-dialog">
|
|
|
205 |
|
|
|
206 |
<!-- Modal content-->
|
|
|
207 |
<div class="modal-content">
|
|
|
208 |
<div class="modal-header">
|
|
|
209 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
210 |
<h4 class="modal-title">Add money to Wallet</h4>
|
|
|
211 |
</div>
|
|
|
212 |
<div class="modal-body">
|
|
|
213 |
<div id="add-wallet-amount">
|
|
|
214 |
<div class="row">
|
|
|
215 |
<div class="col-lg-3">
|
|
|
216 |
<div class="input-group">
|
|
|
217 |
<input placeholder="Partner Name" type="text" class="typeahead form-control"
|
|
|
218 |
id="typeaheadpartner" name="Item" data-provide="typeahead"
|
|
|
219 |
autocomplete="off">
|
|
|
220 |
</div>
|
|
|
221 |
</div>
|
|
|
222 |
|
|
|
223 |
<div class="col-lg-3 form-group">
|
|
|
224 |
<input placeholder="Amount" id="amount" name="amount" type="number" value=""
|
|
|
225 |
class="form-control input-sm">
|
|
|
226 |
</div>
|
|
|
227 |
|
|
|
228 |
<div class="col-lg-3 form-group">
|
|
|
229 |
<input placeholder="Transaction Reference" id="transactionReference"
|
|
|
230 |
name="transactionReference" type="text" value="" class="form-control input-sm">
|
|
|
231 |
</div>
|
|
|
232 |
</div>
|
|
|
233 |
<div class="row">
|
|
|
234 |
|
|
|
235 |
<div class="col-lg-3 form-group">
|
|
|
236 |
<select id="bankName" name="bankName" class="form-control input-sm">
|
|
|
237 |
<option value="HDFC Bank Limited">HDFC Bank Limited</option>
|
| 36257 |
aman |
238 |
<option value="ICICI Bank Ltd">ICICI Bank Ltd</option>
|
| 34102 |
aman.kumar |
239 |
</select>
|
|
|
240 |
</div>
|
|
|
241 |
|
|
|
242 |
<div class="col-lg-3 form-group">
|
|
|
243 |
<input id="referenceTime" name="referenceTime" type="text" value=""
|
|
|
244 |
class="form-control input-sm">
|
|
|
245 |
</div>
|
|
|
246 |
</div>
|
|
|
247 |
</div>
|
|
|
248 |
</div>
|
|
|
249 |
|
|
|
250 |
<div class="modal-footer">
|
|
|
251 |
<button type="button" data-dismiss="modal" class="btn btn-default request-cancel">Cancel</button>
|
|
|
252 |
<button type="button" data-dismiss="modal" class="btn btn-default add-money-request">Submit</button>
|
|
|
253 |
|
|
|
254 |
</div>
|
|
|
255 |
</div>
|
|
|
256 |
</div>
|
|
|
257 |
</div>
|
|
|
258 |
|
|
|
259 |
|
|
|
260 |
#if(!$walletRequest.isEmpty())
|
|
|
261 |
<div class="row" id="add-wallet-request-paginated">
|
|
|
262 |
<div class="col-lg-9">
|
|
|
263 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span
|
|
|
264 |
class="size">$size</span> items</p>
|
|
|
265 |
</div>
|
|
|
266 |
<div class="col-lg-3" style="text-align:right;">
|
|
|
267 |
<div class="btn-group" style="width:40%">
|
|
|
268 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
269 |
</div>
|
|
|
270 |
<div class="btn-group" style="width:40%">
|
|
|
271 |
#if($end >= $size)
|
|
|
272 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
273 |
#else
|
|
|
274 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
275 |
#end
|
|
|
276 |
</div>
|
|
|
277 |
</div>
|
|
|
278 |
</div>
|
|
|
279 |
#end
|
| 36242 |
aman |
280 |
|
|
|
281 |
<!-- Document View Modal -->
|
|
|
282 |
<div class="modal fade" id="walletDocViewModal" role="dialog">
|
|
|
283 |
<div class="modal-dialog modal-lg">
|
|
|
284 |
<div class="modal-content">
|
|
|
285 |
<div class="modal-header">
|
|
|
286 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
287 |
<h4 class="modal-title">Payment Proof</h4>
|
|
|
288 |
</div>
|
|
|
289 |
<div class="modal-body" style="text-align:center;">
|
|
|
290 |
<img id="wallet-doc-preview" src="" style="max-width:100%; max-height:500px;">
|
|
|
291 |
</div>
|
|
|
292 |
<div class="modal-footer">
|
|
|
293 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
294 |
</div>
|
|
|
295 |
</div>
|
|
|
296 |
</div>
|
|
|
297 |
</div>
|
|
|
298 |
<script type="text/javascript">
|
|
|
299 |
$(document).on('click', '.wallet-doc-view-btn', function () {
|
|
|
300 |
var docUrl = $(this).data('doc-url');
|
|
|
301 |
$('#wallet-doc-preview').attr('src', docUrl);
|
|
|
302 |
$('#walletDocViewModal').modal('show');
|
|
|
303 |
});
|
|
|
304 |
</script>
|
| 34102 |
aman.kumar |
305 |
</section>
|
|
|
306 |
<div id="add-wallet-request-container" style="background:white;background-color:white;">
|
|
|
307 |
</div>
|