| Line 135... |
Line 135... |
| 135 |
</div>
|
135 |
</div>
|
| 136 |
</div>
|
136 |
</div>
|
| 137 |
#end
|
137 |
#end
|
| 138 |
</section>
|
138 |
</section>
|
| 139 |
<script type="text/javascript">
|
139 |
<script type="text/javascript">
|
| 140 |
$(function(){
|
140 |
$(function () {
|
| 141 |
$('input[name="walletRanges"]').daterangepicker(getRangedDatePicker(), dateRangeCallback);
|
141 |
$('input[name="walletRanges"]').daterangepicker(getRangedDatePicker());
|
| 142 |
$('.mk_fetch_statement').click(function(){
|
142 |
$('.mk_fetch_statement').click(function () {
|
| - |
|
143 |
let walletRangePicker = getDatesFromPicker('input[name="walletRanges"]');
|
| 143 |
if(typeof fofoId!="undefined") {
|
144 |
if (typeof fofoId != "undefined") {
|
| 144 |
window.location.href=context+"/wallet/statement?startDate="+startDate+"&endDate="+endDate+"&fofoId=" + fofoId+"&q="+new Date().getTime();
|
145 |
window.location.href = context + "/wallet/statement?startDate=" + walletRangePicker.startDate + "&endDate=" + walletRangePicker.endDate + "&fofoId=" + fofoId + "&q=" + new Date().getTime();
|
| 145 |
} else {
|
146 |
} else {
|
| 146 |
window.location.href=context+"/wallet/statement?startDate="+startDate+"&endDate="+endDate+"&q="+new Date().getTime();
|
147 |
window.location.href = context + "/wallet/statement?startDate=" + walletRangePicker.startDate + "&endDate=" + walletRangePicker.endDate + "&q=" + new Date().getTime();
|
| 147 |
}
|
148 |
}
|
| 148 |
});
|
149 |
});
|
| 149 |
$('.mk_fetch_account').click(function(){
|
150 |
$('.mk_fetch_account').click(function () {
|
| - |
|
151 |
let walletDateRanges = getDatesFromPicker('input[name="walletRanges"]');
|
| 150 |
if(typeof fofoId!="undefined") {
|
152 |
if (typeof fofoId != "undefined") {
|
| 151 |
window.location.href=context+"/account/statement?startDate="+startDate+"&endDate="+endDate+"&fofoId=" + fofoId+"&q="+new Date().getTime();
|
153 |
window.location.href = context + "/account/statement?startDate=" + walletDateRanges.startDate + "&endDate=" + walletDateRanges.endDate + "&fofoId=" + fofoId + "&q=" + new Date().getTime();
|
| 152 |
} else {
|
154 |
} else {
|
| 153 |
window.location.href=context+"/account/statement?startDate="+startDate+"&endDate="+endDate+"&q="+new Date().getTime();
|
155 |
window.location.href = context + "/account/statement?startDate=" + walletDateRanges.startDate + "&endDate=" + walletDateRanges.endDate + "&q=" + new Date().getTime();
|
| 154 |
}
|
156 |
}
|
| 155 |
});
|
157 |
});
|
| 156 |
$('.mk_closing_statement').click(function(){
|
158 |
$('.mk_closing_statement').click(function () {
|
| 157 |
var closingDate = $('.closingDate').val();
|
159 |
var closingDate = $('.closingDate').val();
|
| 158 |
if(closingDate == "") {
|
160 |
if (closingDate == "") {
|
| 159 |
alert("Closing date is required");
|
161 |
alert("Closing date is required");
|
| 160 |
return;
|
162 |
return;
|
| - |
|
163 |
}
|
| - |
|
164 |
window.location.href = context + "/account/closing-statements?closingDate=" + closingDate + "&q=" + new Date().getTime();
|
| 161 |
}
|
165 |
}
|
| 162 |
window.location.href=context+"/account/closing-statements?closingDate="+closingDate+"&q="+new Date().getTime();
|
- |
|
| 163 |
}
|
- |
|
| 164 |
);
|
166 |
);
|
| 165 |
getPartnerAheadOptions($("#partnerId"),function(selectedPartner){
|
167 |
getPartnerAheadOptions($("#partnerId"),function(selectedPartner){
|
| 166 |
fofoId = selectedPartner.partnerId;
|
168 |
fofoId = selectedPartner.partnerId;
|
| 167 |
$("#walletRanges").focus();
|
169 |
$("#walletRanges").focus();
|
| 168 |
});
|
170 |
});
|