Subversion Repositories SmartDukaan

Rev

Rev 33094 | Rev 33102 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
26053 amit.gupta 1
$(document).on('click', 'a.list-group-item', function() {
26063 amit.gupta 2
	reportTitle = $(this).find('h4').html();
3
	reportUrl = this.href;
26054 amit.gupta 4
	$reportModal = $('#report-modal');
26063 amit.gupta 5
	$reportModal.find('h4.modal-title').html(reportTitle);
31416 tejbeer 6
	if ($(this).data("paramslist") == undefined) {
26054 amit.gupta 7
		return true;
26053 amit.gupta 8
	} else {
9
		var paramsList = $(this).data("paramslist");
10
		paramsMap = {};
11
		renderInputDialog(paramsList);
12
		$reportModal.modal('show');
13
		return false;
14
	}
15
});
30163 manish 16
 
17
 
18
 
19
$(document).on('click', ".invoice-scheme-out-report", function() {
31416 tejbeer 20
 
30163 manish 21
	doGetAjaxRequestHandler(context + "/invoiceSchemeOutSummaryReport",
22
		function(response) {
23
			$('#' + 'main-content').html(response);
24
		});
25
});
26
 
27
 
28
$(document).on('click', ".price-drop-report", function() {
31416 tejbeer 29
 
30163 manish 30
	doGetAjaxRequestHandler(context + "/priceDropReport",
31
		function(response) {
32
			$('#' + 'main-content').html(response);
33
		});
34
});
35
 
33094 shampa 36
$(document).on('click', ".scheme-payout-report", function() {
31416 tejbeer 37
 
30163 manish 38
	doGetAjaxRequestHandler(context + "/schemePayoutReport",
39
		function(response) {
40
			$('#' + 'main-content').html(response);
41
		});
42
});
33094 shampa 43
$(document).on('click', ".offer-payout-dump-report", function() {
33010 shampa 44
console.log('HELLO');
45
	doGetAjaxRequestHandler(context + "/offerPayoutReport",
46
		function(response) {
47
			$('#' + 'main-content').html(response);
48
		});
49
});
30163 manish 50
 
51
$(document).on('click', ".pending-indent", function() {
31416 tejbeer 52
 
30163 manish 53
	doGetAjaxRequestHandler(context + "/pendingIndentReport",
54
		function(response) {
55
			$('#' + 'main-content').html(response);
56
		});
57
});
33067 shampa 58
$(document).on('click', '.pending-indent-fetch-report', function() {
59
	var startDate = $("#startDate-pending-indent-report").val();
30163 manish 60
 
33067 shampa 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
	}
33092 tejus.loha 73
	let endPoint = `${context}/pendingIndentFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
74
	if (typeof partnerId != "undefined") {
75
		endPoint = `${endPoint}&fofoId=${partnerId}`;
76
	}
77
 
78
	doGetAjaxRequestHandler(endPoint,
79
		function (response) {
33067 shampa 80
			$('#' + 'main-content').html(response);
81
		});
82
});
83
 
84
 
85
 
30163 manish 86
$(document).on('click', ".wallet_statement", function() {
87
	doGetAjaxRequestHandler(context + "/walletSummaryReport",
88
		function(response) {
89
			$('#' + 'main-content').html(response);
90
		});
91
});
92
 
93
 
33067 shampa 94
$(document).on('click', ".partner-collection-summary", function() {
30163 manish 95
	doGetAjaxRequestHandler(context + "/collectionSummary",
96
		function(response) {
97
			$('#' + 'main-content').html(response);
98
		});
99
});
100
 
101
 
102
$(document).on('click', '.download-collection-summary', function() {
31416 tejbeer 103
	var startDate = $("#startDate-collection-summary").val();
104
 
105
	var endDate = $("#endDate-collection-summary").val();
106
 
107
	if (startDate == "" || startDate == undefined) {
108
 
30163 manish 109
		alert("start date is not be empty!!");
110
		return;
111
	}
31416 tejbeer 112
	if (endDate == "" || endDate == undefined) {
113
 
114
		alert("end date is not be empty!!");
30163 manish 115
		return;
116
	}
31416 tejbeer 117
	window.location.href = context + "/downloadCollectionSummary?startDate=" + startDate + "&endDate=" + endDate;
118
 
30163 manish 119
});
33010 shampa 120
$(document).on('click', ".collection-summary-fetch-report", function() {
30163 manish 121
 
33010 shampa 122
	var startDate = $("#startDate-collection-summary").val();
30163 manish 123
 
33010 shampa 124
	var endDate = $("#endDate-collection-summary").val();
125
 
126
	if (startDate == "" || startDate == undefined) {
127
		alert("start date is not be empty!!");
128
		return;
129
	}
130
	if (endDate == "" || endDate == undefined) {
131
 
132
		alert("end date is not be empty!!");
133
		return;
134
	}
33092 tejus.loha 135
	let endPoint = `${context}/collectionSummaryFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
136
	if (typeof partnerId != "undefined") {
137
		endPoint = `${endPoint}&fofoId=${partnerId}`;
138
	}
33010 shampa 139
 
33092 tejus.loha 140
	doGetAjaxRequestHandler(endPoint,
141
		function (response) {
142
			$('#' + 'main-content').html(response);
143
		});
144
 
145
 
33010 shampa 146
});
147
 
