Subversion Repositories SmartDukaan

Rev

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

Rev 32299 Rev 32331
Line 266... Line 266...
266
 
266
 
267
 
267
 
268
	$(document).on('click', "#scheme-imei-wise-search-button", function() {
268
	$(document).on('click', "#scheme-imei-wise-search-button", function() {
269
		var searchText = $("#scheme-imei-wise-search-text").val();
269
		var searchText = $("#scheme-imei-wise-search-text").val();
270
		var date = $(".schemes-date").val();
270
		var date = $(".schemes-date").val();
271
		if (typeof (searchText) == "undefined" || !searchText) {
271
		if (typeof (searchText) === "undefined" || !searchText) {
272
			searchText = "";
272
			searchText = "";
273
			alert("please select imei");
273
			alert("please select imei");
274
			return;
274
			return;
275
		}
275
		}
276
		if (typeof imei != "undefined") {
276
		if (typeof imei !== "undefined") {
277
			console.log(imei);
277
			console.log(imei);
278
			var searchText = $("#scheme-imei-wise-search-text").val();
278
			var searchText = $("#scheme-imei-wise-search-text").val();
279
 
279
 
280
			if ((searchText)) {
280
			if ((searchText)) {
281
				doGetAjaxRequestHandler(`${context}/getSchemesByImei?searchImei=${searchText}`, function(response) {
281
				doGetAjaxRequestHandler(`${context}/getSchemesByImei?searchImei=${searchText}`, function(response) {
Line 283... Line 283...
283
					$('#scheme-imei-search-text').val(searchText);
283
					$('#scheme-imei-search-text').val(searchText);
284
 
284
 
285
				});
285
				});
286
			}
286
			}
287
		} else {
287
		} else {
288
			console.log("reeffff")
288
			console.log("reeffff");
289
			alert("Data No Found")
289
			alert("Data No Found");
290
		}
290
		}
291
	});
291
	});
292
	$(document).on('click', ".categoryWiseSchemeHistory",
292
	$(document).on('click', ".categoryWiseSchemeHistory",
293
		function() {
293
		function() {
294
			var category = $('#partner-category').val();
294
			var category = $('#partner-category').val();
Line 473... Line 473...
473
 
473
 
474
function brandWiseIncome(brand, month, status) {
474
function brandWiseIncome(brand, month, status) {
475
	console.log(brand);
475
	console.log(brand);
476
	console.log(month);
476
	console.log(month);
477
 
477
 
478
	doGetAjaxRequestHandler(context + "/brandWiseIncome?brand=" + brand + "&month=" + month + "&status=" + status, function(
478
	doGetAjaxRequestHandler(`${context}/brandWiseIncome?brand=${brand}&month=${month}`, function (
479
		response) {
479
		response) {
480
		$('.imei-wise-income-container').html('');
480
		$('.imei-wise-income-container').html('');
481
		$('.brand-wise-income-container').html(response);
481
		$('.brand-wise-income-container').html(response);
482
	});
482
	});
483
}
483
}