Subversion Repositories SmartDukaan

Rev

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

Rev 23629 Rev 23637
Line 41... Line 41...
41
	
41
	
42
	$(".download_aging_report").live('click', function() {
42
	$(".download_aging_report").live('click', function() {
43
		downloadAgingReport();
43
		downloadAgingReport();
44
	});
44
	});
45
	
45
	
-
 
46
	$(".download_reports").live('click', function() {
-
 
47
		downloadReports();
-
 
48
	});
-
 
49
	
46
	$(".item-ledger-report-download-page").live('click', function() {
50
	$(".item-ledger-report-download-page").live('click', function() {
47
		loadItemLedgerReportDownloadPage("main-content");
51
		loadItemLedgerReportDownloadPage("main-content");
48
	});
52
	});
49
	
53
	
50
	$(".bad_inventory").live('click', function() {
54
	$(".bad_inventory").live('click', function() {
Line 155... Line 159...
155
	doAjaxPostDownload(context+"/downloadInventoryItemAgingByInterval",
159
	doAjaxPostDownload(context+"/downloadInventoryItemAgingByInterval",
156
			data, "InventoryItemAging.xlsx");
160
			data, "InventoryItemAging.xlsx");
157
	
161
	
158
}
162
}
159
 
163
 
-
 
164
function downloadReports(){
-
 
165
	doGetAjaxRequestHandler(context+"/reports/", function(response){
-
 
166
		$('#main-content').html(response);
-
 
167
	});
-
 
168
}
-
 
169
 
160
function downloadItemLedgerReport(){
170
function downloadItemLedgerReport(){
161
	console.log("downloadItemLedgerReport Button clicked")
171
	console.log("downloadItemLedgerReport Button clicked")
162
	var startDateTime = $('input[name="startDateTime"]').val();
172
	var startDateTime = $('input[name="startDateTime"]').val();
163
	console.log("startDateTime : "+startDateTime);
173
	console.log("startDateTime : "+startDateTime);
164
	var endDateTime = $('input[name="endDateTime"]').val();
174
	var endDateTime = $('input[name="endDateTime"]').val();