148
 
30163 manish 149
$(document).on('click', '.download-price-drop-report', function() {
31416 tejbeer 150
	var startDate = $("#startDate-price-drop-report").val();
151
 
152
	var endDate = $("#endDate-price-drop-report").val();
153
 
154
	if (startDate == "" || startDate == undefined) {
155
 
30163 manish 156
		alert("start date is not be empty!!");
157
		return;
158
	}
31416 tejbeer 159
	if (endDate == "" || endDate == undefined) {
160
 
161
		alert("end date is not be empty!!");
30163 manish 162
		return;
163
	}
31416 tejbeer 164
	window.location.href = context + "/downloadPriceDropReport?startDate=" + startDate + "&endDate=" + endDate;
165
 
30163 manish 166
});
33010 shampa 167
$(document).on('click', '.price-drop-fetch-report', function() {
168
	var startDate = $("#startDate-price-drop-report").val();
30163 manish 169
 
33010 shampa 170
	var endDate = $("#endDate-price-drop-report").val();
30163 manish 171
 
33010 shampa 172
	if (startDate == "" || startDate == undefined) {
30163 manish 173
 
33010 shampa 174
		alert("start date is not be empty!!");
175
		return;
176
	}
177
	if (endDate == "" || endDate == undefined) {
30163 manish 178
 
33010 shampa 179
		alert("end date is not be empty!!");
180
		return;
181
	}
33092 tejus.loha 182
	let endPoint = `${context}/priceDropFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
183
	if (typeof partnerId != "undefined") {
184
		endPoint = `${endPoint}&fofoId=${partnerId}`;
185
	}
33010 shampa 186
 
33092 tejus.loha 187
	doGetAjaxRequestHandler(endPoint,
188
		function (response) {
189
			$('#' + 'main-content').html(response);
190
		});
191
 
33010 shampa 192
});
193
 
194
 
195
 
196
 
30163 manish 197
$(document).on('click', ".smartdukaan-billing-statement", function() {
198
	console.log('HELO');
199
	doGetAjaxRequestHandler(context + "/selectPartnerBillingSummaryReport",
200
		function(response) {
201
			$('#' + 'main-content').html(response);
202
		});
203
});
204
 
205
 
206
$(document).on('click', '.download-invoicewise-scheme-out-report', function() {
31416 tejbeer 207
 
30163 manish 208
	window.location.href = context + "/downloadInvoiceSchemeOutSummaryReport";
31416 tejbeer 209
 
30163 manish 210
});
211
 
212
$(document).on('click', ".download-pending-indent-report", function() {
33067 shampa 213
	var startDate = $("#startDate-pending-indent-report").val();
31416 tejbeer 214
 
33067 shampa 215
	var endDate = $("#endDate-pending-indent-report").val();
30163 manish 216
 
33067 shampa 217
	if (startDate == "" || startDate == undefined) {
218
		alert("start date is not be empty!!");
219
		return;
220
	}
221
	if (endDate == "" || endDate == undefined) {
33010 shampa 222
 
33067 shampa 223
		alert("end date is not be empty!!");
224
		return;
225
	}
33010 shampa 226
 
33067 shampa 227
	window.location.href = context + "/pendingIndentReportDownload";
33010 shampa 228
});
229
 
230
 
33067 shampa 231
 
30163 manish 232
$(document).on('click', ".download-scheme-payout-report", function() {
31416 tejbeer 233
 
234
	var startDate = $("#startDate-scheme-payout").val();
235
 
236
	var endDate = $("#endDate-scheme-payout").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
 
248
	window.location.href = context + "/schemePayoutReportDownload?startDate=" + startDate + "&endDate=" + endDate;
30163 manish 249
});
250
 
33010 shampa 251
$(document).on('click', ".scheme-payout-fetch-report", function() {
252
 
253
	var startDate = $("#startDate-scheme-payout").val();
254
 
255
	var endDate = $("#endDate-scheme-payout").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
 
33091 shampa 267
	let endPoint = `${context}/schemePayoutFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
268
	   if (typeof partnerId != "undefined") {
269
		        endPoint = `${endPoint}&fofoId=${partnerId}`;
270
		   }
271
 
272
		    doGetAjaxRequestHandler(endPoint,
273
			        function (response) {
274
				            $('#' + 'main-content').html(response);
275
				       });
33010 shampa 276
});
277
 
