Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21987 kshitij.so 1
var grnhistory= grnhistory || {};
2
grnhistory.searchText = "";
3
grnhistory.searchType = "";
4
grnhistory.startTime = "0";
5
grnhistory.endTime = "0";
6
 
22283 ashik.ali 7
var saleHistory=saleHistory || {};
8
saleHistory.searchText="";
9
saleHistory.searchType="";
10
saleHistory.startTime="";
11
saleHistory.endTime="";
12
 
21627 kshitij.so 13
$(function() {
14
	$(".new_grn").live('click', function() {
15
		loadNewGrn("main-content");
16
	});
21987 kshitij.so 17
 
18
	$(".good_inventory").live('click', function() {
19
		loadGoodInventory("main-content","");
20
	});
21
 
22
	$(".catalog").live('click', function() {
23
		loadCatalog("main-content","");
24
	});
25
 
26
	$(".bad_inventory").live('click', function() {
27
		loadBadInventory("main-content","");
28
	});
21627 kshitij.so 29
 
21987 kshitij.so 30
	$(".grn_history").live('click', function() {
31
		loadGrnHistory("main-content","","","0","0");
32
	});
33
 
34
	$(".cart_icon_header").live('click', function() {
35
		loadCart("main-content");
36
	});
37
 
38
	$(".cart-checkout").live('click', function() {
39
		checkout("main-content");
40
	});
41
 
22245 ashik.ali 42
	$(".create-order").live('click', function() {
43
		checkout("main-content");
44
	});
45
 
46
	$(".sale-history").live('click', function() {
22292 ashik.ali 47
		console.log("Sale History Button Clicked...")
22245 ashik.ali 48
		saleHistory("main-content","","","0","0");
49
	});
50
 
22354 ashik.ali 51
 
52
	$(".contact-us").live('click', function() {
53
		console.log("Contact Us Button Clicked...")
54
		contactUs("main-content");
55
	});
56
 
21987 kshitij.so 57
	//cart_icon_header
58
 
21627 kshitij.so 59
	$("#purchase-reference-submit").live('submit', function(){
60
		var formData = new FormData($(this)[0]);
61
 
62
		jQuery.ajax({
22092 amit.gupta 63
			url: context+"/purchase",
21627 kshitij.so 64
			type: 'POST',
65
			data: formData,
66
			async: false,
67
			success: function (data) {
68
				$('#main-content').html(data);
69
			},
70
			error : function() {
71
				alert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
72
			},
73
			cache: false,
74
			contentType: false,
75
			processData: false
76
		});
77
		return false;
78
	});
79
 
21640 kshitij.so 80
	$("td.startGrnSerialized").live('click', function() {
21627 kshitij.so 81
		var invoiceNumber = $(this).attr('invoiceNumber');
82
		var quantity = $(this).attr('quantity');
83
		var displayName = $(this).attr('displayName');
84
		var itemId = $(this).attr('itemId');
85
		console.log(quantity);
86
		$(".modal-body .grnInvoiceNumber>span").text(invoiceNumber);
87
		$(".modal-body .grnProductInfo>span").text(displayName);
21640 kshitij.so 88
		$("#scanModel .invoiceNumber").val(invoiceNumber);
89
		$("#scanModel .itemId").val(itemId);
21627 kshitij.so 90
		$( "#grnImeiInformation" ).empty();
91
		var qty = parseInt(quantity);
92
		var divCode = '<div class="row">CONTENT</div><p></p>';
93
		var innerDiv = '<div class="col-sm-3">'+
94
		'<div class="input-group">'+
95
		'<input type="text" class="form-control">'+
96
		'</div>'+
97
		'</div>';
98
		while(qty!=0){
99
			var divText  = "";
100
			if (qty < 4){
101
				var cp = qty;
102
				for (var i=0;i<cp;i++ ){
103
					divText = divText + innerDiv;
104
					qty = qty - 1;
105
				}
106
			}
107
			else{
108
				for(var i=0;i<4;i++){
109
					divText = divText + innerDiv;
110
					qty = qty - 1;
111
				}
112
			}
113
			divText = divCode.replace("CONTENT",divText); 
114
			$("#grnImeiInformation")
115
			.append(divText)
116
		}
117
	});
118
 
21640 kshitij.so 119
	$("td.startGrnNonSerialized").live('click', function() {
120
		var invoiceNumber = $(this).attr('invoiceNumber');
121
		var quantity = $(this).attr('quantity');
122
		var displayName = $(this).attr('displayName');
123
		var itemId = $(this).attr('itemId');
124
		console.log(quantity);
125
		$("#scanNonSerializedModel .modal-body .grnInvoiceNumber>span").text(invoiceNumber);
126
		$("#scanNonSerializedModel .modal-body .grnProductInfo>span").text(displayName);
127
		$("#scanNonSerializedModel .invoiceNumber").val(invoiceNumber);
128
		$("#scanNonSerializedModel .itemId").val(itemId);
129
		$( "#grnImeiInformation" ).empty();
130
		var qty = parseInt(quantity);
131
		var divCode = '<div class="row">CONTENT</div><p></p>';
132
		var innerDiv = '<div class="col-sm-3">'+
133
		'<div class="input-group">'+
134
		'<input type="text" class="form-control">'+
135
		'</div>'+
136
		'</div>';
137
		while(qty!=0){
138
			var divText  = "";
139
			if (qty < 4){
140
				var cp = qty;
141
				for (var i=0;i<cp;i++ ){
142
					divText = divText + innerDiv;
143
					qty = qty - 1;
144
				}
145
			}
146
			else{
147
				for(var i=0;i<4;i++){
148
					divText = divText + innerDiv;
149
					qty = qty - 1;
150
				}
151
			}
152
			divText = divCode.replace("CONTENT",divText); 
153
			$("#grnImeiInformation")
154
			.append(divText)
155
		}
156
	});
157
 
158
	$("#grnSubmitSerialized").live('click', function(){
21627 kshitij.so 159
		var imeis = [];
160
		var error = false;
161
		var errorText = "";
162
		$("#grnImeiInformation :input").each(function(){
163
			var input = $(this).val().trim();
164
			if (imeis.indexOf(input) !=-1 || !input){
165
				error = true;
166
				if (!input){
167
					$(this).addClass("border-highlight");
168
				}
169
			}
170
			imeis.push(input);
22415 ashik.ali 171
 
21627 kshitij.so 172
		});
173
		if (error){
174
			return false;
175
		}
21640 kshitij.so 176
		var invoiceNumber = $("#scanModel .invoiceNumber").val();
177
		var itemId = $("#scanModel .itemId").val();
21627 kshitij.so 178
		var postData = JSON.stringify({"itemId":parseInt(itemId),"invoiceNumber":invoiceNumber,"serialNumbers":imeis});
179
		jQuery.ajax({
22092 amit.gupta 180
			url: context+"/scanSerialized",
21627 kshitij.so 181
			type: 'POST',
182
			data: postData,
183
			contentType:'application/json',
184
			async: false,
185
			success: function (data) {
21640 kshitij.so 186
				alert("Purchase booked successfully");
187
				$('#scanModel').modal('hide');
188
				$("#scanModel").on("hidden.bs.modal", function () {
189
					$("#purchase-reference-submit").submit();
190
				});
21627 kshitij.so 191
			},
192
			error : function() {
193
				alert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
194
			},
195
			cache: false,
196
			processData: false
197
		});
198
		return false;
199
	});
21640 kshitij.so 200
 
201
	$("#grnNonSerializedSubmit").live('click', function(){
202
		var error = false;
203
		var errorText = "";
204
		if (error){
205
			return false;
206
		}
207
		var invoiceNumber = $("#scanNonSerializedModel .invoiceNumber").val();
208
		var itemId = $("#scanNonSerializedModel .itemId").val();
209
		var quantity = $("#scanNonSerializedModel .quantity").val();
210
		var postData = JSON.stringify({"itemId":parseInt(itemId),"invoiceNumber":invoiceNumber,"quantity":parseInt(quantity)});
211
		jQuery.ajax({
22092 amit.gupta 212
			url: context+"/scanNonSerialized",
21640 kshitij.so 213
			type: 'POST',
214
			data: postData,
215
			contentType:'application/json',
216
			async: false,
217
			success: function (data) {
218
				alert("Purchase booked successfully");
219
				$('#scanNonSerializedModel').modal('hide');
220
				$("#scanNonSerializedModel").on("hidden.bs.modal", function () {
221
					$("#purchase-reference-submit").submit();
222
				});
223
			},
224
			error : function() {
225
				alert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
226
			},
227
			cache: false,
228
			processData: false
229
		});
230
		return false;
231
	});
21627 kshitij.so 232
 
233
	$("#grnImeiInformation :input").live('change paste keyup mouseup', function() {
234
		if ($(this).val().trim() != "") {
235
			console.log('The text box really changed this time');
236
			$('#grnImeiInformation :input').removeClass("border-highlight");
237
			if(findDuplicateSerialNumbers( $(this).val().trim()) > 0){
238
				var inputs = $("#grnImeiInformation :input[value="+$(this).val().trim()+"]");
239
				if(inputs.length > 1){
240
					inputs.each(function(){$(this).addClass("border-highlight")});
241
				}
242
			}
243
		}
244
	});
21987 kshitij.so 245
 
22415 ashik.ali 246
 
247
	$("#grnImeiInformation :input").live('paste', function() {
248
		if ($(this).val().trim() != "") {
249
			console.log('paste event');
250
			$(this).next("input .form-control").focus();
251
		}
252
	});
253
 
21987 kshitij.so 254
	$("#good-inventory-paginated .next").live('click', function() {
255
		var start = $( "#good-inventory-paginated .start" ).text();
256
		var end = $( "#good-inventory-paginated .end" ).text();
257
		var searchText = $("#good-inventory-search-text").val();
258
		if (typeof (searchText) == "undefined" || !searchText){
259
			searchText = "";
260
		}
261
		getNextItems(start,end,searchText);
262
		$("#good-inventory-paginated .next").blur();
263
 
264
    });
265
 
266
	$("#good-inventory-paginated .previous").live('click', function() {
267
		var start = $( "#good-inventory-paginated .start" ).text();
268
		var end =  $( "#good-inventory-paginated .end" ).text();
269
		var searchText = $("#good-inventory-search-text").val();
270
		if (typeof (searchText) == "undefined" || !searchText){
271
			searchText = "";
272
		}
273
		var pre = end - 20;
274
		getPreviousItems(start,end,pre,searchText);
275
		$("#good-inventory-paginated .previous").blur();
276
    });
277
 
278
	$("#good-inventory-search-button").live('click', function() {
279
		var searchText = $("#good-inventory-search-text").val();
280
		if (typeof (searchText) == "undefined" || !searchText){
281
			searchText = "";
282
		}
283
		loadGoodInventorySearchInfo(searchText);
284
    });
285
 
286
	$("#good-inventory-search-text").live("keyup", function(e) {
287
		var keyCode = e.keyCode || e.which;
288
    	if(keyCode == 13){
289
        	$("#good-inventory-search-button").click();
290
    	}
291
	});
292
 
293
	$("#catalog-paginated .next").live('click', function() {
294
		var start = $( "#catalog-paginated .start" ).text();
295
		var end = $( "#catalog-paginated .end" ).text();
296
		var searchText = $("#catalog-search-text").val();
297
		if (typeof (searchText) == "undefined" || !searchText){
298
			searchText = "";
299
		}
300
		getNextCatalogItems(start,end,searchText);
301
		$("#catalog-paginated .next").blur();
302
    });
303
 
304
	$("#catalog-paginated .previous").live('click', function() {
305
		var start = $( "#catalog-paginated .start" ).text();
306
		var end =  $( "#catalog-paginated .end" ).text();
307
		var searchText = $("#catalog-search-text").val();
308
		if (typeof (searchText) == "undefined" || !searchText){
309
			searchText = "";
310
		}
311
		var pre = end - 20;
312
		getPreviousCatalogItems(start,end,pre,searchText);
313
		$("#catalog-paginated .previous").blur();
314
    });
315
 
316
	$("#catalog-search-button").live('click', function() {
317
		var searchText = $("#catalog-search-text").val();
318
		if (typeof (searchText) == "undefined" || !searchText){
319
			searchText = "";
320
		}
321
		loadCatalogSearchInfo(searchText);
322
    });
323
 
324
	$("#catalog-search-text").live("keyup", function(e) {
325
		var keyCode = e.keyCode || e.which;
326
    	if(keyCode == 13){
327
        	$("#catalog-search-button").click();
328
    	}
329
	});
330
 
331
	$("#grn-history-search-button").live('click', function() {
332
		grnhistory.searchText = $("#grn-history-search-text").val();
333
		grnhistory.searchType = "purchaseReference";
334
		grnhistory.startTime = "0";
335
		grnhistory.endTime = "0";
336
		if (typeof (grnhistory.searchText) == "undefined" || !grnhistory.searchText){
337
			grnhistory.searchText = "";
338
		}
339
		loadGrnHistorySearchInfo(grnhistory.searchText,grnhistory.searchType,grnhistory.startTime,grnhistory.endTime);
340
    });
341
 
342
	$("#grn-history-search-text").live("keyup", function(e) {
343
		var keyCode = e.keyCode || e.which;
344
    	if(keyCode == 13){
345
        	$("#grn-history-search-button").click();
346
    	}
347
	});
348
 
22283 ashik.ali 349
 
350
	$("#sale-history-search-button").live('click', function() {
351
		saleHistory.searchText = $("#sale-history-search-text").val();
352
		saleHistory.searchType = "invoiceNumber";
353
		saleHistory.startTime = "0";
354
		saleHistory.endTime = "0";
355
		if (typeof (saleHistory.searchText) == "undefined" || !saleHistory.searchText){
356
			saleHistory.searchText = "";
357
		}
358
		saleHistorySearchInfo(saleHistory.searchText, saleHistory.searchType, saleHistory.startTime, saleHistory.endTime);
359
    });
360
 
361
	$("#sale-history-search-text").live("keyup", function(e) {
362
		var keyCode = e.keyCode || e.which;
363
    	if(keyCode == 13){
364
        	$("#sale-history-search-button").click();
365
    	}
366
	});
367
 
21987 kshitij.so 368
	$("#grn-history-paginated .next").live('click', function() {
369
		var start = $( "#grn-history-paginated .start" ).text();
370
		var end = $( "#grn-history-paginated .end" ).text();
371
		getGrnHistoryNextItems(start,end,grnhistory.searchText,grnhistory.searchType,grnhistory.startTime,grnhistory.endTime);
372
		$("#grn-history-paginated .next").blur();
373
 
374
    });
375
 
376
	$("#grn-history-paginated .previous").live('click', function() {
377
		var start = $( "#grn-history-paginated .start" ).text();
378
		var end =  $( "#grn-history-paginated .end" ).text();
379
		var pre = end - 20;
380
		getGrnHistoryPreviousItems(start,end,pre,grnhistory.searchText,grnhistory.searchType,grnhistory.startTime,grnhistory.endTime);
381
		$("#grn-history-paginated .previous").blur();
382
    });
383
 
384
	$("#grn-history-date-button").live('click', function() {
385
		var dateRange = $('#reportrange span').text();
386
		grnhistory.startTime = new Date(dateRange.split("-")[0]).getTime();
387
		grnhistory.endTime = new Date(dateRange.split("-")[1]).getTime();
388
		grnhistory.searchType = "dateFilter";
389
		grnhistory.searchText = "";
390
		loadGrnHistorySearchInfo(grnhistory.searchText,grnhistory.searchType,grnhistory.startTime,grnhistory.endTime);
391
    });
392
 
22292 ashik.ali 393
 
394
	$("#sale-history-paginated .next").live('click', function() {
395
		var start = $( "#sale-history-paginated .start" ).text();
396
		var end = $( "#sale-history-paginated .end" ).text();
397
		getSaleHistoryNextItems(start, end, saleHistory.searchText, saleHistory.searchType, saleHistory.startTime, saleHistory.endTime);
398
		$("#sale-history-paginated .next").blur();
399
    });
400
 
401
	$("#sale-history-paginated .previous").live('click', function() {
402
		var start = $( "#sale-history-paginated .start" ).text();
403
		var end =  $( "#sale-history-paginated .end" ).text();
404
		var pre = end - 20;
405
		getSaleHistoryPreviousItems(start, end, pre, saleHistory.searchText, saleHistory.searchType, saleHistory.startTime, saleHistory.endTime);
406
		$("#sale-history-paginated .previous").blur();
407
    });
408
 
409
	$("#sale-history-date-button").live('click', function() {
410
		var dateRange = $('#reportrange span').text();
411
		saleHistory.startTime = new Date(dateRange.split("-")[0]).getTime();
412
		saleHistory.endTime = new Date(dateRange.split("-")[1]).getTime();
413
		saleHistory.searchType = "dateFilter";
414
		saleHistory.searchText = "";
415
		saleHistorySearchInfo(saleHistory.searchText, saleHistory.searchType, saleHistory.startTime, saleHistory.endTime);
416
    });
417
 
21987 kshitij.so 418
	//grn-details
419
 
420
	$(".grn-details").live('click',function(){
421
		var purchaseId = $(this).attr('data');
422
		console.log(purchaseId);
423
		loadGrnDetails(purchaseId,"grn-details-container");
424
	});
425
 
22245 ashik.ali 426
	$(".sale-details").live('click',function(){
427
		var orderId = $(this).attr('data');
428
		console.log(orderId);
429
		loadSaleDetails(orderId,"sale-details-container");
430
	});
431
 
21987 kshitij.so 432
	$(".pending-grn").live('click',function(){
433
		var purchaseReference = $(this).attr('data');
434
		console.log(purchaseReference);
435
		loadPendingGrnDetails(purchaseReference,"main-content");
436
	});
437
 
438
	//add-to-bag
439
 
440
	$(".add-to-bag").live('click', function() {
441
		var itemId = $(this).attr('data');
442
		$("#bagModel .itemId").val(itemId);
443
		$("#bagModel .quantity").val(0);
444
		jQuery.ajax({
22092 amit.gupta 445
			url: context+"/checkItemAvailability/?itemId="+itemId,
21987 kshitij.so 446
			type: 'GET',
447
			contentType:'application/json',
448
			async: false,
449
			success: function (data) {
450
				var obj = JSON.parse(data);
451
				console.log(obj);
452
				console.log(obj.displayName);
453
				$(".modal-body h4.bagModalProductInfo.modelHeaderCustom > span").text(obj.displayName);
454
				$(".modal-body h4.bagModalAvailability.modelHeaderCustom > span").text(obj.availability);
455
				$("#bagModel .availability").val(obj.availability);
456
			},
457
			error : function() {
458
				alert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
459
			},
460
			cache: false,
461
			processData: false
462
		});
463
	});
464
 
465
	//addToBagButton
466
 
467
	$("#addToBagButton").live('click', function() {
468
		var itemId = $(this).attr('data');
469
		var itemId = $("#bagModel .itemId").val();
470
		var tempAvailability = $("#bagModel .availability").val();
471
		var quantity = $("#bagModel .quantity").val();
472
 
473
		if (!quantity || parseInt(quantity) <= 0 || isNaN(parseInt(quantity)) || quantity.indexOf('.') != -1){
474
			alert("Please enter valid quantity");
475
			return;
476
		}
477
 
478
		jQuery.ajax({
22092 amit.gupta 479
			url: context+"/checkItemAvailability/?itemId="+itemId,
21987 kshitij.so 480
			type: 'GET',
481
			contentType:'application/json',
482
			async: false,
483
			success: function (data) {
484
				var obj = JSON.parse(data);
485
				console.log(obj);
486
				if (obj.availability < parseInt(quantity) || obj.availability == 0){
487
					alert("You don't have enough inventory of this item");
488
					return;
489
				}
490
				var obj = {'itemId':obj.itemId,'displayName':obj.displayName,'quantity':parseInt(quantity),'iconUrl':obj.iconUrl};
491
				console.log(obj);
492
				addItemInLocalStorage(obj);
493
				alert("Item added to bag successfully");
494
				$('#bagModel').modal('hide');
495
			},
496
			error : function() {
497
				alert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
498
			},
499
			cache: false,
500
			processData: false
501
		});
502
	});
503
 
504
	$(".cart-trash").live('click',function(){
505
		var itemId = $(this).attr('data');
506
		removeItemFromLocalStorage(itemId);
507
		$('div[itemId="' + itemId + '"]').remove();
508
		if ($('#cart-details').html().trim() == ""){
509
			$('#cart-details-empty').show();
510
			$('#cart-checkout').hide();
511
		}
512
	});
513
 
514
	$(".cart-qty").live('change paste keyup mouseup', function() {
515
		var itemId = $(this).attr('data');
516
		var maxQty = $(this).attr('max');
517
		var qty = $(this).val();
518
		if (!qty){
519
			qty = 0;
520
		}
521
		if(parseInt(qty) < 0){
522
			alert("Invalid quantity");
523
			$(this).val(0);
524
			qty = 0;
525
		}
526
		if (parseInt(qty) > parseInt(maxQty)){
527
			alert("You don't have availability of "+qty);
528
			$(this).val(maxQty);
529
			qty = maxQty;
530
		}
531
		changeQuantityInLocalStorage(itemId, qty);
532
	});
533
 
534
	$("form#cd input.unitPrice").live('change paste keyup mouseup', function() {
22245 ashik.ali 535
 
536
		var unitPriceItemId = $(this).attr('itemId');
21987 kshitij.so 537
		var qty = $(this).attr('quantity');
538
		var unitPrice = $(this).val();
539
		if (!unitPrice){
540
			unitPrice = 0;
541
		}
542
		if(parseFloat(unitPrice) < 0){
543
			alert("Invalid unit price");
544
			$(this).val(0);
545
			unitPrice = 0;
546
		}
547
		var netPayableAmount = 0;
22245 ashik.ali 548
		/*$("form#cd input.totalPrice").each(function(){
21987 kshitij.so 549
			if ($(this).attr("itemId") === itemId){
550
				$(this).val(parseFloat(unitPrice)*parseInt(qty));
551
			}
552
			netPayableAmount = netPayableAmount + parseFloat($(this).val()); 
22245 ashik.ali 553
		});*/
554
 
555
		$("#order-details").find("tr:not(:first-child)").each(function(index,el){
556
			//console.log(el);
557
			//console.log(index);
558
			var $totalPriceElement = $(el).find('.totalPrice');
559
			var itemId = parseInt($totalPriceElement.attr("itemId"));
560
			var insuranceAmount = parseFloat($(el).find('.insuranceAmount').val());
561
			if(insuranceAmount == ''){
562
				insuranceAmount = 0;
563
			}
564
			console.log("insuranceAmount : "+ insuranceAmount);
565
			if(itemId == unitPriceItemId){
566
				$($totalPriceElement).val((parseFloat(unitPrice) * parseInt(qty)) + insuranceAmount);
567
			}
568
			netPayableAmount = netPayableAmount + parseFloat($totalPriceElement.val());
569
 
21987 kshitij.so 570
		});
22245 ashik.ali 571
 
21987 kshitij.so 572
		$("form#cd input.netPayableAmount").val(netPayableAmount);
573
	});
22245 ashik.ali 574
 
575
 
576
	$("form#cd input.insuranceAmount").live('change paste keyup mouseup', function() {
577
 
578
		var insuranceAmount = $(this).val();
579
		var insuranceAmountItemId = $(this).attr('itemId');
580
		//var qty = $(this).attr('quantity');
581
		//var unitPrice = $(this).val();
582
		if (!insuranceAmount){
583
			insuranceAmount = 0;
584
		}else{
585
			insuranceAmount = parseFloat(insuranceAmount);
586
		}
587
		var netPayableAmount = 0;
588
 
589
		$("#order-details").find("tr:not(:first-child)").each(function(index,el){
590
			//console.log(el);
591
			//console.log(index);
592
			var $totalPriceElement = $(el).find('.totalPrice');
593
			var itemId = parseInt($totalPriceElement.attr("itemId"));
594
			var unitPrice = parseFloat($(el).find('.unitPrice').val());
595
			var qty = $(el).find('.unitPrice').attr('quantity');
596
			if(unitPrice < 0){
597
				alert("Invalid unit price");
598
				unitPrice = 0;
599
			}
600
			//console.log("insuranceAmount : "+ insuranceAmount);
601
			if(itemId == insuranceAmountItemId){
602
				$($totalPriceElement).val((parseFloat(unitPrice) * parseInt(qty)) + insuranceAmount);
603
			}
604
			netPayableAmount = netPayableAmount + parseFloat($totalPriceElement.val());
605
 
606
		});
607
 
608
		$("form#cd input.netPayableAmount").val(netPayableAmount);
609
	});
21627 kshitij.so 610
 
611
});