Subversion Repositories SmartDukaan

Rev

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

Rev 23855 Rev 23884
Line 324... Line 324...
324
		quantity = parseInt($input.val(), 10);
324
		quantity = parseInt($input.val(), 10);
325
		if(quantity > 0){
325
		if(quantity > 0){
326
			indentMap[parseInt(arr[0])] = {"initialQuantity": quantity, "quantity": quantity, "sellingPrice":parseInt(arr[2]), "description": arr[1], "diff":0};
326
			indentMap[parseInt(arr[0])] = {"initialQuantity": quantity, "quantity": quantity, "sellingPrice":parseInt(arr[2]), "description": arr[1], "diff":0};
327
	    }
327
	    }
328
	});
328
	});
329
	$(".typeahead").typeahead({
329
	$("#partnerId").typeahead({
330
	  source: customRetailers,
330
	  source: customRetailers,
331
	  autoSelect: true,
331
	  autoSelect: true,
332
	  displayText:function(item){return item.businessName + "-" + item.address.city;},
332
	  displayText:function(item){return item.businessName + "-" + item.address.city;},
333
	  afterSelect:	function(currentItem){
333
	  afterSelect:	function(currentItem){
334
	  					currentFofoId = currentItem.partnerId;
334
	  					currentFofoId = currentItem.partnerId;