Subversion Repositories SmartDukaan

Rev

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

Rev 31416 Rev 33010
Line 38... Line 38...
38
	doGetAjaxRequestHandler(context + "/schemePayoutReport",
38
	doGetAjaxRequestHandler(context + "/schemePayoutReport",
39
		function(response) {
39
		function(response) {
40
			$('#' + 'main-content').html(response);
40
			$('#' + 'main-content').html(response);
41
		});
41
		});
42
});
42
});
-
 
43
$(document).on('click', ".offer-payout-dump-report", function() {
-
 
44
console.log('HELLO');
-
 
45
	doGetAjaxRequestHandler(context + "/offerPayoutReport",
-
 
46
		function(response) {
-
 
47
			$('#' + 'main-content').html(response);
-
 
48
		});
-
 
49
});
43
 
50
 
44
$(document).on('click', ".pending-indent", function() {
51
$(document).on('click', ".pending-indent", function() {
45
 
52
 
46
	doGetAjaxRequestHandler(context + "/pendingIndentReport",
53
	doGetAjaxRequestHandler(context + "/pendingIndentReport",
47
		function(response) {
54
		function(response) {
48
			$('#' + 'main-content').html(response);
55
			$('#' + 'main-content').html(response);
49
		});
56
		});
50
});
57
});
51
 
58
 
52
$(document).on('click', ".wallet_statement", function() {
59
$(document).on('click', ".wallet_statement", function() {
53
	console.log('HELO');
60
	console.log('HELLO');
54
	doGetAjaxRequestHandler(context + "/walletSummaryReport",
61
	doGetAjaxRequestHandler(context + "/walletSummaryReport",
55
		function(response) {
62
		function(response) {
56
			$('#' + 'main-content').html(response);
63
			$('#' + 'main-content').html(response);
57
		});
64
		});
58
});
65
});
Line 83... Line 90...
83
		return;
90
		return;
84
	}
91
	}
85
	window.location.href = context + "/downloadCollectionSummary?startDate=" + startDate + "&endDate=" + endDate;
92
	window.location.href = context + "/downloadCollectionSummary?startDate=" + startDate + "&endDate=" + endDate;
86
 
93
 
87
});
94
});
-
 
95
$(document).on('click', ".collection-summary-fetch-report", function() {
-
 
96
 
-
 
97
	var startDate = $("#startDate-collection-summary").val();
-
 
98
 
-
 
99
	var endDate = $("#endDate-collection-summary").val();
-
 
100
 
-
 
101
	if (startDate == "" || startDate == undefined) {
-
 
102
		alert("start date is not be empty!!");
-
 
103
		return;
-
 
104
	}
-
 
105
	if (endDate == "" || endDate == undefined) {
-
 
106
 
-
 
107
		alert("end date is not be empty!!");
-
 
108
		return;
-
 
109
	}
-
 
110
 
-
 
111
	 doGetAjaxRequestHandler(context + "/collectionSummary",
-
 
112
     		function(response) {
-
 
113
     			$('#' + 'main-content').html(response);
-
 
114
     		});
-
 
115
});
88
 
116
 
89
 
117
 
90
$(document).on('click', '.download-price-drop-report', function() {
118
$(document).on('click', '.download-price-drop-report', function() {
91
	var startDate = $("#startDate-price-drop-report").val();
119
	var startDate = $("#startDate-price-drop-report").val();
92
 
120
 
Line 103... Line 131...
103
		return;
131
		return;
104
	}
132
	}
105
	window.location.href = context + "/downloadPriceDropReport?startDate=" + startDate + "&endDate=" + endDate;
133
	window.location.href = context + "/downloadPriceDropReport?startDate=" + startDate + "&endDate=" + endDate;
106
 
134
 
107
});
135
});
-
 
136
$(document).on('click', '.price-drop-fetch-report', function() {
-
 
137
	var startDate = $("#startDate-price-drop-report").val();
-
 
138
 
-
 
139
	var endDate = $("#endDate-price-drop-report").val();
-
 
140
 
-
 
141
	if (startDate == "" || startDate == undefined) {
-
 
142
 
-
 
143
		alert("start date is not be empty!!");
-
 
144
		return;
-
 
145
	}
-
 
146
	if (endDate == "" || endDate == undefined) {
-
 
147
 
-
 
148
		alert("end date is not be empty!!");
-
 
149
		return;
-
 
150
	}
-
 
151
	doGetAjaxRequestHandler(context + "/priceDropReport",
-
 
152
    		function(response) {
-
 
153
    			$('#' + 'main-content').html(response);
-
 
154
    		});
-
 
155
 
-
 
156
});
108
 
157
 
109
 
158
 
110
 
159
 
111
 
160
 