278
$(document).on('click', ".download-offer-payout-dump-report", function() {
279
 
280
	var startDate = $("#startDate-offer-payout-dump").val();
281
 
282
	var endDate = $("#endDate-offer-payout-dump").val();
283
 
284
	if (startDate == "" || startDate == undefined) {
285
		alert("start date is not be empty!!");
286
		return;
287
	}
288
	if (endDate == "" || endDate == undefined) {
289
 
290
		alert("end date is not be empty!!");
291
		return;
292
	}
293
	window.location.href = context + "/offerPayoutDumpReportDownload?startDate=" + startDate + "&endDate=" + endDate;
294
 
295
 
296
});
297
$(document).on('click', ".offer-payout-fetch-report", function() {
298
 
299
	var startDate = $("#startDate-offer-payout-dump").val();
300
 
301
	var endDate = $("#endDate-offer-payout-dump").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
	}
33096 shampa 312
	let endPoint = `${context}/offerPayoutFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
313
	if (typeof partnerId != "undefined") {
314
		endPoint = `${endPoint}&fofoId=${partnerId}`;
315
	}
33010 shampa 316
 
33091 shampa 317
	doGetAjaxRequestHandler(endPoint,
318
		function (response) {
319
			$('#' + 'main-content').html(response);
320
		});
33010 shampa 321
});
322
 
323
 
30163 manish 324
$(document).on('click', ".franchisee_sales", function() {
33010 shampa 325
	console.log('HELLO');
30163 manish 326
	doGetAjaxRequestHandler(context + "/franchiseeSalesReport",
327
		function(response) {
328
			$('#' + 'main-content').html(response);
329
		});
330
});
33092 tejus.loha 331
$(document).on('click', '.franchisee-sales-fetch-report', function () {
332
	var startDate = $("#startDate-franchisee-sales").val();
30163 manish 333
 
33092 tejus.loha 334
	var endDate = $("#endDate-franchisee-sales").val();
335
 
336
	if (startDate == "" || startDate == undefined) {
337
 
338
		alert("start date is not be empty!!");
339
		return;
340
	}
341
	if (endDate == "" || endDate == undefined) {
342
 
343
		alert("end date is not be empty!!");
344
		return;
345
	}
346
	let endPoint = `${context}/franchiseeSalesFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
347
	if (typeof partnerId != "undefined") {
348
		endPoint = `${endPoint}&fofoId=${partnerId}`;
349
	}
350
 
351
	doGetAjaxRequestHandler(endPoint,
352
		function (response) {
353
			$('#' + 'main-content').html(response);
354
		});
355
});
356
 
357
 
358
 
