Subversion Repositories SmartDukaan

Rev

Rev 33096 | Rev 33775 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33096 Rev 33102
Line 112... Line 112...
112
	if (endDate == "" || endDate == undefined) {
112
	if (endDate == "" || endDate == undefined) {
113
 
113
 
114
		alert("end date is not be empty!!");
114
		alert("end date is not be empty!!");
115
		return;
115
		return;
116
	}
116
	}
117
	window.location.href = context + "/downloadCollectionSummary?startDate=" + startDate + "&endDate=" + endDate;
117
	let endPoint = `${context}/downloadCollectionSummary?startDate=${startDate}&endDate=${endDate}`;
-
 
118
	if (typeof partnerId != "undefined") {
-
 
119
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
120
	}
-
 
121
 
-
 
122
	window.location.href = endPoint;
118
 
123
 
119
});
124
});
120
$(document).on('click', ".collection-summary-fetch-report", function() {
125
$(document).on('click', ".collection-summary-fetch-report", function() {
121
 
126
 
122
	var startDate = $("#startDate-collection-summary").val();
127
	var startDate = $("#startDate-collection-summary").val();
Line 159... Line 164...
159
	if (endDate == "" || endDate == undefined) {
164
	if (endDate == "" || endDate == undefined) {
160
 
165
 
161
		alert("end date is not be empty!!");
166
		alert("end date is not be empty!!");
162
		return;
167
		return;
163
	}
168
	}
164
	window.location.href = context + "/downloadPriceDropReport?startDate=" + startDate + "&endDate=" + endDate;
169
	let endPoint = `${context}/downloadPriceDropReport?startDate=${startDate}&endDate=${endDate}`;
-
 
170
	if (typeof partnerId != "undefined") {
-
 
171
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
172
	}
-
 
173
 
-
 
174
	window.location.href = endPoint;
-
 
175
 
165
 
176
 
166
});
177
});
167
$(document).on('click', '.price-drop-fetch-report', function() {
178
$(document).on('click', '.price-drop-fetch-report', function() {
168
	var startDate = $("#startDate-price-drop-report").val();
179
	var startDate = $("#startDate-price-drop-report").val();
169
 
180
 
Line 222... Line 233...
222
 
233
 
223
		alert("end date is not be empty!!");
234
		alert("end date is not be empty!!");
224
		return;
235
		return;
225
	}
236
	}
226
 
237
 
-
 
238
	let endPoint = `${context}/pendingIndentReportDownload?startDate=${startDate}&endDate=${endDate}`;
-
 
239
	if (typeof partnerId != "undefined") {
-
 
240
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
241
	}
-
 
242
 
227
	window.location.href = context + "/pendingIndentReportDownload";
243
	window.location.href = endPoint;
228
});
244
});
229
 
245
 
230
 
246
 
231
 
247
 
232
$(document).on('click', ".download-scheme-payout-report", function() {
248
$(document).on('click', ".download-scheme-payout-report", function() {
Line 242... Line 258...
242
	if (endDate == "" || endDate == undefined) {
258
	if (endDate == "" || endDate == undefined) {
243
 
259
 
244
		alert("end date is not be empty!!");
260
		alert("end date is not be empty!!");
245
		return;
261
		return;
246
	}
262
	}
-
 
263
	let endPoint = `${context}/schemePayoutReportDownload?startDate=${startDate}&endDate=${endDate}`;
-
 
264
	if (typeof partnerId != "undefined") {
-
 
265
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
266
	}
247
 
267
 
248
	window.location.href = context + "/schemePayoutReportDownload?startDate=" + startDate + "&endDate=" + endDate;
268
	window.location.href = endPoint;
249
});
269
});
250
 
270
 
