| Line 91... |
Line 91... |
| 91 |
$('input#courierCost').val(courierCost);
|
91 |
$('input#courierCost').val(courierCost);
|
| 92 |
$('input#commission').val(commisionPrice);
|
92 |
$('input#commission').val(commisionPrice);
|
| 93 |
$('input#serviceTax').val(serviceTax);
|
93 |
$('input#serviceTax').val(serviceTax);
|
| 94 |
}
|
94 |
}
|
| 95 |
</script>
|
95 |
</script>
|
| - |
|
96 |
<script type="text/javascript">
|
| - |
|
97 |
$('#getMxNlc').live('click', function(){
|
| - |
|
98 |
var itemId=document.forms["snapdeal-form"]["itemId"].value;
|
| - |
|
99 |
var warehouseId=document.forms["snapdeal-form"]["warehouseId"].value;
|
| - |
|
100 |
jQuery.ajax({
|
| - |
|
101 |
type : "GET",
|
| - |
|
102 |
url : "/Support/snapdeal-list!ke$ha?itemId="+itemId+"&warehouseId="+warehouseId,
|
| - |
|
103 |
beforeSend: function(){
|
| - |
|
104 |
$('#ajax-spinner').show();
|
| - |
|
105 |
},
|
| - |
|
106 |
complete: function(){
|
| - |
|
107 |
$('#ajax-spinner').hide();
|
| - |
|
108 |
},
|
| - |
|
109 |
success : function(json){
|
| - |
|
110 |
var parsedData = JSON.parse(json);
|
| - |
|
111 |
$('input#maxNlc').val(parsedData.MaxNlc);
|
| - |
|
112 |
},
|
| - |
|
113 |
error : function() {
|
| - |
|
114 |
alert("Unable to get max nlc");
|
| - |
|
115 |
},
|
| - |
|
116 |
});
|
| - |
|
117 |
return false;
|
| - |
|
118 |
});
|
| - |
|
119 |
</script>
|
| 96 |
<form id="snapdeal-form" action="/Support/snapdeal-list!update" enctype="multipart/form-data" method="post">
|
120 |
<form id="snapdeal-form" action="/Support/snapdeal-list!update" enctype="multipart/form-data" method="post">
|
| 97 |
<div class="left" style="float: left; width: 48%;">
|
121 |
<div class="left" style="float: left; width: 48%;">
|
| 98 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
122 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
| 99 |
<thead>
|
123 |
<thead>
|
| 100 |
</thead>
|
124 |
</thead>
|
| Line 104... |
Line 128... |
| 104 |
<td class="value"><input id="itemId" name="itemId" value='$itemDetail.getItem_id()'type="text" readonly/></td>
|
128 |
<td class="value"><input id="itemId" name="itemId" value='$itemDetail.getItem_id()'type="text" readonly/></td>
|
| 105 |
</tr>
|
129 |
</tr>
|
| 106 |
<tr>
|
130 |
<tr>
|
| 107 |
<td class="detail">Warehouse Id</td>
|
131 |
<td class="detail">Warehouse Id</td>
|
| 108 |
<td class="value">
|
132 |
<td class="value">
|
| 109 |
<input id="warehouseId" name="warehouseId" value='$itemDetail.getWarehouseId()'type="text"/></td>
|
133 |
<input id="warehouseId" name="warehouseId" value='$itemDetail.getWarehouseId()' style="width:25%; type="text" />
|
| - |
|
134 |
<input type="button" id="getMxNlc" value="Get Max Nlc" style="width:25%;">
|
| - |
|
135 |
</td>
|
| 110 |
</tr>
|
136 |
</tr>
|
| 111 |
<tr>
|
137 |
<tr>
|
| 112 |
<td class="detail">Snapdeal Selling Price</td>
|
138 |
<td class="detail">Snapdeal Selling Price</td>
|
| 113 |
<td class="value">
|
139 |
<td class="value">
|
| 114 |
<input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text" readonly/></td>
|
140 |
<input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text" readonly/></td>
|
| Line 124... |
Line 150... |
| 124 |
<tr>
|
150 |
<tr>
|
| 125 |
<td class="detail">Webiste Selling Price</td>
|
151 |
<td class="detail">Webiste Selling Price</td>
|
| 126 |
<td class="value"><input id="webisteSellingPrice" name="webisteSellingPrice" value='$itemDetail.getWebsiteSellingPrice()'type="text" readonly/></td>
|
152 |
<td class="value"><input id="webisteSellingPrice" name="webisteSellingPrice" value='$itemDetail.getWebsiteSellingPrice()'type="text" readonly/></td>
|
| 127 |
</tr>
|
153 |
</tr>
|
| 128 |
<tr>
|
154 |
<tr>
|
| - |
|
155 |
<td class="detail">Max NLC</td>
|
| - |
|
156 |
<td class="value"><input id="maxNlc" name="maxNlc" value='$itemDetail.getMaxNlc()'type="text"></td>
|
| - |
|
157 |
</tr>
|
| - |
|
158 |
<tr>
|
| 129 |
<td class="detail">Suppress Pricing Feed</td>
|
159 |
<td class="detail">Suppress Pricing Feed</td>
|
| 130 |
<td class="value">#if ($itemDetail.isSuppressPriceFeed())
|
160 |
<td class="value">#if ($itemDetail.isSuppressPriceFeed())
|
| 131 |
<select name="isSuppressPriceFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
161 |
<select name="isSuppressPriceFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 132 |
#else
|
162 |
#else
|
| 133 |
<select name="isSuppressPriceFeed"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
163 |
<select name="isSuppressPriceFeed"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| Line 175... |
Line 205... |
| 175 |
<tr>
|
205 |
<tr>
|
| 176 |
<td class="detail">Courier Cost</td>
|
206 |
<td class="detail">Courier Cost</td>
|
| 177 |
<td class="value"><input id="courierCost" name="courierCost" value='$itemDetail.getCourierCost()'type="text" readonly/></td>
|
207 |
<td class="value"><input id="courierCost" name="courierCost" value='$itemDetail.getCourierCost()'type="text" readonly/></td>
|
| 178 |
</tr>
|
208 |
</tr>
|
| 179 |
<tr>
|
209 |
<tr>
|
| - |
|
210 |
<td class="detail">Item Id @ Snapdeal</td>
|
| - |
|
211 |
#if($itemDetail.getSnapdealItemCode())
|
| - |
|
212 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='$itemDetail.getSnapdealItemCode()' type="text"></td>
|
| - |
|
213 |
#else
|
| - |
|
214 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='' type="text"></td>
|
| - |
|
215 |
#end
|
| - |
|
216 |
</tr>
|
| - |
|
217 |
<tr>
|
| 180 |
<td class="detail">Action</td>
|
218 |
<td class="detail">Action</td>
|
| 181 |
<td class="value"><input type="submit" value="Update" name="upload" style="width: 25%;">
|
219 |
<td class="value"><input type="submit" value="Update" name="upload" style="width: 25%;">
|
| 182 |
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
|
220 |
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
|
| 183 |
</td>
|
221 |
</td>
|
| 184 |
</tr>
|
222 |
</tr>
|