30163 manish 359
$(document).on('click', '.download-wallet-summary-report', function() {
31416 tejbeer 360
	var startDate = $("#startDate-wallet-summary-report").val();
361
 
362
	var endDate = $("#endDate-wallet-summary-report").val();
363
 
364
	if (startDate == "" || startDate == undefined) {
365
		alert("start date is not be empty!!");
30163 manish 366
		return;
367
	}
31416 tejbeer 368
	if (endDate == "" || endDate == undefined) {
369
 
30163 manish 370
		alert("end date is not be empty!!");
371
		return;
372
	}
31416 tejbeer 373
	window.location.href = context + "/downloadWalletSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
30163 manish 374
});
33010 shampa 375
$(document).on('click', '.wallet-summary-fetch-report', function() {
376
	var startDate = $("#startDate-wallet-summary-report").val();
30163 manish 377
 
33010 shampa 378
	var endDate = $("#endDate-wallet-summary-report").val();
30163 manish 379
 
33010 shampa 380
	if (startDate == "" || startDate == undefined) {
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
	}
33092 tejus.loha 389
//	doGetAjaxRequestHandler(context + "/walletSummaryFetchReportByDate?startDate=" + startDate + "&endDate=" + endDate,
390
//    		function(response) {
391
//    			$('#' + 'main-content').html(response);
392
//    		});
393
 
394
	let endPoint = `${context}/walletSummaryFetchReportByDate?startDate=${startDate}&endDate=${endDate}`;
395
	if (typeof partnerId != "undefined") {
396
		endPoint = `${endPoint}&fofoId=${partnerId}`;
397
	}
398
 
399
	doGetAjaxRequestHandler(endPoint,
400
		function (response) {
401
			$('#' + 'main-content').html(response);
402
		});
403
 
404
 
33010 shampa 405
});
406
 
407
 
30163 manish 408
$(document).on('click', '.download-partner-billing-report', function() {
31416 tejbeer 409
	var startDate = $("#startDate-partner-billing-report").val();
410
 
411
	var endDate = $("#endDate-partner-billing-report").val();
412
 
413
	if (startDate == "" || startDate == undefined) {
414
 
30163 manish 415
		alert("start date is not be empty!!");
416
		return;
417
	}
31416 tejbeer 418
	if (endDate == "" || endDate == undefined) {
419
 
30163 manish 420
		alert("end date is not be empty!!");
421
		return;
422
	}
31416 tejbeer 423
	window.location.href = context + "/downloadPartnerBillingSummaryReport?startDate=" + startDate + "&endDate=" + endDate;
30163 manish 424
});
33010 shampa 425
$(document).on('click', '.billing-summary-fetch-report', function() {
426
	var startDate = $("#startDate-partner-billing-report").val();
30163 manish 427
 
33010 shampa 428
	var endDate = $("#endDate-partner-billing-report").val();
429
 
430
	if (startDate == "" || startDate == undefined) {
431
 
432
		alert("start date is not be empty!!");
433
		return;
434
	}
435
	if (endDate == "" || endDate == undefined) {
436
 
437
		alert("end date is not be empty!!");
438
		return;
439
	}
440
	doGetAjaxRequestHandler(context + "/selectPartnerBillingSummaryReport",
441
    		function(response) {
442
    			$('#' + 'main-content').html(response);
443
    		});
444
});
445
 
