Subversion Repositories SmartDukaan

Rev

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

Rev 32074 Rev 32130
Line 987... Line 987...
987
			= setTimeout(() => func.apply(context, args), delay)
987
			= setTimeout(() => func.apply(context, args), delay)
988
	}
988
	}
989
}
989
}
990
 
990
 
991
 
991
 
992
function ExportToExcel(container, type, fn) {
992
function ExportToExcel(container, fn) {
993
	let tableId = $(container).data('tableid');
993
	let tableId = $(container).data('tableid');
994
	var elt = document.getElementById(tableId);
994
	var elt = document.getElementById(tableId);
995
	if ($.fn.DataTable.isDataTable(`#${tableId}`)) {
995
	if ($.fn.DataTable.isDataTable(`#${tableId}`)) {
996
		elt = $(`#${tableId}`).DataTable().table(0).container();
996
		elt = $(`#${tableId}`).DataTable().table(0).container();
997
	}
997
	}
998
	var wb = XLSX.utils.table_to_book(elt, { sheet: "sheet1" });
998
	var wb = XLSX.utils.table_to_book(elt, {sheet: "sheet1"});
999
	XLSX.writeFile(wb, fn || ('MySheetName.' + (type || 'xlsx')));
999
	XLSX.writeFile(wb, fn + '.xlsx');
1000
}
1000
}
1001
 
1001
 
1002
 
1002
 
1003
$(document).on('click', ".manage-pcm", function() {
1003
$(document).on('click', ".manage-pcm", function() {
1004
	managePCM();
1004
	managePCM();
Line 1012... Line 1012...
1012
 
1012
 
1013
 
1013
 
1014
 
1014
 
1015
$(document).on('click', ".digify-retailer-login", function() {
1015
$(document).on('click', ".digify-retailer-login", function() {
1016
 
1016
 
1017
	doGetAjaxRequestHandler(context + "/digify/register", function(response) {
1017
	doGetAjaxRequestHandler(context + "/digify/register", function (response) {
1018
 
1018
 
1019
 
1019
 
1020
		$('#main-content').html(response);
1020
		$('#main-content').html(response);
1021
 
1021
 
1022
	});
1022
	});
1023
	//$('#main-content').html(`<iframe class="wrapper" src="${context}/digify/register" style="width:100%;height:100vh"> </iframe>`);
1023
	//$('#main-content').html(`<iframe class="wrapper" src="${context}/digify/register" style="width:100%;height:100vh"> </iframe>`);
1024
	//$('#main-content').html(`<a class="wrapper" href="${context}/digify/register" target="_blank" style="width:100%;height:100vh"> </a>`);
1024
	//$('#main-content').html(`<a class="wrapper" href="${context}/digify/register" target="_blank" style="width:100%;height:100vh"> </a>`);
1025
 
1025
 
1026
});
1026
});
1027
 
1027
 
-
 
1028
$(document).on('click', '.warehousewise_stock', function () {
-
 
1029
	doGetAjaxRequestHandler(`${context}/warehouse/stock-qty`, function (response) {
-
 
1030
		$('#main-content').html(response);
-
 
1031
	});
-
 
1032
});
-
 
1033
 
1028
 
1034
 
1029
 
1035
 
1030
 
1036
 
1031
 
1037
 
1032
 
1038