| 24206 |
amit.gupta |
1 |
getItemAheadOptions($("#typeaheaditem"), function(selectedItem) {
|
|
|
2 |
currentItem = selectedItem;
|
|
|
3 |
doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId,
|
|
|
4 |
function(response) {
|
|
|
5 |
response = JSON.parse(response);
|
|
|
6 |
$('#currentDp').val(response.dp);
|
|
|
7 |
$('#oldMop').html(response.mop);
|
|
|
8 |
$('#oldTp').html(response.tp);
|
|
|
9 |
$('#oldNlc').html(response.nlc);
|
|
|
10 |
});
|
|
|
11 |
});
|
|
|
12 |
getItemAheadOptions($("#typeaheaditem1"), function(selectedItem) {
|
|
|
13 |
currentItem = selectedItem;
|
|
|
14 |
doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId,
|
|
|
15 |
function(response) {
|
|
|
16 |
response = JSON.parse(response);
|
|
|
17 |
if (response.dp > 0) {
|
|
|
18 |
$("#dp").val(response.dp).prop("readOnly", true);
|
|
|
19 |
} else {
|
|
|
20 |
$("#dp").val(response.dp).prop("readOnly", false);
|
|
|
21 |
}
|
|
|
22 |
$("#mop").val(response.mop);
|
|
|
23 |
$("#mrp").val(response.mrp);
|
|
|
24 |
$('#dpValue').html("DP -" + response.dp);
|
|
|
25 |
$('#mopValue').html("MOP -" + response.mop);
|
|
|
26 |
$('#mrpValue').html("MRP -" + response.mrp);
|
|
|
27 |
});
|
|
|
28 |
});
|