30163 manish 446
$(document).on('click', '.download-franchisee-sales', function() {
31416 tejbeer 447
	var startDate = $("#startDate-franchisee-sales").val();
448
 
449
	var endDate = $("#endDate-franchisee-sales").val();
450
 
451
	if (startDate == "" || startDate == undefined) {
452
 
30163 manish 453
		alert("start date is not be empty!!");
454
		return;
455
	}
31416 tejbeer 456
	if (endDate == "" || endDate == undefined) {
457
 
30163 manish 458
		alert("end date is not be empty!!");
459
		return;
460
	}
31416 tejbeer 461
	window.location.href = context + "/downloadFranchiseeSales?startDate=" + startDate + "&endDate=" + endDate;
30163 manish 462
});
31416 tejbeer 463
$(document).on('click', 'button.download-report', function() {
26054 amit.gupta 464
	var reportParams = {};
26153 amit.gupta 465
	var validated = true;
26134 amit.gupta 466
	$inputContainer.find("input.param,select.param").each(function(idx, inputElement) {
26054 amit.gupta 467
		var inputName = $(inputElement).attr("name");
31416 tejbeer 468
		if (typeof inputName === "undefined" || !(inputName in paramsMap)) {
26089 amit.gupta 469
			console.log(inputName);
470
			return;
471
		}
472
		param = paramsMap[inputName];
31416 tejbeer 473
		if ($(inputElement).val() == "") {
26089 amit.gupta 474
			bootbox.alert(`${param.displayName} is required`);
26153 amit.gupta 475
			validated = false;
26148 amit.gupta 476
			return false;
26054 amit.gupta 477
		}
31416 tejbeer 478
		if (param.type == 'DATE') {
30599 amit.gupta 479
			reportParams[`MANUAL_${inputName}`] = getReporticoDatesFromPicker(inputElement).startDate;
31416 tejbeer 480
		} else if (param.type == 'DATE_RANGE') {
30599 amit.gupta 481
			reportParams[`MANUAL_${inputName}_FROMDATE`] = getReporticoDatesFromPicker(inputElement).startDate;
482
			reportParams[`MANUAL_${inputName}_TODATE`] = getReporticoDatesFromPicker(inputElement).endDate;
26054 amit.gupta 483
		} else {
31416 tejbeer 484
			if (['code', 'warehouseId'].indexOf(param.name) >= 0) {
485
				if (typeof $(inputElement).val() == "string") {
26204 amit.gupta 486
					reportParams[`${inputName}`] = $(inputElement).val();
26167 amit.gupta 487
				} else {
26204 amit.gupta 488
					reportParams[`${inputName}`] = $(inputElement).val().join(",");
26157 amit.gupta 489
				}
26116 amit.gupta 490
 
26089 amit.gupta 491
			} else {
492
				reportParams[`MANUAL_${inputName}`] = $(inputElement).val();
493
			}
26054 amit.gupta 494
		}
495
	});
31416 tejbeer 496
	if (validated) {
26153 amit.gupta 497
		var jsonParams = JSON.stringify(reportParams);
498
		doAjaxPostDownload(reportUrl, jsonParams, `${reportTitle}.csv`);
499
	}
31416 tejbeer 500
 
26054 amit.gupta 501
});
26053 amit.gupta 502
function renderInputDialog(paramsList) {
26054 amit.gupta 503
	$reportModal = $('div#report-modal');
504
	$inputContainer = $reportModal.find('div.modal-body');
505
	//Clear container first
506
	$inputContainer.html('');
26053 amit.gupta 507
	paramsList.forEach(function(value) {
508
		paramsMap[value.name] = value;
509
		renderInput($inputContainer, value);
510
	});
511
}
512
 