112
$(document).on('click', ".smartdukaan-billing-statement", function() {
161
$(document).on('click', ".smartdukaan-billing-statement", function() {
Line 126... Line 175...
126
 
175
 
127
$(document).on('click', ".download-pending-indent-report", function() {
176
$(document).on('click', ".download-pending-indent-report", function() {
128
 
177
 
129
	window.location.href = context + "/pendingIndentReportDownload";
178
	window.location.href = context + "/pendingIndentReportDownload";
130
});
179
});
-
 
180
$(document).on('click', ".pending-indent-fetch-report", function() {
-
 
181
 
-
 
182
 
-
 
183
 
-
 
184
	doGetAjaxRequestHandler(context + "/pendingIndentReport",
-
 
185
    		function(response) {
-
 
186
    			$('#' + 'main-content').html(response);
-
 
187
    		});
-
 
188
});
-
 
189
 
131
 
190
 
132
$(document).on('click', ".download-scheme-payout-report", function() {
191
$(document).on('click', ".download-scheme-payout-report", function() {
133
 
192
 
134
	var startDate = $("#startDate-scheme-payout").val();
193
	var startDate = $("#startDate-scheme-payout").val();
135
 
194
 
Line 146... Line 205...
146
	}
205
	}
147
 
206
 
148
	window.location.href = context + "/schemePayoutReportDownload?startDate=" + startDate + "&endDate=" + endDate;
207
	window.location.href = context + "/schemePayoutReportDownload?startDate=" + startDate + "&endDate=" + endDate;
149
});
208
});
150
 
209
 
-
 
210
$(document).on('click', ".scheme-payout-fetch-report", function() {
-
 
211
 
-
 
212
	var startDate = $("#startDate-scheme-payout").val();
-
 
213
 
-
 
214
	var endDate = $("#endDate-scheme-payout").val();
-
 
215
 
-
 
216
	if (startDate == "" || startDate == undefined) {
-
 
217
		alert("start date is not be empty!!");
-
 
218
		return;
-
 
219
	}
-
 
220
	if (endDate == "" || endDate == undefined) {
-
 
221
 
-
 
222
		alert("end date is not be empty!!");
-
 
223
		return;
-
 
224
	}
-
 
225
 
-
 
226
	 doGetAjaxRequestHandler(context + "/schemePayoutFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
-
 
227
     		function(response) {
-
 
228
     			$('#' + 'main-content').html(response);
-
 
229
     		});
-
 
230
});
-
 
231
 
-
 
232
$(document).on('click', ".download-offer-payout-dump-report", function() {
-
 
233
 
-
 
234
	var startDate = $("#startDate-offer-payout-dump").val();
-
 
235
 
-
 
236
	var endDate = $("#endDate-offer-payout-dump").val();
-
 
237
 
-
 
238
	if (startDate == "" || startDate == undefined) {
-
 
239
		alert("start date is not be empty!!");
-
 
240
		return;
-
 
241
	}
-
 
242
	if (endDate == "" || endDate == undefined) {
-
 
243
 
-
 
244
		alert("end date is not be empty!!");
-
 
245
		return;
-
 
246
	}
-
 
247
	window.location.href = context + "/offerPayoutDumpReportDownload?startDate=" + startDate + "&endDate=" + endDate;
-
 
248
 
-
 
249
 
-
 
250
});
-
 
251
$(document).on('click', ".offer-payout-fetch-report", function() {
-
 
252
 
-
 
253
	var startDate = $("#startDate-offer-payout-dump").val();
-
 
254
 
-
 
255
	var endDate = $("#endDate-offer-payout-dump").val();
-
 
256
 
-
 
257
	if (startDate == "" || startDate == undefined) {
-
 
258
		alert("start date is not be empty!!");
-
 
259
		return;
-
 
260
	}
-
 
261
	if (endDate == "" || endDate == undefined) {
-
 
262
 
-
 
263
		alert("end date is not be empty!!");
-
 
264
		return;
-
 
265
	}
-
 
266
 
-
 
267
	 doGetAjaxRequestHandler(context + "/offerPayoutFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
-
 
268
     		function(response) {
-
 
269
     			$('#' + 'main-content').html(response);
-
 
270
     		});
-
 
271
});
-
 
272
 
-
 
273
 
151
$(document).on('click', ".franchisee_sales", function() {
274
$(document).on('click', ".franchisee_sales", function() {
152
	console.log('HELO');
275
	console.log('HELLO');
153
	doGetAjaxRequestHandler(context + "/franchiseeSalesReport",
276
	doGetAjaxRequestHandler(context + "/franchiseeSalesReport",
154
		function(response) {
277
		function(response) {
155
			$('#' + 'main-content').html(response);
278
			$('#' + 'main-content').html(response);
156
		});
279
		});
157
});
280
});
Line 170... Line 293...
170
		alert("end date is not be empty!!");
293
		alert("end date is not be empty!!");
171
		return;
294
		return;
172
	}
295
	}
