Subversion Repositories SmartDukaan

Rev

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

Rev 33010 Rev 33067
Line 53... Line 53...
53
	doGetAjaxRequestHandler(context + "/pendingIndentReport",
53
	doGetAjaxRequestHandler(context + "/pendingIndentReport",
54
		function(response) {
54
		function(response) {
55
			$('#' + 'main-content').html(response);
55
			$('#' + 'main-content').html(response);
56
		});
56
		});
57
});
57
});
-
 
58
$(document).on('click', '.pending-indent-fetch-report', function() {
-
 
59
	var startDate = $("#startDate-pending-indent-report").val();
-
 
60
 
-
 
61
	var endDate = $("#endDate-pending-indent-report").val();
-
 
62
 
-
 
63
	if (startDate == "" || startDate == undefined) {
-
 
64
 
-
 
65
		alert("start date is not be empty!!");
-
 
66
		return;
-
 
67
	}
-
 
68
	if (endDate == "" || endDate == undefined) {
-
 
69
 
-
 
70
		alert("end date is not be empty!!");
-
 
71
		return;
-
 
72
	}
-
 
73
	doGetAjaxRequestHandler(context + "/pendingIndentFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
-
 
74
		function(response) {
-
 
75
			$('#' + 'main-content').html(response);
-
 
76
		});
-
 
77
});
-
 
78
 
-
 
79
 
58
 
80
 
59
$(document).on('click', ".wallet_statement", function() {
81
$(document).on('click', ".wallet_statement", function() {
60
	console.log('HELLO');
82
	console.log('HELLO');
61
	doGetAjaxRequestHandler(context + "/walletSummaryReport",
83
	doGetAjaxRequestHandler(context + "/walletSummaryReport",
62
		function(response) {
84
		function(response) {
63
			$('#' + 'main-content').html(response);
85
			$('#' + 'main-content').html(response);
64
		});
86
		});
65
});
87
});
66
 
88
 
67
 
89
 
68
$(document).on('click', ".collection-summary", function() {
90
$(document).on('click', ".partner-collection-summary", function() {
69
	console.log('HELO');
91
	console.log('HELO');
70
	doGetAjaxRequestHandler(context + "/collectionSummary",
92
	doGetAjaxRequestHandler(context + "/collectionSummary",
71
		function(response) {
93
		function(response) {
72
			$('#' + 'main-content').html(response);
94
			$('#' + 'main-content').html(response);
73
		});
95
		});
Line 106... Line 128...
106
 
128
 
107
		alert("end date is not be empty!!");
129
		alert("end date is not be empty!!");
108
		return;
130
		return;
109
	}
131
	}
110
 
132
 
111
	 doGetAjaxRequestHandler(context + "/collectionSummary",
133
	 doGetAjaxRequestHandler(context + "/collectionSummaryFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
112
     		function(response) {
134
     		function(response) {
113
     			$('#' + 'main-content').html(response);
135
     			$('#' + 'main-content').html(response);
114
     		});
136
     		});
115
});
137
});
116
 
138
 
Line 146... Line 168...
146
	if (endDate == "" || endDate == undefined) {
168
	if (endDate == "" || endDate == undefined) {
147
 
169
 
148
		alert("end date is not be empty!!");
170
		alert("end date is not be empty!!");
149
		return;
171
		return;
150
	}
172
	}
151
	doGetAjaxRequestHandler(context + "/priceDropReport",
173
	doGetAjaxRequestHandler(context + "/priceDropFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
152
    		function(response) {
174
    		function(response) {
153
    			$('#' + 'main-content').html(response);
175
    			$('#' + 'main-content').html(response);
154
    		});
176
    		});
155
 
177
 
156
});
178
});
Line 172... Line 194...
172
	window.location.href = context + "/downloadInvoiceSchemeOutSummaryReport";
194
	window.location.href = context + "/downloadInvoiceSchemeOutSummaryReport";
173
 
195
 
174
});
196
});
175
 
197
 
176
$(document).on('click', ".download-pending-indent-report", function() {
198
$(document).on('click', ".download-pending-indent-report", function() {
-
 
199
	var startDate = $("#startDate-pending-indent-report").val();
177
 
200
 
178
	window.location.href = context + "/pendingIndentReportDownload";
201
	var endDate = $("#endDate-pending-indent-report").val();
179
});
-
 
180
$(document).on('click', ".pending-indent-fetch-report", function() {
-
 
181
 
202
 
-
 
203
	if (startDate == "" || startDate == undefined) {
-
 
204
		alert("start date is not be empty!!");
-
 
205
		return;
-
 
206
	}
-
 
207
	if (endDate == "" || endDate == undefined) {
182
 
208
 
-
 
209
		alert("end date is not be empty!!");
-
 
210
		return;
-
 
211
	}
183
 
212
 
184
	doGetAjaxRequestHandler(context + "/pendingIndentReport",
213
	window.location.href = context + "/pendingIndentReportDownload";
185
    		function(response) {
-
 
186
    			$('#' + 'main-content').html(response);
-
 
187
    		});
-
 
188
});
214
});
189
 
215
 
190
 
216
 
-
 
217
 
191
$(document).on('click', ".download-scheme-payout-report", function() {
218
$(document).on('click', ".download-scheme-payout-report", function() {
192
 
219
 
193
	var startDate = $("#startDate-scheme-payout").val();
220
	var startDate = $("#startDate-scheme-payout").val();
194
 
221
 
195
	var endDate = $("#endDate-scheme-payout").val();
222
	var endDate = $("#endDate-scheme-payout").val();
Line 307... Line 334...
307
	if (endDate == "" || endDate == undefined) {
334
	if (endDate == "" || endDate == undefined) {
308
 
335
 
309
		alert("end date is not be empty!!");
336
		alert("end date is not be empty!!");
310
		return;
337
		return;
311
	}
338
	}
312
	doGetAjaxRequestHandler(context + "/walletSummaryReport",
339
	doGetAjaxRequestHandler(context + "/walletSummaryFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
313
    		function(response) {
340
    		function(response) {
314
    			$('#' + 'main-content').html(response);
341
    			$('#' + 'main-content').html(response);
315
    		});
342
    		});
316
});
343
});
317
 
344