251
$(document).on('click', ".scheme-payout-fetch-report", function() {
271
$(document).on('click', ".scheme-payout-fetch-report", function() {
252
 
272
 
253
	var startDate = $("#startDate-scheme-payout").val();
273
	var startDate = $("#startDate-scheme-payout").val();
Line 288... Line 308...
288
	if (endDate == "" || endDate == undefined) {
308
	if (endDate == "" || endDate == undefined) {
289
 
309
 
290
		alert("end date is not be empty!!");
310
		alert("end date is not be empty!!");
291
		return;
311
		return;
292
	}
312
	}
293
	window.location.href = context + "/offerPayoutDumpReportDownload?startDate=" + startDate + "&endDate=" + endDate;
313
	let endPoint = `${context}/offerPayoutDumpReportDownload?startDate=${startDate}&endDate=${endDate}`;
-
 
314
	if (typeof partnerId != "undefined") {
-
 
315
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
316
	}
-
 
317
 
-
 
318
	window.location.href = endPoint;
-
 
319
 
-
 
320
 
294
 
321
 
295
 
322
 
296
});
323
});
297
$(document).on('click', ".offer-payout-fetch-report", function() {
324
$(document).on('click', ".offer-payout-fetch-report", function() {
298
 
325
 
Line 368... Line 395...
368
	if (endDate == "" || endDate == undefined) {
395
	if (endDate == "" || endDate == undefined) {
369
 
396
 
370
		alert("end date is not be empty!!");
397
		alert("end date is not be empty!!");
371
		return;
398
		return;
372
	}
399
	}
373
	window.location.href = context + "/downloadWalletSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
400
	let endPoint = `${context}/downloadWalletSummaryReport?startDate=${startDate}&endDate=${endDate}`;
-
 
401
	if (typeof partnerId != "undefined") {
-
 
402
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
403
	}
-
 
404
	window.location.href = endPoint;
374
});
405
});
375
$(document).on('click', '.wallet-summary-fetch-report', function() {
406
$(document).on('click', '.wallet-summary-fetch-report', function() {
376
	var startDate = $("#startDate-wallet-summary-report").val();
407
	var startDate = $("#startDate-wallet-summary-report").val();
377
 
408
 
378
	var endDate = $("#endDate-wallet-summary-report").val();
409
	var endDate = $("#endDate-wallet-summary-report").val();
Line 384... Line 415...
384
	if (endDate == "" || endDate == undefined) {
415
	if (endDate == "" || endDate == undefined) {
385
 
416
 
386
		alert("end date is not be empty!!");
417
		alert("end date is not be empty!!");
387
		return;
418
		return;
388
	}
419
	}
389
//	doGetAjaxRequestHandler(context + "/walletSummaryFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
-
 
390
//    		function(response) {
-
 
391
//    			$('#' + 'main-content').html(response);
-
 
392
//    		});
-
 
393
 
420
 
394
	let endPoint = `${context}/walletSummaryFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
421
	let endPoint = `${context}/walletSummaryFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
395
	if (typeof partnerId != "undefined") {
422
	if (typeof partnerId != "undefined") {
396
		endPoint = `${endPoint}&fofoId=${partnerId}`;
423
		endPoint = `${endPoint}&fofoId=${partnerId}`;
397
	}
424
	}
Line 418... Line 445...
418
	if (endDate == "" || endDate == undefined) {
445
	if (endDate == "" || endDate == undefined) {
419
 
446
 
420
		alert("end date is not be empty!!");
447
		alert("end date is not be empty!!");
421
		return;
448
		return;
422
	}
449
	}
423
	window.location.href = context + "/downloadPartnerBillingSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
450
	let endPoint = `${context}/downloadPartnerBillingSummaryReport?startDate=${startDate}&endDate=${endDate}`;
-
 
451
	if (typeof partnerId != "undefined") {
-
 
452
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
453
	}
-
 
454
 
-
 
455
	window.location.href = endPoint;
424
});
456
});
425
$(document).on('click', '.billing-summary-fetch-report', function() {
457
$(document).on('click', '.billing-summary-fetch-report', function() {
426
	var startDate = $("#startDate-partner-billing-report").val();
458
	var startDate = $("#startDate-partner-billing-report").val();
427
 
459
 
428
	var endDate = $("#endDate-partner-billing-report").val();
460
	var endDate = $("#endDate-partner-billing-report").val();
Line 456... Line 488...
456
	if (endDate == "" || endDate == undefined) {
488
	if (endDate == "" || endDate == undefined) {
457
 
489
 
458
		alert("end date is not be empty!!");
490
		alert("end date is not be empty!!");
459
		return;
491
		return;
460
	}
492
	}
461
	window.location.href = context + "/downloadFranchiseeSales?startDate=" + startDate + "&endDate=" + endDate;
493
	let endPoint = `${context}/downloadFranchiseeSales?startDate=${startDate}&endDate=${endDate}`;
-
 
494
	if (typeof partnerId != "undefined") {
-
 
495
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
496
	}
-
 
497
	window.location.href = endPoint;
462
});
498
});
463
$(document).on('click', 'button.download-report', function() {
499
$(document).on('click', 'button.download-report', function() {
464
	var reportParams = {};
500
	var reportParams = {};
465
	var validated = true;
501
	var validated = true;
466
	$inputContainer.find("input.param,select.param").each(function(idx, inputElement) {
502
	$inputContainer.find("input.param,select.param").each(function(idx, inputElement) {