Subversion Repositories SmartDukaan

Rev

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

Rev 26204 Rev 30163
Line 13... Line 13...
13
		renderInputDialog(paramsList);
13
		renderInputDialog(paramsList);
14
		$reportModal.modal('show');
14
		$reportModal.modal('show');
15
		return false;
15
		return false;
16
	}
16
	}
17
});
17
});
-
 
18
 
-
 
19
 
-
 
20
 
-
 
21
$(document).on('click', ".invoice-scheme-out-report", function() {
-
 
22
	
-
 
23
	doGetAjaxRequestHandler(context + "/invoiceSchemeOutSummaryReport",
-
 
24
		function(response) {
-
 
25
			$('#' + 'main-content').html(response);
-
 
26
		});
-
 
27
});
-
 
28
 
-
 
29
 
-
 
30
$(document).on('click', ".price-drop-report", function() {
-
 
31
	
-
 
32
	doGetAjaxRequestHandler(context + "/priceDropReport",
-
 
33
		function(response) {
-
 
34
			$('#' + 'main-content').html(response);
-
 
35
		});
-
 
36
});
-
 
37
 
-
 
38
$(document).on('click', ".scheme-payout-report", function() {
-
 
39
	
-
 
40
	doGetAjaxRequestHandler(context + "/schemePayoutReport",
-
 
41
		function(response) {
-
 
42
			$('#' + 'main-content').html(response);
-
 
43
		});
-
 
44
});
-
 
45
 
-
 
46
$(document).on('click', ".pending-indent", function() {
-
 
47
	
-
 
48
	doGetAjaxRequestHandler(context + "/pendingIndentReport",
-
 
49
		function(response) {
-
 
50
			$('#' + 'main-content').html(response);
-
 
51
		});
-
 
52
});
-
 
53
 
-
 
54
$(document).on('click', ".wallet_statement", function() {
-
 
55
	console.log('HELO');
-
 
56
	doGetAjaxRequestHandler(context + "/walletSummaryReport",
-
 
57
		function(response) {
-
 
58
			$('#' + 'main-content').html(response);
-
 
59
		});
-
 
60
});
-
 
61
 
-
 
62
 
-
 
63
$(document).on('click', ".collection-summary", function() {
-
 
64
	console.log('HELO');
-
 
65
	doGetAjaxRequestHandler(context + "/collectionSummary",
-
 
66
		function(response) {
-
 
67
			$('#' + 'main-content').html(response);
-
 
68
		});
-
 
69
});
-
 
70
 
-
 
71
 
-
 
72
$(document).on('click', '.download-collection-summary', function() {
-
 
73
	var startDate = $("#startDate-collection-summary").val(); 
-
 
74
	
-
 
75
	var endDate = $("#endDate-collection-summary").val(); 
-
 
76
	
-
 
77
	if(startDate == "" || startDate == undefined){
-
 
78
		
-
 
79
		alert("start date is not be empty!!");
-
 
80
		return;
-
 
81
	}
-
 
82
    if(endDate == "" || endDate == undefined){
-
 
83
		
-
 
84
    	alert("end date is not be empty!!");
-
 
85
		return;
-
 
86
	}
-
 
87
    window.location.href = context + "/downloadCollectionSummary?startDate=" + startDate + "&endDate=" + endDate;
-
 
88
    
-
 
89
});
-
 
90
 
-
 
91
 
-
 
92
$(document).on('click', '.download-price-drop-report', function() {
-
 
93
	var startDate = $("#startDate-price-drop-report").val(); 
-
 
94
	
-
 
95
	var endDate = $("#endDate-price-drop-report").val(); 
-
 
96
	
-
 
97
	if(startDate == "" || startDate == undefined){
-
 
98
		
-
 
99
		alert("start date is not be empty!!");
-
 
100
		return;
-
 
101
	}
-
 
102
    if(endDate == "" || endDate == undefined){
-
 
103
		
-
 
104
    	alert("end date is not be empty!!");
-
 
105
		return;
-
 
106
	}
-
 
107
    window.location.href = context + "/downloadPriceDropReport?startDate=" + startDate + "&endDate=" + endDate;
-
 
108
    
-
 
109
});
-
 
110
 
-
 
111
 
-
 
112
 
-
 
113
 
-
 
