Subversion Repositories SmartDukaan

Rev

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

Rev 33067 Rev 33091
Line 31... Line 31...
31
		function(response) {
31
		function(response) {
32
			$('#' + 'main-content').html(response);
32
			$('#' + 'main-content').html(response);
33
		});
33
		});
34
});
34
});
35
 
35
 
36
$(document).on('click', ".scheme-payout-report", function() {
36
$(document).on('click', ".scheme-payout", function() {
37
 
37
 
38
	doGetAjaxRequestHandler(context + "/schemePayoutReport",
38
	doGetAjaxRequestHandler(context + "/schemePayoutReport",
39
		function(response) {
39
		function(response) {
40
			$('#' + 'main-content').html(response);
40
			$('#' + 'main-content').html(response);
41
		});
41
		});
42
});
42
});
43
$(document).on('click', ".offer-payout-dump-report", function() {
43
$(document).on('click', ".partner-reports", function() {
44
console.log('HELLO');
44
console.log('HELLO');
45
	doGetAjaxRequestHandler(context + "/offerPayoutReport",
45
	doGetAjaxRequestHandler(context + "/offerPayoutReport",
46
		function(response) {
46
		function(response) {
47
			$('#' + 'main-content').html(response);
47
			$('#' + 'main-content').html(response);
48
		});
48
		});
Line 86... Line 86...
86
		});
86
		});
87
});
87
});
88
 
88
 
89
 
89
 
90
$(document).on('click', ".partner-collection-summary", function() {
90
$(document).on('click', ".partner-collection-summary", function() {
91
	console.log('HELO');
-
 
-
 
91
 
92
	doGetAjaxRequestHandler(context + "/collectionSummary",
92
	doGetAjaxRequestHandler(context + "/collectionSummary",
93
		function(response) {
93
		function(response) {
94
			$('#' + 'main-content').html(response);
94
			$('#' + 'main-content').html(response);
95
		});
95
		});
96
});
96
});
Line 248... Line 248...
248
 
248
 
249
		alert("end date is not be empty!!");
249
		alert("end date is not be empty!!");
250
		return;
250
		return;
251
	}
251
	}
252
 
252
 
253
	 doGetAjaxRequestHandler(context + "/schemePayoutFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
253
	let endPoint = `${context}/schemePayoutFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
-
 
254
	   if (typeof partnerId != "undefined") {
-
 
255
		        endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
256
		   }
-
 
257
 
-
 
258
		    doGetAjaxRequestHandler(endPoint,
254
     		function(response) {
259
			        function (response) {
255
     			$('#' + 'main-content').html(response);
260
				            $('#' + 'main-content').html(response);
256
     		});
261
				       });
257
});
262
});
258
 
263
 
259
$(document).on('click', ".download-offer-payout-dump-report", function() {
264
$(document).on('click', ".download-offer-payout-dump-report", function() {
260
 
265
 
261
	var startDate = $("#startDate-offer-payout-dump").val();
266
	var startDate = $("#startDate-offer-payout-dump").val();
Line 288... Line 293...
288
	if (endDate == "" || endDate == undefined) {
293
	if (endDate == "" || endDate == undefined) {
289
 
294
 
290
		alert("end date is not be empty!!");
295
		alert("end date is not be empty!!");
291
		return;
296
		return;
292
	}
297
	}
-
 
298
	let endPoint = `${context}/offerPayoutFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
-
 
299
	if (typeof partnerId != "undefined") {
-
 
300
		endPoint = `${endPoint}&fofoId=${partnerId}`;
-
 
301
	}
293
 
302
 
294
	 doGetAjaxRequestHandler(context + "/offerPayoutFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
303
	doGetAjaxRequestHandler(endPoint,
295
     		function(response) {
304
		function (response) {
296
     			$('#' + 'main-content').html(response);
305
			$('#' + 'main-content').html(response);
297
     		});
306
		});
298
});
307
});
299
 
308
 
300
 
309
 
301
$(document).on('click', ".franchisee_sales", function() {
310
$(document).on('click', ".franchisee_sales", function() {
302
	console.log('HELLO');
311
	console.log('HELLO');