173
	window.location.href = context + "/downloadWalletSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
296
	window.location.href = context + "/downloadWalletSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
174
});
297
});
-
 
298
$(document).on('click', '.wallet-summary-fetch-report', function() {
-
 
299
	var startDate = $("#startDate-wallet-summary-report").val();
-
 
300
 
-
 
301
	var endDate = $("#endDate-wallet-summary-report").val();
-
 
302
 
-
 
303
	if (startDate == "" || startDate == undefined) {
-
 
304
		alert("start date is not be empty!!");
-
 
305
		return;
-
 
306
	}
-
 
307
	if (endDate == "" || endDate == undefined) {
-
 
308
 
-
 
309
		alert("end date is not be empty!!");
-
 
310
		return;
-
 
311
	}
-
 
312
	doGetAjaxRequestHandler(context + "/walletSummaryReport",
-
 
313
    		function(response) {
-
 
314
    			$('#' + 'main-content').html(response);
-
 
315
    		});
-
 
316
});
175
 
317
 
176
 
318
 
177
$(document).on('click', '.download-partner-billing-report', function() {
319
$(document).on('click', '.download-partner-billing-report', function() {
178
	var startDate = $("#startDate-partner-billing-report").val();
320
	var startDate = $("#startDate-partner-billing-report").val();
179
 
321
 
Line 189... Line 331...
189
		alert("end date is not be empty!!");
331
		alert("end date is not be empty!!");
190
		return;
332
		return;
191
	}
333
	}
192
	window.location.href = context + "/downloadPartnerBillingSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
334
	window.location.href = context + "/downloadPartnerBillingSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
193
});
335
});
-
 
336
$(document).on('click', '.billing-summary-fetch-report', function() {
-
 
337
	var startDate = $("#startDate-partner-billing-report").val();
-
 
338
 
-
 
339
	var endDate = $("#endDate-partner-billing-report").val();
-
 
340
 
-
 
341
	if (startDate == "" || startDate == undefined) {
-
 
342
 
-
 
343
		alert("start date is not be empty!!");
-
 
344
		return;
-
 
345
	}
-
 
346
	if (endDate == "" || endDate == undefined) {
-
 
347
 
-
 
348
		alert("end date is not be empty!!");
-
 
349
		return;
-
 
350
	}
-
 
351
	doGetAjaxRequestHandler(context + "/selectPartnerBillingSummaryReport",
-
 
352
    		function(response) {
-
 
353
    			$('#' + 'main-content').html(response);
-
 
354
    		});
-
 
355
});
194
 
356
 
195
$(document).on('click', '.download-franchisee-sales', function() {
357
$(document).on('click', '.download-franchisee-sales', function() {
196
	var startDate = $("#startDate-franchisee-sales").val();
358
	var startDate = $("#startDate-franchisee-sales").val();
197
 
359
 
198
	var endDate = $("#endDate-franchisee-sales").val();
360
	var endDate = $("#endDate-franchisee-sales").val();
Line 207... Line 369...
207
		alert("end date is not be empty!!");
369
		alert("end date is not be empty!!");
208
		return;
370
		return;
209
	}
371
	}
210
	window.location.href = context + "/downloadFranchiseeSales?startDate=" + startDate + "&endDate=" + endDate;
372
	window.location.href = context + "/downloadFranchiseeSales?startDate=" + startDate + "&endDate=" + endDate;
211
});
373
});
-
 
374
$(document).on('click', '.franchisee-sales-fetch-report', function() {
-
 
375
	var startDate = $("#startDate-franchisee-sales").val();
-
 
376
 
-
 
377
	var endDate = $("#endDate-franchisee-sales").val();
-
 
378
 
-
 
379
	if (startDate == "" || startDate == undefined) {
-
 
380
 
-
 
381
		alert("start date is not be empty!!");
-
 
382
		return;
-
 
383
	}
-
 
384
	if (endDate == "" || endDate == undefined) {
-
 
385
 
-
 
386
		alert("end date is not be empty!!");
-
 
387
		return;
-
 
388
	}
-
 
389
	doGetAjaxRequestHandler(context + "/franchiseeSalesFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
-
 
390
    		function(response) {
-
 
391
    			$('#' + 'main-content').html(response);
-
 
392
    		});
-
 
393
});
212
 
394
 
213
 
395
 
214
$(document).on('click', 'button.download-report', function() {
396
$(document).on('click', 'button.download-report', function() {
215
	var reportParams = {};
397
	var reportParams = {};
216
	var validated = true;
398
	var validated = true;