| 30164 |
manish |
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>COLLECTION REPORT</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
| 32771 |
raveendra. |
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("reportdailycollection.home")</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>#springMessage("reportdailycollection.reports")</li>
|
| 30164 |
manish |
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
| 33092 |
tejus.loha |
11 |
<br>
|
|
|
12 |
#if($isAdmin)
|
| 34066 |
aman.kumar |
13 |
#if($isRBM)
|
|
|
14 |
<div style="padding: 5px 10px; margin-top: 2px"
|
|
|
15 |
class="col-lg-2 form-group">
|
|
|
16 |
<select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
|
|
|
17 |
<option value="" disabled selected>Partners</option>
|
|
|
18 |
#foreach($fofoId in $customRetailersMap.keySet())
|
|
|
19 |
<option value="$fofoId"
|
|
|
20 |
data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
|
|
|
21 |
#end
|
|
|
22 |
</select>
|
|
|
23 |
</div>
|
|
|
24 |
#else
|
| 33092 |
tejus.loha |
25 |
<div class="row col-lg-12" style="float: right;">
|
|
|
26 |
<div class="col-lg-2">
|
|
|
27 |
<div class="input-group">
|
|
|
28 |
<input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
|
|
|
29 |
id="typeaheadpartner"
|
|
|
30 |
name="Item" data-provide="typeahead" autocomplete="off"
|
|
|
31 |
style="margin-bottom: 10px;margin-left: 22px"> <input id="partnerId"
|
|
|
32 |
type="hidden">
|
|
|
33 |
<br>
|
|
|
34 |
</div>
|
|
|
35 |
</div>
|
|
|
36 |
</div>
|
| 34066 |
aman.kumar |
37 |
#end
|
| 33092 |
tejus.loha |
38 |
#end
|
| 30164 |
manish |
39 |
<div class="row col-lg-12" style="float: right;">
|
| 33092 |
tejus.loha |
40 |
|
| 34509 |
ranu |
41 |
#if(!$isAnalysis)
|
|
|
42 |
#springMessage("reportdailycollection.from") <input type="date" id="startDate-collection-summary"
|
|
|
43 |
placeholder="" name="" value="$startDate">
|
| 33067 |
shampa |
44 |
|
| 34509 |
ranu |
45 |
#springMessage("reportdailycollection.to") <input type="date" id="endDate-collection-summary"
|
|
|
46 |
placeholder="" value="$endDate">
|
|
|
47 |
|
| 33067 |
shampa |
48 |
<button type="submit" class="collection-summary-fetch-report">Fetch Report</button>
|
|
|
49 |
|
| 34509 |
ranu |
50 |
<button type="submit" class="download-collection-summary">Download Report</button>
|
|
|
51 |
#else
|
|
|
52 |
#springMessage("reportdailycollection.from") <input type="date"
|
|
|
53 |
id="analysis-startDate-collection-summary"
|
|
|
54 |
placeholder="" name="" value="$startDate">
|
| 33067 |
shampa |
55 |
|
| 34509 |
ranu |
56 |
#springMessage("reportdailycollection.to") <input type="date" id="analysis-endDate-collection-summary"
|
|
|
57 |
placeholder="" value="$endDate">
|
|
|
58 |
|
|
|
59 |
<button type="submit" class="analysis-collection-summary-fetch-report" data-fofoid="$fofoId">Fetch
|
|
|
60 |
Report
|
|
|
61 |
</button>
|
|
|
62 |
|
|
|
63 |
<button type="submit" class="analysis-download-collection-summary" data-fofoid="$fofoId">Download
|
|
|
64 |
Report
|
|
|
65 |
</button>
|
|
|
66 |
#end
|
|
|
67 |
|
|
|
68 |
|
| 30164 |
manish |
69 |
</div>
|
|
|
70 |
|
|
|
71 |
<div class="col-lg-12">
|
|
|
72 |
<table class="table table-border table-condensed table-bordered" id="collectionSummaryTable" style="width:100%">
|
|
|
73 |
|
|
|
74 |
<thead class="row htable" style="background:#F5F5F5;">
|
|
|
75 |
|
|
|
76 |
<tr style="color:black;">
|
| 32771 |
raveendra. |
77 |
<th>#springMessage("reportdailycollection.date")</th>
|
| 32779 |
shampa |
78 |
<th>#springMessage("reportdailycollection.referencetype")</th>
|
| 32771 |
raveendra. |
79 |
<th>#springMessage("reportdailycollection.cash")</th>
|
|
|
80 |
<th>#springMessage("reportdailycollection.pinelabs")</th>
|
| 32779 |
shampa |
81 |
<th>#springMessage("reportdailycollection.bajajfinserv")</th>
|
|
|
82 |
<th>#springMessage("reportdailycollection.homecredit")</th>
|
| 32771 |
raveendra. |
83 |
<th>#springMessage("reportdailycollection.paymt")</th>
|
|
|
84 |
<th>#springMessage("reportdailycollection.capitalfirst")</th>
|
|
|
85 |
<th>#springMessage("reportdailycollection.zestmoney")</th>
|
| 32779 |
shampa |
86 |
<th>#springMessage("reportdailycollection.samsungsure")</th>
|
| 32771 |
raveendra. |
87 |
<th>#springMessage("reportdailycollection.totalamount")</th>
|
| 30164 |
manish |
88 |
|
|
|
89 |
|
|
|
90 |
</tr>
|
|
|
91 |
</thead>
|
|
|
92 |
<tbody>
|
|
|
93 |
#foreach($collectionSummary in $collectionSummaryList )
|
|
|
94 |
<tr>
|
|
|
95 |
<td>$collectionSummary.getDate().format($datehiphenFormatter)</td>
|
|
|
96 |
<td>$collectionSummary.getReferenceType()</td>
|
|
|
97 |
<td>$collectionSummary.getCash()</td>
|
|
|
98 |
<td>$collectionSummary.getPinelabs()</td>
|
|
|
99 |
<td>$collectionSummary.getBajajFinserv()</td>
|
|
|
100 |
<td>$collectionSummary.getHomeCredit()</td>
|
|
|
101 |
<td>$collectionSummary.getPaytm()</td>
|
|
|
102 |
|
|
|
103 |
<td>$collectionSummary.getCapitalFirst()</td>
|
|
|
104 |
<td>$collectionSummary.getZestMoney()</td>
|
|
|
105 |
<td>$collectionSummary.getSamsungSure()</td>
|
|
|
106 |
<td>$collectionSummary.getTotalAmount()</td>
|
|
|
107 |
|
|
|
108 |
</tr>
|
|
|
109 |
#end
|
|
|
110 |
|
|
|
111 |
</tbody>
|
|
|
112 |
|
|
|
113 |
</table>
|
|
|
114 |
</div>
|
|
|
115 |
|
|
|
116 |
</section>
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
<script>
|
|
|
121 |
|
|
|
122 |
var dtable = $('#collectionSummaryTable').DataTable(
|
|
|
123 |
{
|
|
|
124 |
|
|
|
125 |
"bPaginate": true,
|
|
|
126 |
"bLengthChange": true,
|
|
|
127 |
"bFilter": true,
|
|
|
128 |
"bInfo": false,
|
|
|
129 |
"bAutoWidth": false,
|
|
|
130 |
"pageLength": 20,
|
|
|
131 |
|
|
|
132 |
});
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
</script>
|
| 33092 |
tejus.loha |
137 |
#if($isAdmin)
|
|
|
138 |
<script type="text/javascript">
|
|
|
139 |
$(function () {
|
|
|
140 |
getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
|
|
|
141 |
partnerId = selectedPartner.partnerId;
|
|
|
142 |
|
|
|
143 |
console.log(partnerId);
|
|
|
144 |
});
|
|
|
145 |
});
|
| 34066 |
aman.kumar |
146 |
$(function () {
|
|
|
147 |
$('#fofo-users').on('change', function () {
|
|
|
148 |
var selectedFofoId = $(this).val();
|
|
|
149 |
if (selectedFofoId) {
|
|
|
150 |
partnerId = selectedFofoId;
|
|
|
151 |
console.log("Partner ID set to:", partnerId);
|
|
|
152 |
} else {
|
| 36080 |
aman |
153 |
alert("Please select a valid Partner ID.");
|
| 34066 |
aman.kumar |
154 |
}
|
|
|
155 |
});
|
|
|
156 |
});
|
| 33092 |
tejus.loha |
157 |
</script>
|
|
|
158 |
+#end
|
| 30164 |
manish |
159 |
|