| 33775 |
ranu |
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>Account Statement</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>Account Statement</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
|
|
11 |
<div class="row col-lg-12" style="float: right;">
|
|
|
12 |
|
|
|
13 |
<div class="col-lg-12 form-group">
|
|
|
14 |
<table>
|
|
|
15 |
<tr>
|
|
|
16 |
#if($isAdmin)
|
| 34066 |
aman.kumar |
17 |
#if($isRBM)
|
|
|
18 |
<div style="padding: 5px 10px; margin-top: 2px"
|
|
|
19 |
class="col-lg-2 form-group">
|
|
|
20 |
<select class="form-control input-sm" id="fofo-users" name="Item"
|
|
|
21 |
placeholder="Partners">
|
|
|
22 |
<option value="" disabled selected>Partners</option>
|
|
|
23 |
#foreach($fofoId in $customRetailersMap.keySet())
|
|
|
24 |
<option value="$fofoId"
|
|
|
25 |
data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
|
|
|
26 |
#end
|
|
|
27 |
</select>
|
|
|
28 |
</div>
|
|
|
29 |
#else
|
|
|
30 |
<td style="padding: 5px 10px;">
|
|
|
31 |
<input placeholder="Enter Partner Name" type="text"
|
|
|
32 |
class="typeahead form-control"
|
|
|
33 |
id="typeaheadpartner"
|
|
|
34 |
name="Item" data-provide="typeahead" autocomplete="off">
|
|
|
35 |
<input id="partnerId" type="hidden">
|
|
|
36 |
</td>
|
|
|
37 |
|
|
|
38 |
#end
|
| 33775 |
ranu |
39 |
#end
|
| 34505 |
ranu |
40 |
|
|
|
41 |
#if(!$isAnalysis)
|
|
|
42 |
<td style="padding: 5px 10px;"><input placeholder="Set Duration" name="accountStatementPeriod"
|
|
|
43 |
id="accountStatementPeriod"
|
|
|
44 |
type="text" value="" class="form-control input-sm"></td>
|
|
|
45 |
<td style="padding: 5px 10px;"><input
|
|
|
46 |
class="btn btn-primary fetch-partner-account-statement-report disabled hidden"
|
|
|
47 |
type="button"
|
|
|
48 |
value="Submit"></td>
|
|
|
49 |
<td style="padding: 5px 10px;"><input
|
|
|
50 |
class="btn btn-primary download-partner-account-statement-report" type="button"
|
|
|
51 |
value="Download"></td>
|
|
|
52 |
#else
|
|
|
53 |
<td style="padding: 5px 10px;"><input placeholder="Set Duration"
|
|
|
54 |
name="analysis-accountStatementPeriod"
|
|
|
55 |
id="analysis-accountStatementPeriod"
|
|
|
56 |
type="text" value="" class="form-control input-sm"></td>
|
|
|
57 |
<td style="padding: 5px 10px;"><input
|
|
|
58 |
class="btn btn-primary analysis-fetch-partner-account-statement-report"
|
|
|
59 |
type="button"
|
|
|
60 |
value="Submit" data-fofoid="$fofoId"></td>
|
|
|
61 |
<td style="padding: 5px 10px;"><input
|
|
|
62 |
class="btn btn-primary analysis-download-partner-account-statement-report" type="button"
|
|
|
63 |
value="Download" data-fofoid="$fofoId"></td>
|
|
|
64 |
|
|
|
65 |
#end
|
|
|
66 |
|
|
|
67 |
|
| 33775 |
ranu |
68 |
</tr>
|
|
|
69 |
</table>
|
|
|
70 |
</div>
|
|
|
71 |
|
|
|
72 |
</div>
|
|
|
73 |
<div class="account-statement-conatiner">
|
|
|
74 |
|
|
|
75 |
</div>
|
|
|
76 |
|
|
|
77 |
</section>
|
|
|
78 |
|
|
|
79 |
<script type="text/javascript">
|
|
|
80 |
$('input[name="accountStatementPeriod"]').daterangepicker(getRangedDatePicker());
|
| 34505 |
ranu |
81 |
$('input[name="analysis-accountStatementPeriod"]').daterangepicker(getRangedDatePicker());
|
| 33775 |
ranu |
82 |
</script>
|
|
|
83 |
|
|
|
84 |
<script>
|
| 33809 |
ranu |
85 |
var dtable = $('#accountStatementSummaryReport').DataTable(
|
| 33775 |
ranu |
86 |
{
|
|
|
87 |
"scrollX": true,
|
|
|
88 |
"bPaginate": true,
|
|
|
89 |
"bLengthChange": true,
|
|
|
90 |
"bFilter": true,
|
|
|
91 |
"bInfo": false,
|
|
|
92 |
"bAutoWidth": false,
|
|
|
93 |
});
|
|
|
94 |
|
|
|
95 |
</script>
|
|
|
96 |
|
|
|
97 |
#if($isAdmin)
|
|
|
98 |
<script type="text/javascript">
|
|
|
99 |
$(function () {
|
|
|
100 |
getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
|
|
|
101 |
partnerId = selectedPartner.partnerId;
|
|
|
102 |
|
|
|
103 |
console.log(partnerId);
|
|
|
104 |
});
|
|
|
105 |
});
|
| 34066 |
aman.kumar |
106 |
$(function () {
|
|
|
107 |
$('#fofo-users').on('change', function () {
|
|
|
108 |
var selectedFofoId = $(this).val();
|
|
|
109 |
if (selectedFofoId) {
|
|
|
110 |
partnerId = selectedFofoId;
|
|
|
111 |
console.log("Partner ID set to:", partnerId);
|
|
|
112 |
} else {
|
| 36080 |
aman |
113 |
alert("Please select a valid Partner ID.");
|
| 34066 |
aman.kumar |
114 |
}
|
|
|
115 |
});
|
|
|
116 |
});
|
| 33775 |
ranu |
117 |
</script>
|
| 34066 |
aman.kumar |
118 |
#end
|