| Line 1... |
Line 1... |
| 1 |
#set ($itemDetail = $action.fetchItemDetail())
|
1 |
#set ($itemDetail = $action.fetchItemDetail())
|
| 2 |
|
- |
|
| - |
|
2 |
#set ($mpDetail = $action.fetchMarketplaceDetail())
|
| 3 |
<style>
|
3 |
<style>
|
| 4 |
* { font-family: Verdana; font-size: 96%; }
|
4 |
* { font-family: Verdana; font-size: 96%; }
|
| 5 |
label {
|
5 |
label {
|
| 6 |
float: left;
|
6 |
float: left;
|
| 7 |
}
|
7 |
}
|
| Line 15... |
Line 15... |
| 15 |
#upload tbody {
|
15 |
#upload tbody {
|
| 16 |
background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
|
16 |
background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
|
| 17 |
font-weight: bold;
|
17 |
font-weight: bold;
|
| 18 |
}
|
18 |
}
|
| 19 |
|
19 |
|
| - |
|
20 |
.mpUpload > table {
|
| - |
|
21 |
color: #747474;
|
| - |
|
22 |
width: 100%;
|
| - |
|
23 |
}
|
| - |
|
24 |
|
| - |
|
25 |
|
| - |
|
26 |
.mpUpload tbody {
|
| - |
|
27 |
background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
|
| - |
|
28 |
font-weight: bold;
|
| - |
|
29 |
}
|
| - |
|
30 |
|
| 20 |
.detail {
|
31 |
.detail {
|
| 21 |
background: url("/Support/images/center-blue.png") repeat-y scroll left top #E4EBF8;
|
32 |
background: url("/Support/images/center-blue.png") repeat-y scroll left top #E4EBF8;
|
| 22 |
border-bottom: 1px solid #B3C1DB;
|
33 |
border-bottom: 1px solid #B3C1DB;
|
| 23 |
border-right: 1px solid #CED9EC;
|
34 |
border-right: 1px solid #CED9EC;
|
| 24 |
color: #1F3D71;
|
35 |
color: #1F3D71;
|
| Line 47... |
Line 58... |
| 47 |
font-size: 12px;
|
58 |
font-size: 12px;
|
| 48 |
text-align: center;
|
59 |
text-align: center;
|
| 49 |
width: 50%;
|
60 |
width: 50%;
|
| 50 |
font-weight: bold;
|
61 |
font-weight: bold;
|
| 51 |
}
|
62 |
}
|
| - |
|
63 |
.top-header {
|
| - |
|
64 |
background-color: #2789C1;
|
| - |
|
65 |
display: block;
|
| - |
|
66 |
height: 27px;
|
| - |
|
67 |
width: 100%;
|
| - |
|
68 |
}
|
| - |
|
69 |
|
| - |
|
70 |
input[type="text"][readonly] {
|
| - |
|
71 |
background-color: #D1D1D1;
|
| - |
|
72 |
}
|
| - |
|
73 |
|
| - |
|
74 |
input[type="text"][disabled] {
|
| - |
|
75 |
background-color: #D1D1D1;
|
| - |
|
76 |
}
|
| 52 |
</style>
|
77 |
</style>
|
| 53 |
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
|
78 |
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
|
| 54 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
79 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
| 55 |
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
|
80 |
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
|
| 56 |
<script type="text/javascript">
|
81 |
<script type="text/javascript">
|
| Line 61... |
Line 86... |
| 61 |
});
|
86 |
});
|
| 62 |
</script>
|
87 |
</script>
|
| 63 |
<script type="text/javascript">
|
88 |
<script type="text/javascript">
|
| 64 |
function calculateStuff()
|
89 |
function calculateStuff()
|
| 65 |
{
|
90 |
{
|
| 66 |
var itemWeight=document.forms["snapdeal-form"]["itemWeight"].value;
|
91 |
var itemWeight=$('#itemWeight').val();
|
| - |
|
92 |
itemWeight = itemWeight+.05;
|
| 67 |
if (itemWeight==0){
|
93 |
if (itemWeight==0){
|
| 68 |
var courierCost =45;
|
94 |
var courierCost =45;
|
| 69 |
}
|
95 |
}
|
| 70 |
else{
|
96 |
else{
|
| 71 |
var slabs = parseInt((parseFloat(itemWeight)-.001)/.5)
|
97 |
var slabs = parseInt((parseFloat(itemWeight)-.001)/.5)
|
| Line 73... |
Line 99... |
| 73 |
for (var i=0;i<slabs;i++)
|
99 |
for (var i=0;i<slabs;i++)
|
| 74 |
{
|
100 |
{
|
| 75 |
courierCost = courierCost + 35;
|
101 |
courierCost = courierCost + 35;
|
| 76 |
}
|
102 |
}
|
| 77 |
}
|
103 |
}
|
| 78 |
var transferPrice=document.forms["snapdeal-form"]["transferPrice"].value;
|
104 |
//courierCost = ((courierCost+0)*1.1236).toFixed(2);
|
| 79 |
if ( transferPrice==null || transferPrice=="" || isNaN(transferPrice)){
|
105 |
var sellingPrice=$('#sellingPrice').val();
|
| 80 |
$('input#sellingPrice').val('0.00');
|
106 |
var nlc=$('#maxNlc').val();
|
| - |
|
107 |
var otherCost=$('#otherCost').val();
|
| - |
|
108 |
var othCost=parseFloat(otherCost);
|
| - |
|
109 |
if ( sellingPrice==null || sellingPrice=="" || isNaN(sellingPrice) || nlc==null || nlc=="" || isNaN(nlc)){
|
| 81 |
$('input#courierCost').val('0.00');
|
110 |
$('input#courierCost').val('0.00');
|
| 82 |
$('input#commission').val('0.00');
|
111 |
$('input#commission').val('0.00');
|
| 83 |
$('input#serviceTax').val('0.00');
|
112 |
$('input#serviceTax').val('0.00');
|
| 84 |
return false;
|
113 |
$('input#').val('0.00');
|
| 85 |
}
|
114 |
}
|
| - |
|
115 |
else{
|
| - |
|
116 |
var comRate=$('#commissionRate').val();
|
| - |
|
117 |
var margin=$('#margin').val();
|
| - |
|
118 |
var vatRate=$('#vat').val();
|
| - |
|
119 |
var vat=vatRate/100;
|
| - |
|
120 |
var commisionPrice=((comRate/100)*sellingPrice).toFixed(2);
|
| - |
|
121 |
var ourTp=(sellingPrice-sellingPrice*1.1236*(comRate/100)-((courierCost+0)*1.1236));
|
| 86 |
var sellingPrice=(((parseInt(transferPrice) + courierCost*1.1236)/(100 - 3.59*1.1236))*100).toFixed(2);
|
122 |
var vatValue=(((sellingPrice/(1+vat))-(nlc/(1+vat)))*vat).toFixed(2);
|
| - |
|
123 |
inHouseCost=(+vatValue+15+((.5/100)*sellingPrice)+othCost);
|
| 87 |
var commisionValue=(.0359*sellingPrice + courierCost).toFixed(2);
|
124 |
var lowestTp=(+nlc+inHouseCost).toFixed(2);
|
| 88 |
var commisionPrice=(((.0359*sellingPrice + courierCost)/sellingPrice)*100).toFixed(2);
|
125 |
var lowestSp=((+lowestTp+courierCost)/(1-((comRate/100)*(1+.1236)))).toFixed(2);
|
| - |
|
126 |
ourTp = (parseFloat(ourTp)).toFixed(2);
|
| - |
|
127 |
$('input#minPosTp').val(lowestTp);
|
| - |
|
128 |
$('input#minPosSp').val(lowestSp);
|
| - |
|
129 |
$('input#transferPrice').val(ourTp);
|
| 89 |
var serviceTax=(commisionValue*.1236).toFixed(2);
|
130 |
var serviceTax=(.1236*commisionPrice).toFixed(2);
|
| - |
|
131 |
lowest_possible_tp=parseFloat(lowestTp);
|
| - |
|
132 |
newMargin=(ourTp-lowest_possible_tp).toFixed(2);
|
| - |
|
133 |
marginPercentage=(((ourTp-lowest_possible_tp)/sellingPrice)*100).toFixed(2);
|
| - |
|
134 |
$('input#marginPer').val(marginPercentage);
|
| - |
|
135 |
$('input#margin').val(newMargin);
|
| 90 |
$('input#sellingPrice').val(sellingPrice);
|
136 |
$('input#sellingPrice').val(sellingPrice);
|
| 91 |
$('input#courierCost').val(courierCost);
|
137 |
$('input#courierCost').val(courierCost);
|
| 92 |
$('input#commission').val(commisionPrice);
|
138 |
$('input#commission').val(commisionPrice);
|
| 93 |
$('input#serviceTax').val(serviceTax);
|
139 |
$('input#serviceTax').val(serviceTax);
|
| 94 |
}
|
140 |
}
|
| - |
|
141 |
}
|
| 95 |
</script>
|
142 |
</script>
|
| 96 |
<script type="text/javascript">
|
143 |
<script type="text/javascript">
|
| 97 |
$('#getMxNlc').live('click', function(){
|
144 |
$('#getMxNlc').live('click', function(){
|
| 98 |
var itemId=document.forms["snapdeal-form"]["itemId"].value;
|
145 |
var itemId=$('#itemId').val();
|
| 99 |
var warehouseId=document.forms["snapdeal-form"]["warehouseId"].value;
|
146 |
var warehouseId=$('#warehouseId').val();
|
| 100 |
jQuery.ajax({
|
147 |
jQuery.ajax({
|
| 101 |
type : "GET",
|
148 |
type : "GET",
|
| 102 |
url : "/Support/snapdeal-list!ke$ha?itemId="+itemId+"&warehouseId="+warehouseId,
|
149 |
url : "/Support/snapdeal-list!ke$ha?itemId="+itemId+"&warehouseId="+warehouseId,
|
| 103 |
beforeSend: function(){
|
150 |
beforeSend: function(){
|
| 104 |
$('#ajax-spinner').show();
|
151 |
$('#ajax-spinner').show();
|
| Line 109... |
Line 156... |
| 109 |
success : function(json){
|
156 |
success : function(json){
|
| 110 |
var parsedData = JSON.parse(json);
|
157 |
var parsedData = JSON.parse(json);
|
| 111 |
$('input#maxNlc').val(parsedData.MaxNlc);
|
158 |
$('input#maxNlc').val(parsedData.MaxNlc);
|
| 112 |
},
|
159 |
},
|
| 113 |
error : function() {
|
160 |
error : function() {
|
| - |
|
161 |
$('input#warehouseId').val('');
|
| 114 |
alert("Unable to get max nlc");
|
162 |
alert("Unable to get max nlc possibly wrong warehouse");
|
| 115 |
},
|
163 |
},
|
| 116 |
});
|
164 |
});
|
| 117 |
return false;
|
165 |
return false;
|
| 118 |
});
|
166 |
});
|
| 119 |
</script>
|
167 |
</script>
|
| - |
|
168 |
<script type="text/javascript">
|
| - |
|
169 |
$(".top-header").click(function(){
|
| - |
|
170 |
$(".product-detail").slideToggle("slow");
|
| - |
|
171 |
});
|
| - |
|
172 |
</script>
|
| - |
|
173 |
<script type="text/javascript">
|
| - |
|
174 |
$(".top-header-inventory").click(function(){
|
| - |
|
175 |
$(".inventory-details").slideToggle("slow");
|
| - |
|
176 |
});
|
| - |
|
177 |
</script>
|
| - |
|
178 |
<script type="text/javascript">
|
| - |
|
179 |
$(".top-header-marketplace").click(function(){
|
| - |
|
180 |
$(".mp-detail").slideToggle("slow");
|
| - |
|
181 |
});
|
| - |
|
182 |
</script>
|
| - |
|
183 |
<!--Product details-->
|
| - |
|
184 |
<div class="top-header">
|
| - |
|
185 |
<h2 style="font-weight: bolder; font-size: 20px; border-top: 4px solid rgb(134, 163, 189); background-color: rgb(134, 163, 189);color:white;">
|
| - |
|
186 |
Product Details
|
| - |
|
187 |
</h2>
|
| - |
|
188 |
</div>
|
| - |
|
189 |
<div class="product-detail" style="display: block; min-height: 650px;">
|
| 120 |
<form id="snapdeal-form" action="/Support/snapdeal-list!update" enctype="multipart/form-data" method="post">
|
190 |
<form id="snapdeal-form" action="/Support/snapdeal-list!update" enctype="multipart/form-data" method="post">
|
| 121 |
<div class="left" style="float: left; width: 48%;">
|
191 |
<div class="left" style="float: left; width: 48%;">
|
| 122 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
192 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
| 123 |
<thead>
|
193 |
<thead>
|
| 124 |
</thead>
|
194 |
</thead>
|
| Line 141... |
Line 211... |
| 141 |
</td>
|
211 |
</td>
|
| 142 |
</tr>
|
212 |
</tr>
|
| 143 |
<tr>
|
213 |
<tr>
|
| 144 |
<td class="detail">Snapdeal Selling Price</td>
|
214 |
<td class="detail">Snapdeal Selling Price</td>
|
| 145 |
<td class="value">
|
215 |
<td class="value">
|
| 146 |
<input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text" readonly/></td>
|
216 |
<input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text" onkeyup="calculateStuff()"></td>
|
| 147 |
</tr>
|
217 |
</tr>
|
| 148 |
<tr>
|
218 |
<tr>
|
| 149 |
<td class="detail">Transfer Price</td>
|
219 |
<td class="detail">Transfer Price</td>
|
| 150 |
<td class="value"><input id="transferPrice" name="transferPrice" value='$itemDetail.getTransferPrice()'type="text" onkeyup="calculateStuff()" /></td>
|
220 |
<td class="value"><input id="transferPrice" name="transferPrice" value='$itemDetail.getTransferPrice()'type="text" readonly/></td>
|
| 151 |
</tr>
|
221 |
</tr>
|
| 152 |
<tr>
|
222 |
<tr>
|
| 153 |
<td class="detail">Webiste MRP</td>
|
223 |
<td class="detail">Webiste MRP</td>
|
| 154 |
<td class="value"><input id="webisteMrp" name="webisteMrp" value='$itemDetail.getMrp()'type="text" readonly/></td>
|
224 |
<td class="value"><input id="webisteMrp" name="webisteMrp" value='$itemDetail.getMrp()'type="text" disabled/></td>
|
| 155 |
</tr>
|
225 |
</tr>
|
| 156 |
<tr>
|
226 |
<tr>
|
| 157 |
<td class="detail">Webiste Selling Price</td>
|
227 |
<td class="detail">Webiste Selling Price</td>
|
| 158 |
<td class="value"><input id="webisteSellingPrice" name="webisteSellingPrice" value='$itemDetail.getWebsiteSellingPrice()'type="text" readonly/></td>
|
228 |
<td class="value"><input id="webisteSellingPrice" name="webisteSellingPrice" value='$itemDetail.getWebsiteSellingPrice()'type="text" disabled/></td>
|
| 159 |
</tr>
|
229 |
</tr>
|
| 160 |
<tr>
|
230 |
<tr>
|
| 161 |
<td class="detail">Max NLC</td>
|
231 |
<td class="detail">Max NLC</td>
|
| 162 |
<td class="value"><input id="maxNlc" name="maxNlc" value='$itemDetail.getMaxNlc()'type="text" readonly/></td>
|
232 |
<td class="value"><input id="maxNlc" name="maxNlc" value='$itemDetail.getMaxNlc()'type="text" readonly/></td>
|
| 163 |
</tr>
|
233 |
</tr>
|
| 164 |
<tr>
|
234 |
<tr>
|
| 165 |
<td class="detail">Suppress Pricing Feed</td>
|
235 |
<td class="detail">Other Cost</td>
|
| - |
|
236 |
<td class="value"><input id="otherCost" name="otherCost" value='$mpDetail.getOtherCost()' type="text" onkeyup="calculateStuff()"</td>
|
| - |
|
237 |
</tr>
|
| - |
|
238 |
<tr>
|
| 166 |
<td class="value">#if ($itemDetail.isSuppressPriceFeed())
|
239 |
<td class="detail">Minimum Possible SP (Calculated)</td>
|
| 167 |
<select name="isSuppressPriceFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
240 |
<td class="value"><input id="minPosSp" name="minPosSp" value='$mpDetail.getMinimumPossibleSp()'type="text" readonly/></td>
|
| 168 |
#else
|
241 |
</tr>
|
| - |
|
242 |
<tr>
|
| 169 |
<select name="isSuppressPriceFeed"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
243 |
<td class="detail">Minimum Possible TP (Calculated)</td>
|
| 170 |
#end
|
244 |
<td class="value">
|
| - |
|
245 |
<input id="minPosTp" name="minPosTp" value='$mpDetail.getMinimumPossibleTp()' type="text" readonly/>
|
| 171 |
</td>
|
246 |
</td>
|
| 172 |
</tr>
|
247 |
</tr>
|
| - |
|
248 |
<tr>
|
| - |
|
249 |
<td class="detail">Last Updated SP</td>
|
| - |
|
250 |
<td class="value">
|
| - |
|
251 |
<input id="currentSp" name="currentSp" value='$mpDetail.getCurrentSp()' type="text" readonly/>
|
| - |
|
252 |
</td>
|
| - |
|
253 |
</tr>
|
| - |
|
254 |
<tr>
|
| - |
|
255 |
<td class="detail">Last Updated TP</td>
|
| - |
|
256 |
<td class="value">
|
| - |
|
257 |
<input id="currentTp" name="currentTp" value='$mpDetail.getCurrentTp()'type="text" readonly/></td>
|
| - |
|
258 |
</tr>
|
| - |
|
259 |
#set ($margin = $mpDetail.getCurrentTp() - $mpDetail.getMinimumPossibleTp())
|
| - |
|
260 |
<tr>
|
| - |
|
261 |
<td class="detail">Margin</td>
|
| - |
|
262 |
<td class="value"><input id="margin" name="margin" value='$action.getRoundOfValue("$margin")'type="text" disabled/></td>
|
| - |
|
263 |
</tr>
|
| - |
|
264 |
<tr>
|
| - |
|
265 |
<td class="detail">Last Updated Inventory</td>
|
| - |
|
266 |
<td class="value"><input id="lastUpdatedInventory" name="lastUpdatedInventory" value='$itemDetail.getLastUpdatedInventory()' type="text" disabled></td>
|
| - |
|
267 |
</tr>
|
| - |
|
268 |
<tr>
|
| - |
|
269 |
<td class="detail">Last Updated Inventory TimeStamp</td>
|
| - |
|
270 |
#if ($itemDetail.getLastUpdatedInventoryTimestamp()==0)
|
| - |
|
271 |
<td class="value"><input id="lastUpdatedInventoryTimestamp" name="lastUpdatedInventoryTimestamp" value='Not Available' type="text" disabled/></td>
|
| - |
|
272 |
#else
|
| - |
|
273 |
<td class="value"><input id="lastUpdatedInventoryTimestamp" name="lastUpdatedInventoryTimestamp" value='$action.getLastUpdatedInventoryTimestamp()' type="text" disabled/></td>
|
| - |
|
274 |
#end
|
| - |
|
275 |
</tr>
|
| - |
|
276 |
<tr>
|
| - |
|
277 |
<td class="detail">Last Checked Price Timestamp</td>
|
| - |
|
278 |
#if ($mpDetail.getLastCheckedTimestamp()==0)
|
| - |
|
279 |
<td class="value"><input id="lastCheckedPriceTimestamp" name="lastCheckedPriceTimestamp" value='Not Available' type="text" disabled/></td>
|
| - |
|
280 |
#else
|
| - |
|
281 |
<td class="value"><input id="lastCheckedPriceTimestamp" name="lastCheckedPriceTimestamp" value='$action.getLastCheckedTimestamp()' type="text" disabled/></td>
|
| - |
|
282 |
#end
|
| - |
|
283 |
</tr>
|
| 173 |
</tbody>
|
284 |
</tbody>
|
| 174 |
</table>
|
285 |
</table>
|
| 175 |
</div>
|
286 |
</div>
|
| 176 |
<div class="left" style="float: right; width: 48%;">
|
287 |
<div class="left" style="float: right; width: 48%;">
|
| 177 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
288 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
| 178 |
<thead>
|
289 |
<thead>
|
| 179 |
</thead>
|
290 |
</thead>
|
| 180 |
<tbody>
|
291 |
<tbody>
|
| 181 |
<tr>
|
292 |
<tr>
|
| - |
|
293 |
<td class="detail">Suppress Pricing Feed</td>
|
| - |
|
294 |
<td class="value">#if ($itemDetail.isSuppressPriceFeed())
|
| - |
|
295 |
<select name="isSuppressPriceFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| - |
|
296 |
#else
|
| - |
|
297 |
<select name="isSuppressPriceFeed"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| - |
|
298 |
#end
|
| - |
|
299 |
</td>
|
| - |
|
300 |
</tr>
|
| - |
|
301 |
<tr>
|
| 182 |
<td class="detail">Suppress Inventory Feed</td>
|
302 |
<td class="detail">Suppress Inventory Feed</td>
|
| 183 |
<td class="value">#if ($itemDetail.isSuppressInventoryFeed())
|
303 |
<td class="value">#if ($itemDetail.isSuppressInventoryFeed())
|
| 184 |
<select name="isSuppressInventoryFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
304 |
<select name="isSuppressInventoryFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 185 |
#else
|
305 |
#else
|
| 186 |
<select name="isSuppressInventoryFeed"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
306 |
<select name="isSuppressInventoryFeed"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| Line 195... |
Line 315... |
| 195 |
<select name="isListedOnSnapdeal"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
315 |
<select name="isListedOnSnapdeal"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 196 |
#end
|
316 |
#end
|
| 197 |
</td>
|
317 |
</td>
|
| 198 |
</tr>
|
318 |
</tr>
|
| 199 |
<tr>
|
319 |
<tr>
|
| - |
|
320 |
<td class="detail">Auto Increment</td>
|
| - |
|
321 |
<td class="value">#if ($mpDetail.isAutoIncrement())
|
| - |
|
322 |
<select name="isAutoIncrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| - |
|
323 |
#else
|
| - |
|
324 |
<select name="isAutoIncrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| - |
|
325 |
#end
|
| - |
|
326 |
</td>
|
| - |
|
327 |
</tr>
|
| - |
|
328 |
<tr>
|
| - |
|
329 |
<td class="detail">Auto Decrement</td>
|
| - |
|
330 |
<td class="value">#if ($mpDetail.isAutoDecrement())
|
| - |
|
331 |
<select name="isAutoDecrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| - |
|
332 |
#else
|
| - |
|
333 |
<select name="isAutoDecrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| - |
|
334 |
#end
|
| - |
|
335 |
</td>
|
| - |
|
336 |
</tr>
|
| - |
|
337 |
<tr>
|
| - |
|
338 |
<td class="detail">Auto Favourite</td>
|
| - |
|
339 |
<td class="value">#if ($mpDetail.isAutoFavourite())
|
| - |
|
340 |
<select name="isAutoFavourite"><option selected="selected" value="True">Active</option></select>
|
| - |
|
341 |
#else
|
| - |
|
342 |
<select name="isAutoFavourite"><option selected="selected" value="False">InActive</option></select>
|
| - |
|
343 |
#end
|
| - |
|
344 |
</td>
|
| - |
|
345 |
</tr>
|
| - |
|
346 |
<tr>
|
| - |
|
347 |
<td class="detail">Manual Favourite</td>
|
| - |
|
348 |
<td class="value">#if ($mpDetail.isManualFavourite())
|
| - |
|
349 |
<select name="isManualFavourite"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| - |
|
350 |
#else
|
| - |
|
351 |
<select name="isManualFavourite"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| - |
|
352 |
#end
|
| - |
|
353 |
</td>
|
| - |
|
354 |
</tr>
|
| - |
|
355 |
<tr>
|
| - |
|
356 |
<td class="detail">Margin %</td>
|
| - |
|
357 |
#if($mpDetail.getCurrentSp()==0)
|
| - |
|
358 |
#set ($marginPercentage = 0)
|
| - |
|
359 |
#else
|
| - |
|
360 |
#set ($marginPercentage = ($margin/$mpDetail.getCurrentSp()*100))
|
| - |
|
361 |
#end
|
| - |
|
362 |
#set($roundMarginPer = $action.getRoundOfValue("$marginPercentage"))
|
| - |
|
363 |
<td class="value"><input id="marginPer" name="marginPer" value='$roundMarginPer' type="text" disabled/></td>
|
| - |
|
364 |
</tr>
|
| - |
|
365 |
<tr>
|
| - |
|
366 |
<td class="detail">Commission %</td>
|
| - |
|
367 |
<td class="value"><input id="commissionRate" name="commissionRate" value='$mpDetail.getCommission()'type="text" disabled/></td>
|
| - |
|
368 |
</tr>
|
| - |
|
369 |
<tr>
|
| 200 |
<td class="detail">Exception Price</td>
|
370 |
<td class="detail">Exception Price</td>
|
| 201 |
<td class="value"><input id="exceptionPrice" name="exceptionPrice" value='$itemDetail.getExceptionPrice()'type="text"/></td>
|
371 |
<td class="value"><input id="exceptionPrice" name="exceptionPrice" value='$itemDetail.getExceptionPrice()'type="text"/></td>
|
| 202 |
</tr>
|
372 |
</tr>
|
| 203 |
<tr>
|
373 |
<tr>
|
| 204 |
<td class="detail">Commission</td>
|
374 |
<td class="detail">Commission</td>
|
| Line 211... |
Line 381... |
| 211 |
<tr>
|
381 |
<tr>
|
| 212 |
<td class="detail">Courier Cost</td>
|
382 |
<td class="detail">Courier Cost</td>
|
| 213 |
<td class="value"><input id="courierCost" name="courierCost" value='$itemDetail.getCourierCost()'type="text" readonly/></td>
|
383 |
<td class="value"><input id="courierCost" name="courierCost" value='$itemDetail.getCourierCost()'type="text" readonly/></td>
|
| 214 |
</tr>
|
384 |
</tr>
|
| 215 |
<tr>
|
385 |
<tr>
|
| - |
|
386 |
<td class="detail">VAT %</td>
|
| - |
|
387 |
<td class="value"><input id="vat" name="vat" value='$mpDetail.getVat()' type="text" readonly/></td>
|
| - |
|
388 |
</tr>
|
| - |
|
389 |
<tr>
|
| 216 |
<td class="detail">Item Id @ Snapdeal</td>
|
390 |
<td class="detail">Item Id @ Snapdeal</td>
|
| 217 |
#if($itemDetail.getSkuAtSnapdeal())
|
391 |
#if($itemDetail.getSkuAtSnapdeal())
|
| 218 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='$itemDetail.getSkuAtSnapdeal()' type="text"></td>
|
392 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='$itemDetail.getSkuAtSnapdeal()' type="text"></td>
|
| 219 |
#else
|
393 |
#else
|
| 220 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='' type="text"></td>
|
394 |
<td class="value"><input id="sdItemCode" name="sdItemCode" value='' type="text"></td>
|
| Line 241... |
Line 415... |
| 241 |
</tr>
|
415 |
</tr>
|
| 242 |
</tbody>
|
416 |
</tbody>
|
| 243 |
</table>
|
417 |
</table>
|
| 244 |
</div>
|
418 |
</div>
|
| 245 |
</form>
|
419 |
</form>
|
| - |
|
420 |
</div>
|
| - |
|
421 |
<!--product details end-->
|
| - |
|
422 |
<!--Inventory details -->
|
| - |
|
423 |
<div class="top-header-inventory">
|
| - |
|
424 |
<h2 style="font-weight: bolder; font-size: 20px; border-top: 4px solid rgb(134, 163, 189); background-color: rgb(134, 163, 189);color:white;">
|
| - |
|
425 |
Inventory Details
|
| - |
|
426 |
</h2>
|
| - |
|
427 |
</div>
|
| - |
|
428 |
<div class="inventory-details">
|
| - |
|
429 |
<table id="inventory-info" style="width: 100%">
|
| - |
|
430 |
<thead>
|
| - |
|
431 |
<tr>
|
| - |
|
432 |
<th>Warehouse Id</th>
|
| - |
|
433 |
<th>Warehouse Desc</th>
|
| - |
|
434 |
<th>Warehouse Type</th>
|
| - |
|
435 |
<th>Inventory Type</th>
|
| - |
|
436 |
<th>Availability</th>
|
| - |
|
437 |
<th>Reserved</th>
|
| - |
|
438 |
<th>Held</th>
|
| - |
|
439 |
</tr>
|
| - |
|
440 |
</thead>
|
| - |
|
441 |
<tbody>
|
| - |
|
442 |
#set($itemInventory = $action.getItemInventory("$itemDetail.getItem_id()"))
|
| - |
|
443 |
#set($availability = $itemInventory.getAvailability())
|
| - |
|
444 |
#set($reserved = $itemInventory.getReserved())
|
| - |
|
445 |
#set($held = $itemInventory.getHeld())
|
| - |
|
446 |
<tr style="border: 1px">
|
| - |
|
447 |
#foreach( $keyAvailable in $availability.keySet() )
|
| - |
|
448 |
#set($whObj = $action.getWarehouse("$keyAvailable"))
|
| - |
|
449 |
#set($warehouseCheck="False")
|
| - |
|
450 |
#if ($whObj.getWarehouseType()=="OURS" && $whObj.getInventoryType()=="GOOD")
|
| - |
|
451 |
#set($warehouseCheck="True")
|
| - |
|
452 |
#end
|
| - |
|
453 |
<td style="text-align:center;width:10%;">$keyAvailable</td>
|
| - |
|
454 |
<td style="text-align:center;width:20%;">$whObj.getDisplayName()</td>
|
| - |
|
455 |
<td style="text-align:center;width:10%;">$whObj.getWarehouseType()</td>
|
| - |
|
456 |
<td style="text-align:center;width:10%;">$whObj.getInventoryType()</td>
|
| - |
|
457 |
<td style="text-align:center;width:10%;">$availability.get($keyAvailable)</td>
|
| - |
|
458 |
<td style="text-align:center;width:10%;">$reserved.get($keyAvailable)</td>
|
| - |
|
459 |
<td style="text-align:center;">
|
| - |
|
460 |
#if ($warehouseCheck=="True")
|
| - |
|
461 |
<input id="heldInventory_$keyAvailable" name="heldInventory" value='$held.get($keyAvailable)' type="text" style="width:25%;"/>
|
| - |
|
462 |
<input type="button" class="changeHeld" value="Update" warehouse_id="$keyAvailable" item_id="$itemDetail.getItem_id()" style="width:25%;margin-left:10px;">
|
| - |
|
463 |
#else
|
| - |
|
464 |
<input id="heldInventory_$keyAvailable" name="heldInventory" value='$held.get($keyAvailable)' type="text" style="width:25%;" readonly/>
|
| - |
|
465 |
<input type="button" value="Update" style="width:25%;margin-left:10px;" disabled/>
|
| - |
|
466 |
#end
|
| - |
|
467 |
</td>
|
| - |
|
468 |
</tr>
|
| - |
|
469 |
#end
|
| - |
|
470 |
</tbody>
|
| - |
|
471 |
</table>
|
| - |
|
472 |
</div>
|
| - |
|
473 |
<!--Inventory details end-->
|
| - |
|
474 |
<!--
|
| - |
|
475 |
<div class="top-header-marketplace">
|
| - |
|
476 |
<h2 style="font-weight: bolder; font-size: 20px; border-top: 4px solid rgb(134, 163, 189); background-color: rgb(134, 163, 189);color:white;">
|
| - |
|
477 |
Marketplace Related Details
|
| - |
|
478 |
</h2>
|
| - |
|
479 |
</div>
|
| - |
|
480 |
|
| - |
|
481 |
<div class="mp-detail">
|
| - |
|
482 |
<form id="mp-form" action="/Support/snapdeal-list!updateMpData" enctype="multipart/form-data" method="post">
|
| - |
|
483 |
</form>
|
| - |
|
484 |
<div class="left" style="float: left; width: 48%;">
|
| - |
|
485 |
<table class="mpUpload" style="text-align: center;width: 100%;height:200px;">
|
| - |
|
486 |
<thead>
|
| - |
|
487 |
</thead>
|
| - |
|
488 |
<tbody>
|
| - |
|
489 |
<tr>
|
| - |
|
490 |
<td class="detail">Minimum Possible SP</td>
|
| - |
|
491 |
<td class="value"><input id="minPosSp" name="minPosSp" value='$mpDetail.getMinimumPossibleSp()'type="text" readonly/></td>
|
| - |
|
492 |
</tr>
|
| - |
|
493 |
<tr>
|
| - |
|
494 |
<td class="detail">Minimum Possible TP</td>
|
| - |
|
495 |
<td class="value">
|
| - |
|
496 |
<input id="minPosTp" name="minPosTp" value='$mpDetail.getMinimumPossibleTp()' type="text" readonly/>
|
| - |
|
497 |
</td>
|
| - |
|
498 |
</tr>
|
| - |
|
499 |
<tr>
|
| - |
|
500 |
<td class="detail">Last Updated SP</td>
|
| - |
|
501 |
<td class="value">
|
| - |
|
502 |
<input id="currentSp" name="currentSp" value='$mpDetail.getCurrentSp()' type="text" readonly/>
|
| - |
|
503 |
</td>
|
| - |
|
504 |
</tr>
|
| - |
|
505 |
<tr>
|
| - |
|
506 |
<td class="detail">Last Updated TP</td>
|
| - |
|
507 |
<td class="value">
|
| - |
|
508 |
<input id="currentTp" name="currentTp" value='$mpDetail.getCurrentTp()'type="text" readonly/></td>
|
| - |
|
509 |
</tr>
|
| - |
|
510 |
#set ($margin = $mpDetail.getCurrentTp() - $mpDetail.getMinimumPossibleTp())
|
| - |
|
511 |
<tr>
|
| - |
|
512 |
<td class="detail">Margin</td>
|
| - |
|
513 |
<td class="value"><input id="margin" name="margin" value='$margin'type="text" readonly/></td>
|
| - |
|
514 |
</tr>
|
| - |
|
515 |
</tbody>
|
| - |
|
516 |
</table>
|
| - |
|
517 |
</div>
|
| - |
|
518 |
<div class="left" style="float: right; width: 48%;">
|
| - |
|
519 |
<table class="mpUpload" style="text-align: center;width: 100%;height:200px;">
|
| - |
|
520 |
<thead>
|
| - |
|
521 |
</thead>
|
| - |
|
522 |
<tbody>
|
| - |
|
523 |
<tr>
|
| - |
|
524 |
<td class="detail">Margin %</td>
|
| - |
|
525 |
#if($mpDetail.getCurrentSp()==0)
|
| - |
|
526 |
#set ($marginPercentage = 0)
|
| - |
|
527 |
#else
|
| - |
|
528 |
#set ($marginPercentage = ($margin/$mpDetail.getCurrentSp()*100))
|
| - |
|
529 |
#end
|
| - |
|
530 |
#set($roundMarginPer = $action.getRoundOfValue("$marginPercentage"))
|
| - |
|
531 |
<td class="value"><input id="marginPer" name="marginPer" value='$roundMarginPer' type="text" readonly/></td>
|
| - |
|
532 |
</tr>
|
| - |
|
533 |
<tr>
|
| - |
|
534 |
<td class="detail">Auto Increment</td>
|
| - |
|
535 |
<td class="value">#if ($mpDetail.isAutoIncrement())
|
| - |
|
536 |
<select name="isAutoIncrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| - |
|
537 |
#else
|
| - |
|
538 |
<select name="isAutoIncrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| - |
|
539 |
#end
|
| - |
|
540 |
</td>
|
| - |
|
541 |
</tr>
|
| - |
|
542 |
<tr>
|
| - |
|
543 |
<td class="detail">Auto Decrement</td>
|
| - |
|
544 |
<td class="value">#if ($mpDetail.isAutoDecrement())
|
| - |
|
545 |
<select name="isAutoDecrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| - |
|
546 |
#else
|
| - |
|
547 |
<select name="isAutoDecrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| - |
|
548 |
#end
|
| - |
|
549 |
</td>
|
| - |
|
550 |
</tr>
|
| - |
|
551 |
<tr>
|
| - |
|
552 |
<td class="detail">Auto Favourite</td>
|
| - |
|
553 |
<td class="value">#if ($mpDetail.isAutoFavourite())
|
| - |
|
554 |
<select name="isAutoFavourite"><option selected="selected" value="True">Active</option></select>
|
| - |
|
555 |
#else
|
| - |
|
556 |
<select name="isAutoFavourite"><option selected="selected" value="False">InActive</option></select>
|
| - |
|
557 |
#end
|
| - |
|
558 |
</td>
|
| - |
|
559 |
</tr>
|
| - |
|
560 |
<tr>
|
| - |
|
561 |
<td class="detail">Manual Favourite</td>
|
| - |
|
562 |
<td class="value">#if ($mpDetail.isManualFavourite())
|
| - |
|
563 |
<select name="isManualFavourite"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| - |
|
564 |
#else
|
| - |
|
565 |
<select name="isManualFavourite"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| - |
|
566 |
#end
|
| - |
|
567 |
</td>
|
| - |
|
568 |
</tr>
|
| - |
|
569 |
</tbody>
|
| - |
|
570 |
</table>
|
| - |
|
571 |
</div>
|
| - |
|
572 |
</form>
|
| - |
|
573 |
</div>
|
| - |
|
574 |
-->
|
| - |
|
575 |
|
| - |
|
576 |
|
| - |
|
577 |
|
| - |
|
578 |
|