114
$(document).on('click', ".smartdukaan-billing-statement", function() {
-
 
115
	console.log('HELO');
-
 
116
	doGetAjaxRequestHandler(context + "/selectPartnerBillingSummaryReport",
-
 
117
		function(response) {
-
 
118
			$('#' + 'main-content').html(response);
-
 
119
		});
-
 
120
});
-
 
121
 
-
 
122
 
-
 
123
$(document).on('click', '.download-invoicewise-scheme-out-report', function() {
-
 
124
   
-
 
125
	window.location.href = context + "/downloadInvoiceSchemeOutSummaryReport";
-
 
126
    
-
 
127
});
-
 
128
 
-
 
129
$(document).on('click', ".download-pending-indent-report", function() {
-
 
130
	
-
 
131
	 window.location.href = context + "/pendingIndentReportDownload";
-
 
132
});
-
 
133
 
-
 
134
$(document).on('click', ".download-scheme-payout-report", function() {
-
 
135
	
-
 
136
	 window.location.href = context + "/schemePayoutReportDownload";
-
 
137
});
-
 
138
 
-
 
139
$(document).on('click', ".franchisee_sales", function() {
-
 
140
	console.log('HELO');
-
 
141
	doGetAjaxRequestHandler(context + "/franchiseeSalesReport",
-
 
142
		function(response) {
-
 
143
			$('#' + 'main-content').html(response);
-
 
144
		});
-
 
145
});
-
 
146
 
-
 
147
$(document).on('click', '.download-wallet-summary-report', function() {
-
 
148
	var startDate = $("#startDate-wallet-summary-report").val(); 
-
 
149
	
-
 
150
	var endDate = $("#endDate-wallet-summary-report").val(); 
-
 
151
	
-
 
152
	if(startDate == "" || startDate == undefined){
-
 
153
        alert("start date is not be empty!!");
-
 
154
		return;
-
 
155
	}
-
 
156
    if(endDate == "" || endDate == undefined){
-
 
157
		
-
 
158
		alert("end date is not be empty!!");
-
 
159
		return;
-
 
160
	}
-
 
161
    window.location.href = context + "/downloadWalletSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
-
 
162
});
-
 
163
 
-
 
164
 
-
 
165
$(document).on('click', '.download-partner-billing-report', function() {
-
 
166
	var startDate = $("#startDate-partner-billing-report").val(); 
-
 
167
	
-
 
168
	var endDate = $("#endDate-partner-billing-report").val(); 
-
 
169
	
-
 
170
	if(startDate == "" || startDate == undefined){
-
 
171
		
-
 
172
		alert("start date is not be empty!!");
-
 
173
		return;
-
 
174
	}
-
 
175
    if(endDate == "" || endDate == undefined){
-
 
176
		
-
 
177
		alert("end date is not be empty!!");
-
 
178
		return;
-
 
179
	}
-
 
180
    window.location.href = context + "/downloadPartnerBillingSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
-
 
181
});
-
 
182
 
-
 
183
$(document).on('click', '.download-franchisee-sales', function() {
-
 
184
	var startDate = $("#startDate-franchisee-sales").val(); 
-
 
185
	
-
 
186
	var endDate = $("#endDate-franchisee-sales").val(); 
-
 
187
	
-
 
188
	if(startDate == "" || startDate == undefined){
-
 
189
		
-
 
190
		alert("start date is not be empty!!");
-
 
191
		return;
-
 
192
	}
-
 
193
    if(endDate == "" || endDate == undefined){
-
 
194
		
-
 
195
		alert("end date is not be empty!!");
-
 
196
		return;
-
 
197
	}
-
 
198
    window.location.href = context + "/downloadFranchiseeSales?startDate=" + startDate + "&endDate=" + endDate;
-
 
199
});
-
 
200
 
-
 
201
 
18
$(document).on('click', 'button.download-report', function(){
202
$(document).on('click', 'button.download-report', function(){
19
	var reportParams = {};
203
	var reportParams = {};
20
	var validated = true;
204
	var validated = true;
21
	$inputContainer.find("input.param,select.param").each(function(idx, inputElement) {
205
	$inputContainer.find("input.param,select.param").each(function(idx, inputElement) {
22
		var inputName = $(inputElement).attr("name");
206
		var inputName = $(inputElement).attr("name");