| Line 30... |
Line 30... |
| 30 |
<h4 class="modal-title">Add/Update Pricing</h4>
|
30 |
<h4 class="modal-title">Add/Update Pricing</h4>
|
| 31 |
</div>
|
31 |
</div>
|
| 32 |
<div class="modal-body">
|
32 |
<div class="modal-body">
|
| 33 |
<form id="pdForm1">
|
33 |
<form id="pdForm1">
|
| 34 |
<div class="form-group row">
|
34 |
<div class="form-group row">
|
| 35 |
<div class="col-lg-6">
|
35 |
<div class="col-lg-8">
|
| 36 |
<label for="typeaheaditem1">Item:</label>
|
36 |
<label for="typeaheaditem1">Item:</label>
|
| 37 |
<input placeholder="Search Item" type="text" class="form-control typeahead" id="typeaheaditem1" name="Item" data-provide="typeahead" autocomplete="off">
|
37 |
<input placeholder="Search Item" type="text" class="form-control typeahead" id="typeaheaditem1" name="Item" data-provide="typeahead" autocomplete="off">
|
| 38 |
</div>
|
38 |
</div>
|
| - |
|
39 |
</div>
|
| - |
|
40 |
<div class="form-group row">
|
| - |
|
41 |
<div class="col-lg-2">
|
| - |
|
42 |
<label id="tpValue">TP - </label>
|
| - |
|
43 |
<input type="text" class="form-control" id="tp" placeholder="TP" type="text"/>
|
| - |
|
44 |
</div>
|
| 39 |
<div class="col-lg-2">
|
45 |
<div class="col-lg-2">
|
| 40 |
<label id="dpValue">DP - </label>
|
46 |
<label id="dpValue">DP - </label>
|
| 41 |
<input type="text" class="form-control" id="dp" placeholder="DP" type="text"/>
|
47 |
<input type="text" class="form-control" id="dp" placeholder="DP" type="text"/>
|
| 42 |
</div>
|
48 |
</div>
|
| 43 |
<div class="col-lg-2">
|
49 |
<div class="col-lg-2">
|
| Line 252... |
Line 258... |
| 252 |
});
|
258 |
});
|
| 253 |
getItemAheadOptions($("#typeaheaditem1"), function(selectedItem){
|
259 |
getItemAheadOptions($("#typeaheaditem1"), function(selectedItem){
|
| 254 |
currentItem = selectedItem;
|
260 |
currentItem = selectedItem;
|
| 255 |
doGetAjaxRequestHandler(context+"/item-pricing/"+currentItem.itemId, function(response){
|
261 |
doGetAjaxRequestHandler(context+"/item-pricing/"+currentItem.itemId, function(response){
|
| 256 |
response = JSON.parse(response);
|
262 |
response = JSON.parse(response);
|
| 257 |
|
- |
|
| 258 |
$("#mop").val(response.mop);
|
263 |
$("#mop").val(response.mop);
|
| 259 |
$("#mrp").val(response.mrp);
|
264 |
$("#mrp").val(response.mrp);
|
| 260 |
$("#dp").val(response.dp);
|
265 |
$("#dp").val(response.dp);
|
| - |
|
266 |
$("#tp").val(response.tp);
|
| 261 |
$('#dpValue').html("DP -" + response.dp);
|
267 |
$('#dpValue').html("DP -" + response.dp);
|
| 262 |
$('#mopValue').html("MOP -" + response.mop);
|
268 |
$('#mopValue').html("MOP -" + response.mop);
|
| 263 |
$('#mrpValue').html("MRP -"+ response.mrp);
|
269 |
$('#mrpValue').html("MRP -"+ response.mrp);
|
| - |
|
270 |
$('#tpValue').html("TP -"+ response.tp);
|
| 264 |
});
|
271 |
});
|
| 265 |
});
|
272 |
});
|
| 266 |
affectedDateInput=$('#affectedDate');
|
273 |
affectedDateInput=$('#affectedDate');
|
| 267 |
affectedDateInput.daterangepicker(getSingleDatePicker(), dateRangeCallback);
|
274 |
affectedDateInput.daterangepicker(getSingleDatePicker(), dateRangeCallback);
|
| 268 |
$("#newPriceDropModal").on('hidden.bs.modal', function () {
|
275 |
$("#newPriceDropModal").on('hidden.bs.modal', function () {
|