| 30876 |
tejbeer |
1 |
|
|
|
2 |
<script type="text/javascript">
|
|
|
3 |
|
|
|
4 |
$(document).ready(function () {
|
|
|
5 |
var dtable = $('#credittable').DataTable({
|
|
|
6 |
|
|
|
7 |
});
|
|
|
8 |
});
|
|
|
9 |
</script>
|
|
|
10 |
|
|
|
11 |
|
| 29811 |
tejbeer |
12 |
<section class="wrapper">
|
|
|
13 |
<div class="row">
|
|
|
14 |
<div class="col-lg-12">
|
|
|
15 |
<h3 class="page-header"><i class="icon_document_alt"></i>Partners Credit Detail</h3>
|
|
|
16 |
<ol class="breadcrumb">
|
|
|
17 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
18 |
<li><i class="icon_document_alt"></i>Credit Details</li>
|
|
|
19 |
</ol>
|
|
|
20 |
</div>
|
|
|
21 |
</div>
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
<div class="col-lg-12">
|
| 30876 |
tejbeer |
26 |
<table class="table table-border table-condensed table-bordered" id="credittable" style="width:100%">
|
|
|
27 |
|
| 29811 |
tejbeer |
28 |
|
| 30876 |
tejbeer |
29 |
<thead class="row htable" style="background:#F5F5F5;">
|
| 29811 |
tejbeer |
30 |
|
|
|
31 |
<tr>
|
| 29813 |
tejbeer |
32 |
<th> Id</th>
|
| 29811 |
tejbeer |
33 |
<th>Retailer Id</th>
|
|
|
34 |
<th>Retailer Name</th>
|
| 29961 |
tejbeer |
35 |
<th>Pan</th>
|
| 29811 |
tejbeer |
36 |
<th>Gateway</th>
|
|
|
37 |
<th>Sanctioned Amount</th>
|
|
|
38 |
<th>Available Amount</th>
|
|
|
39 |
<th>Credit Status</th>
|
| 33419 |
amit.gupta |
40 |
<th>Avg Credit Days</th>
|
| 29840 |
tejbeer |
41 |
<th>Updated on</th>
|
| 29811 |
tejbeer |
42 |
<th>Action</th>
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
</tr>
|
|
|
46 |
</thead>
|
|
|
47 |
<tbody>
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
#foreach($creditAccount in $creditAccounts)
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
<tr>
|
|
|
54 |
#parse("partner-credit-detail-row.vm")
|
|
|
55 |
|
|
|
56 |
</tr>
|
|
|
57 |
|
|
|
58 |
#end
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
</tbody>
|
|
|
63 |
|
|
|
64 |
</table>
|
|
|
65 |
</div>
|
| 37031 |
amit |
66 |
|
|
|
67 |
|
|
|
68 |
|
| 29811 |
tejbeer |
69 |
</section>
|
| 37031 |
amit |
70 |
|
|
|
71 |
<!-- Block Credit modal -->
|
|
|
72 |
<div class="modal fade" id="blockCreditModal" tabindex="-1" role="dialog">
|
|
|
73 |
<div class="modal-dialog" role="document">
|
|
|
74 |
<div class="modal-content">
|
|
|
75 |
<div class="modal-header">
|
|
|
76 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
77 |
<h4 class="modal-title">Block Credit</h4>
|
|
|
78 |
</div>
|
|
|
79 |
<div class="modal-body">
|
|
|
80 |
<input type="hidden" id="blockCreditId">
|
|
|
81 |
<label>Reason <span style="color:red;">*</span></label>
|
|
|
82 |
<textarea id="blockCreditReason" class="form-control" rows="3" placeholder="Enter reason for blocking (mandatory)"></textarea>
|
|
|
83 |
</div>
|
|
|
84 |
<div class="modal-footer">
|
|
|
85 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
86 |
<button type="button" class="btn btn-danger" id="confirmBlockCredit">Block</button>
|
|
|
87 |
</div>
|
|
|
88 |
</div>
|
|
|
89 |
</div>
|
|
|
90 |
</div>
|
|
|
91 |
|
|
|
92 |
<!-- Unblock Credit modal -->
|
|
|
93 |
<div class="modal fade" id="unblockCreditModal" tabindex="-1" role="dialog">
|
|
|
94 |
<div class="modal-dialog" role="document">
|
|
|
95 |
<div class="modal-content">
|
|
|
96 |
<div class="modal-header">
|
|
|
97 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
98 |
<h4 class="modal-title">Unblock Credit</h4>
|
|
|
99 |
</div>
|
|
|
100 |
<div class="modal-body">
|
|
|
101 |
<input type="hidden" id="unblockCreditId">
|
|
|
102 |
<h5>Block / Unblock history</h5>
|
|
|
103 |
<div id="creditBlockLogsContainer" style="max-height:250px; overflow-y:auto; border:1px solid #eee; padding:8px; margin-bottom:12px;">
|
|
|
104 |
Loading...
|
|
|
105 |
</div>
|
|
|
106 |
<label>Reason (optional)</label>
|
|
|
107 |
<textarea id="unblockCreditReason" class="form-control" rows="2" placeholder="Optional reason for unblocking"></textarea>
|
|
|
108 |
</div>
|
|
|
109 |
<div class="modal-footer">
|
|
|
110 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
111 |
<button type="button" class="btn btn-success" id="confirmUnblockCredit">Unblock</button>
|
|
|
112 |
</div>
|
|
|
113 |
</div>
|
|
|
114 |
</div>
|
|
|
115 |
</div>
|
|
|
116 |
|