Subversion Repositories SmartDukaan

Rev

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

Rev 23783 Rev 23886
Line 57... Line 57...
57
	
57
	
58
	$("#good-inventory-paginated .next").live('click', function() {
58
	$("#good-inventory-paginated .next").live('click', function() {
59
		var searchText = $("#good-inventory-search-text").val();
59
		var searchText = $("#good-inventory-search-text").val();
60
		if (typeof (searchText) == "undefined" || !searchText){
60
		if (typeof (searchText) == "undefined" || !searchText){
61
			searchText = "";
61
			searchText = "";
-
 
62
			
62
		}
63
		}
63
		var params = {};
64
		var params = {};
64
		params['searchTerm'] = searchText;
65
		params['searchTerm'] = searchText;
65
		loadPaginatedNextItems('/getPaginatedCurrentInventorySnapshot', params, 'good-inventory-paginated', 'good-inventory-table', null);
66
		loadPaginatedNextItems('/getPaginatedCurrentInventorySnapshot', params, 'good-inventory-paginated', 'good-inventory-table', null);
66
		$(this).blur();
67
		$(this).blur();
Line 167... Line 168...
167
	});
168
	});
168
}
169
}
169
 
170
 
170
function downloadItemLedgerReport(){
171
function downloadItemLedgerReport(){
171
	console.log("downloadItemLedgerReport Button clicked")
172
	console.log("downloadItemLedgerReport Button clicked")
172
	var startDateTime = $('input[name="startDateTime"]').val();
-
 
173
	console.log("startDateTime : "+startDateTime);
-
 
174
	var endDateTime = $('input[name="endDateTime"]').val();
-
 
175
	console.log("endDateTime : "+endDateTime);
-
 
176
	//data = JSON.stringify([5,10,15,20,25,30,35,40]),
-
 
177
	doAjaxGetDownload(context+"/itemLedger/complete/download?startDateTime="+startDateTime+"&endDateTime="+endDateTime,
173
	doAjaxGetDownload(context+"/itemLedger/complete/download?startDateTime="+startDate+"&endDateTime="+endDate,
178
			"ItemCompleteLedegerReport.xlsx");
174
			"ItemCompleteLedegerReport.xlsx");
179
}
175
}
180
 
176
 
181
 
177
 
182
function getItemAgingNextPreviousItems(offset, searchContent){
178
function getItemAgingNextPreviousItems(offset, searchContent){