26054 amit.gupta 513
function renderInput($inputContainer, param) {
514
	console.log(param.type);
26053 amit.gupta 515
	switch (param.type) {
516
		case "DATE": {
26054 amit.gupta 517
			$inputContainer.append(`<div class="form-group">
26053 amit.gupta 518
									<label>${param.displayText}</label> 
26146 amit.gupta 519
				   	  				<input name="${param.name}" type="text" value="" class="param form-control input-sm">
26053 amit.gupta 520
								</div>`);
30599 amit.gupta 521
			$inputContainer.find(`input[name="${param.name}"]`).daterangepicker(getSingleDatePicker());
26054 amit.gupta 522
			return;
26053 amit.gupta 523
		}
31416 tejbeer 524
		case "DATE_RANGE": {
26054 amit.gupta 525
			$inputContainer.append(`<div class="form-group">
26053 amit.gupta 526
					<label>${param.displayText}</label> 
26134 amit.gupta 527
					<input name="${param.name}" type="text" value="" class="param form-control input-sm">
26053 amit.gupta 528
			</div>`);
30599 amit.gupta 529
			$inputContainer.find(`input[name="${param.name}"]`).daterangepicker(getRangedDatePicker(true));
26054 amit.gupta 530
			return;
26053 amit.gupta 531
		}
532
		case "STRING": {
31416 tejbeer 533
			if (param.name == "authId") {
26154 amit.gupta 534
				$inputContainer.append(`
535
						<input type="hidden" name="${param.name}" type="text" value="${authId}" class="param form-control input-sm">`);
26155 amit.gupta 536
			} else {
537
				$inputContainer.append(`<div class="form-group">
538
						<label>${param.displayText}</label> 
539
						<input name="${param.name}" type="text" value="" class="param form-control input-sm">
540
					</div>`);
26142 amit.gupta 541
			}
26054 amit.gupta 542
			return;
26053 amit.gupta 543
		}
31416 tejbeer 544
		case "LIST": {
545
			if (param.name == "code") {
26089 amit.gupta 546
				var arr = [];
31416 tejbeer 547
				if (retailers.length == 1) {
26157 amit.gupta 548
					$inputContainer.append(`<input type="hidden" name="${param.name}" type="text" value="${authId}" class="param form-control input-sm">`)
549
				} else {
31416 tejbeer 550
					for (var i in retailers) {
26157 amit.gupta 551
						arr.push(`<option value="${retailers[i].code}">${retailers[i].displayName}-${retailers[i].code}</option>`);
552
					}
553
					var options = arr.join("");
554
					$inputContainer.append(`<div class="col-lg-2 form-group">
555
							<label>${param.displayText}</label> 
556
							<select class="param form-control input-sm" id="code" multiple="multiple" name="${param.name}">
26089 amit.gupta 557
							<option value="" disabled selected>Select Franchisee</option>
558
							${options}
26157 amit.gupta 559
							</select>
560
					</div>`);
31416 tejbeer 561
 
26157 amit.gupta 562
					$('#code').multiselect({
563
						includeSelectAllOption: true,
31416 tejbeer 564
						multiple: true,
26157 amit.gupta 565
						maxHeight: 200,
566
						buttonWidth: '180px',
567
						numberDisplayed: 1,
568
						nonSelectedText: 'Franchisee',
569
						nSelectedText: ' - Franchisees Selected',
570
						allSelectedText: 'All Franchisees',
571
						enableFiltering: true,
31416 tejbeer 572
						enableCaseInsensitiveFiltering: true
26157 amit.gupta 573
					});
574
				}
31416 tejbeer 575
			} else if (param.name == "warehouseId") {
26134 amit.gupta 576
				var arr = [];
31416 tejbeer 577
				for (var i in warehouses) {
26134 amit.gupta 578
					arr.push(`<option value="${i}">${warehouses[i]}</option>`);
579
				}
580
				var options = arr.join("");
581
				$inputContainer.append(`<div class="col-lg-2 form-group">
582
						<label>${param.displayText}</label> 
583
						<select class="param form-control input-sm" id="code" multiple="multiple" name="${param.name}">
584
						<option value="" disabled selected>Select Warehouses</option>
585
						${options}
586
						</select>
587
				</div>`);
31416 tejbeer 588
 
26134 amit.gupta 589
				$('#code').multiselect({
590
					includeSelectAllOption: true,
31416 tejbeer 591
					multiple: true,
26134 amit.gupta 592
					maxHeight: 200,
593
					buttonWidth: '180px',
594
					numberDisplayed: 1,
595
					nonSelectedText: 'Warehouses',
596
					nSelectedText: ' - Warehouse Selected',
597
					allSelectedText: 'All Warehouses',
598
					enableFiltering: true,
31416 tejbeer 599
					enableCaseInsensitiveFiltering: true
26134 amit.gupta 600
				});
601
			} else {
26089 amit.gupta 602
				$inputContainer.append(`<div class="form-group">
603
						<label>${param.displayText}(Comma Separated)</label> 
26134 amit.gupta 604
						<input name="${param.name}" type="text" value="" class="param form-control input-sm">
26089 amit.gupta 605
				</div>`);
606
			}
26054 amit.gupta 607
			return;
26053 amit.gupta 608
		}
609
	}
610
}