Subversion Repositories SmartDukaan

Rev

Rev 24206 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24206 Rev 27618
Line 1... Line 1...
1
getItemAheadOptions($("#typeaheaditem"), function(selectedItem) {
1
getItemAheadOptions($("#typeaheaditem"), true,function(selectedItem) {
2
	currentItem = selectedItem;
2
	currentItem = selectedItem;
3
	doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId,
3
	doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId,
4
			function(response) {
4
			function(response) {
5
				response = JSON.parse(response);
5
				response = JSON.parse(response);
6
				$('#currentDp').val(response.dp);
6
				$('#currentDp').val(response.dp);
7
				$('#oldMop').html(response.mop);
7
				$('#oldMop').html(response.mop);
8
				$('#oldTp').html(response.tp);
8
				$('#oldTp').html(response.tp);
9
				$('#oldNlc').html(response.nlc);
9
				$('#oldNlc').html(response.nlc);
10
			});
10
			});
11
});
11
});
12
getItemAheadOptions($("#typeaheaditem1"), function(selectedItem) {
12
getItemAheadOptions($("#typeaheaditem1"),true, function(selectedItem) {
13
	currentItem = selectedItem;
13
	currentItem = selectedItem;
14
	doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId,
14
	doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId,
15
			function(response) {
15
			function(response) {
16
				response = JSON.parse(response);
16
				response = JSON.parse(response);
17
				if (response.dp > 0) {
17
				if (response.dp > 0) {