| 7283 |
kshitij.so |
1 |
<!DOCTYPE html PUBLIC
|
|
|
2 |
"-//W3C//DTD XHTML 1.1 Transitional//EN"
|
|
|
3 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
4 |
|
|
|
5 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
6 |
<head>
|
| 7524 |
kshitij.so |
7 |
<title>Edit Listing Attributes</title>
|
| 7420 |
kshitij.so |
8 |
<link type="image/x-icon" href="/Support/images/favicon_alt.ico" rel="shortcut icon">
|
| 7283 |
kshitij.so |
9 |
#set ($itemDetail = $action.fetchItemDetail())
|
| 7365 |
kshitij.so |
10 |
#set ($item = $action.getSaholicItem("$itemDetail.getItemid()"))
|
| 7283 |
kshitij.so |
11 |
<style>
|
|
|
12 |
* { font-family: Verdana; font-size: 96%; }
|
|
|
13 |
label {
|
|
|
14 |
float: left;
|
|
|
15 |
}
|
|
|
16 |
|
|
|
17 |
.spinner {
|
|
|
18 |
position: fixed;
|
|
|
19 |
top: 50%;
|
|
|
20 |
left: 35%;
|
|
|
21 |
margin-top: -50px;
|
|
|
22 |
text-align:center;
|
|
|
23 |
z-index:1234;
|
|
|
24 |
overflow: auto;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
#upload > table {
|
|
|
28 |
color: #747474;
|
|
|
29 |
width: 100%;
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
#upload thead {
|
|
|
33 |
background: url("/Support/images/head-bcg.jpg") no-repeat scroll right top #0C2C65;
|
|
|
34 |
color: #FFFFFF;
|
|
|
35 |
font-size: 22px;
|
|
|
36 |
font-weight: bold;
|
|
|
37 |
height: 35px;
|
|
|
38 |
padding: 14px 0 0 24px;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
#upload tbody {
|
|
|
42 |
background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
|
|
|
43 |
font-weight: bold;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
.detail {
|
|
|
47 |
background: url("/Support/images/center-blue.png") repeat-y scroll left top #E4EBF8;
|
|
|
48 |
border-bottom: 1px solid #B3C1DB;
|
|
|
49 |
border-right: 1px solid #CED9EC;
|
|
|
50 |
color: #1F3D71;
|
|
|
51 |
height: 25px;
|
|
|
52 |
padding: 10px 0 0 24px;
|
| 7420 |
kshitij.so |
53 |
width: 270px;
|
| 7283 |
kshitij.so |
54 |
}
|
|
|
55 |
|
|
|
56 |
.value {
|
|
|
57 |
border-bottom: 1px solid #B3C1DB;
|
|
|
58 |
border-right: 1px solid #CED9EC;
|
|
|
59 |
height: 24px;
|
|
|
60 |
text-align: center;
|
|
|
61 |
color: #747474;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
select {
|
|
|
65 |
padding-top: 2px;
|
|
|
66 |
vertical-align: middle;
|
| 7420 |
kshitij.so |
67 |
direction: ltr;
|
| 7283 |
kshitij.so |
68 |
font-weight: bold;
|
|
|
69 |
width: 50%;
|
| 7591 |
kshitij.so |
70 |
height: 22px;
|
| 7283 |
kshitij.so |
71 |
}
|
|
|
72 |
|
|
|
73 |
input {
|
|
|
74 |
font-size: 12px;
|
|
|
75 |
text-align: center;
|
|
|
76 |
width: 50%;
|
|
|
77 |
font-weight: bold;
|
|
|
78 |
}
|
|
|
79 |
</style>
|
|
|
80 |
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
|
|
|
81 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
|
|
82 |
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
|
|
|
83 |
<script>
|
|
|
84 |
function validateForm()
|
|
|
85 |
{
|
|
|
86 |
|
|
|
87 |
var x=document.forms["upload"]["fbaPrice"].value;
|
|
|
88 |
var fbaPrice = Math.floor( x );
|
|
|
89 |
var y=document.forms["upload"]["sellingPrice"].value;
|
|
|
90 |
var nonFbaPrice = Math.floor( y );
|
|
|
91 |
var z=document.forms["upload"]["saholicPrice"].value;
|
|
|
92 |
var saholicPrice = Math.floor( z );
|
| 7461 |
kshitij.so |
93 |
var holdInventory=document.forms["upload"]["holdInventory"].value;
|
|
|
94 |
var defaultInventory=document.forms["upload"]["defaultInventory"].value;
|
| 7591 |
kshitij.so |
95 |
var customHandlingTime=document.forms["upload"]["customHandlingTime"].value;
|
| 7283 |
kshitij.so |
96 |
if ( x==null || x=="" || isNaN(x))
|
|
|
97 |
{
|
|
|
98 |
jAlert('Illegal Entry In Fba Price Field', 'ERROR');
|
|
|
99 |
return false;
|
|
|
100 |
}
|
|
|
101 |
if ( y==null || y=="" || isNaN(y) )
|
|
|
102 |
{
|
|
|
103 |
jAlert('Illegal Entry In Non Fba Price Field', 'ERROR');
|
|
|
104 |
return false;
|
|
|
105 |
}
|
|
|
106 |
|
| 7591 |
kshitij.so |
107 |
if ( customHandlingTime > 30 || customHandlingTime==null || customHandlingTime=="" || isNaN(customHandlingTime) )
|
| 7420 |
kshitij.so |
108 |
{
|
|
|
109 |
jAlert('Unacceptable Value In Lead Time To Ship', 'ERROR');
|
|
|
110 |
return false;
|
|
|
111 |
}
|
| 7461 |
kshitij.so |
112 |
if ( holdInventory==null || holdInventory=="" || isNaN(holdInventory))
|
|
|
113 |
{
|
|
|
114 |
jAlert('Illegal Entry In Hold Inventory Field', 'ERROR');
|
|
|
115 |
return false;
|
|
|
116 |
}
|
|
|
117 |
if ( defaultInventory==null || defaultInventory=="" || isNaN(defaultInventory) )
|
|
|
118 |
{
|
|
|
119 |
jAlert('Illegal Entry In Default Inventory Field', 'ERROR');
|
|
|
120 |
return false;
|
|
|
121 |
}
|
|
|
122 |
|
| 7283 |
kshitij.so |
123 |
}
|
|
|
124 |
|
|
|
125 |
</script>
|
|
|
126 |
<script type="text/javascript">
|
|
|
127 |
$(document).ready(function() {
|
|
|
128 |
$('#cancelbutton').click(function(e) {
|
|
|
129 |
window.location.href = '/Support/amazon-list';
|
|
|
130 |
});
|
|
|
131 |
});
|
|
|
132 |
</script>
|
|
|
133 |
<script type="text/javascript">
|
|
|
134 |
$(document).ready(function(){
|
|
|
135 |
$('#submit').click(function() {
|
|
|
136 |
$('#spinner').show();
|
|
|
137 |
});
|
|
|
138 |
});
|
|
|
139 |
</script>
|
|
|
140 |
</head>
|
|
|
141 |
<body>
|
| 7591 |
kshitij.so |
142 |
<a href="/Support/amazon-list">Back To Listing</a>
|
| 7283 |
kshitij.so |
143 |
<div id="spinner" class="spinner" style="display:none;">
|
|
|
144 |
<img id="img-spinner" src="/Support/images/spinner.gif" alt="Loading"/>
|
|
|
145 |
</div>
|
|
|
146 |
<br>
|
| 7591 |
kshitij.so |
147 |
<div id="amazon-form" style="padding-left:15%;width: 70%; display: inline-block;">
|
| 7283 |
kshitij.so |
148 |
<form id="upload" name="amazonList" action="/Support/amazon-list!update" onsubmit="return validateForm()" method="post">
|
|
|
149 |
<table style="text-align: center;width: 100%;">
|
|
|
150 |
<thead>
|
|
|
151 |
<tr>
|
|
|
152 |
<th colspan="2">Product Details</th>
|
|
|
153 |
</tr>
|
|
|
154 |
</thead>
|
|
|
155 |
<tbody>
|
|
|
156 |
<tr>
|
|
|
157 |
<td class="detail">Item Id</td>
|
|
|
158 |
<td class="value">$itemDetail.getItemid()<input id="itemId" name="itemId" value='$itemDetail.getItemid()'type="hidden"/></td>
|
|
|
159 |
</tr>
|
|
|
160 |
<tr>
|
|
|
161 |
<td class="detail">Asin</td>
|
|
|
162 |
<td class="value">$itemDetail.getAsin()<input id="asin" name="asin" value='$itemDetail.getAsin()'type="hidden"/></td>
|
|
|
163 |
</tr>
|
|
|
164 |
<tr>
|
|
|
165 |
<td class="detail">Item Name</td>
|
|
|
166 |
<td class="value">$itemDetail.getName()<input id="itemName" name="itemName" value='$itemDetail.getName()'type="hidden" /></td>
|
|
|
167 |
</tr>
|
|
|
168 |
<tr>
|
|
|
169 |
<td class="detail">Brand</td>
|
|
|
170 |
<td class="value">$itemDetail.getBrand()<input id="brand" name="brand" value='$itemDetail.getBrand()'type="hidden"/></td>
|
|
|
171 |
</tr>
|
|
|
172 |
<tr>
|
|
|
173 |
<td class="detail">Manufacturer Name</td>
|
|
|
174 |
<td class="value">$itemDetail.getManufacturer_name()<input id="manufacturerName" name="manufacturerName" value='$itemDetail.getManufacturer_name()'type="hidden"/></td>
|
|
|
175 |
</tr>
|
|
|
176 |
<tr>
|
|
|
177 |
<td class="detail">Part Number</td>
|
|
|
178 |
<td class="value">$itemDetail.getPart_number()<input id="manufacturerName" name="manufacturerName" value='$itemDetail.getManufacturer_name()'type="hidden"/></td>
|
|
|
179 |
</tr>
|
| 7366 |
kshitij.so |
180 |
<tr>
|
|
|
181 |
<td class="detail">Color</td>
|
|
|
182 |
<td class="value">$itemDetail.getColor()<input id="color" name="color" value='$itemDetail.getColor()'type="hidden"/></td>
|
|
|
183 |
</tr>
|
| 7283 |
kshitij.so |
184 |
<tr>
|
|
|
185 |
<td class="detail">Saholic Price</td>
|
|
|
186 |
<td class="value">$item.getSellingPrice()<input id="saholicPrice" name="saholicPrice" value='$item.getSellingPrice()'type="hidden"/></td>
|
|
|
187 |
</tr>
|
|
|
188 |
<tr>
|
|
|
189 |
<td class="detail">UPC</td>
|
|
|
190 |
<td class="value">$itemDetail.getUpc()<input id="upc" name="upc" value='$itemDetail.getUpc()'type="hidden"/></td>
|
|
|
191 |
</tr>
|
|
|
192 |
<tr>
|
|
|
193 |
<td class="detail">EAN</td>
|
|
|
194 |
<td class="value">$itemDetail.getEan()<input id="ean" name="ean" value='$itemDetail.getEan()'type="hidden"/></td>
|
|
|
195 |
</tr>
|
| 7461 |
kshitij.so |
196 |
<tr>
|
|
|
197 |
<td class="detail">RISKY</td>
|
|
|
198 |
<td class="value" style="text-transform : uppercase;">$item.isRisky()</td>
|
|
|
199 |
</tr>
|
|
|
200 |
<tr>
|
|
|
201 |
<td class="detail" style="text-transform : uppercase;">Status</td>
|
|
|
202 |
<td class="value">$item.getItemStatus()</td>
|
|
|
203 |
</tr>
|
| 7365 |
kshitij.so |
204 |
<tr>
|
| 7603 |
kshitij.so |
205 |
<td class="detail">Virtual Inventory</td>
|
| 7365 |
kshitij.so |
206 |
<td class="value">$item.getDefaultInventory()</td>
|
|
|
207 |
</tr>
|
|
|
208 |
<tr>
|
| 7603 |
kshitij.so |
209 |
<td class="detail">Risky Inventory</td>
|
| 7365 |
kshitij.so |
210 |
<td class="value">$item.getHoldInventory()</td>
|
|
|
211 |
</tr>
|
| 7283 |
kshitij.so |
212 |
</tbody>
|
|
|
213 |
</table>
|
| 7591 |
kshitij.so |
214 |
<br />
|
|
|
215 |
<br />
|
| 7283 |
kshitij.so |
216 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
|
|
217 |
<thead>
|
|
|
218 |
<tr>
|
|
|
219 |
<th colspan="2">Edit Listing Attributes</th>
|
|
|
220 |
</tr>
|
|
|
221 |
</thead>
|
|
|
222 |
<tbody>
|
|
|
223 |
<tr>
|
|
|
224 |
<td class="detail">FBA Listing</td>
|
|
|
225 |
<td class="value">#if ($itemDetail.isIsFba())
|
| 8401 |
kshitij.so |
226 |
<select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
|
|
227 |
<input name="isFba" value='True' type="hidden"/>
|
| 7283 |
kshitij.so |
228 |
#else
|
| 8401 |
kshitij.so |
229 |
<select name="" disabled><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
|
|
230 |
<input name="isFba" value='False' type="hidden"/>
|
| 7283 |
kshitij.so |
231 |
#end</td>
|
|
|
232 |
</tr>
|
|
|
233 |
<tr>
|
|
|
234 |
<td class="detail">FBA Price</td>
|
|
|
235 |
<td class="value"><input id="fbaPrice" name="fbaPrice" value='$itemDetail.getFbaPrice()'type="text"/></td>
|
|
|
236 |
</tr>
|
|
|
237 |
<tr>
|
| 7603 |
kshitij.so |
238 |
<td class="detail">MFN Listing</td>
|
| 7283 |
kshitij.so |
239 |
<td class="value">#if ($itemDetail.isIsNonFba())
|
| 8401 |
kshitij.so |
240 |
<select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
|
|
241 |
<input name="isNonFba" value='True' type="hidden"/>
|
| 7283 |
kshitij.so |
242 |
#else
|
| 8401 |
kshitij.so |
243 |
<select name="" disabled><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
|
|
244 |
<input name="isNonFba" value='False' type="hidden"/>
|
| 7283 |
kshitij.so |
245 |
#end
|
|
|
246 |
</td>
|
|
|
247 |
</tr>
|
|
|
248 |
<tr>
|
| 7603 |
kshitij.so |
249 |
<td class="detail">MFN Price</td>
|
| 7283 |
kshitij.so |
250 |
<td class="value"><input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text"/></td>
|
|
|
251 |
</tr>
|
|
|
252 |
<tr>
|
| 7834 |
vikram.rag |
253 |
<td class="detail">Inventory Override</td>
|
| 7283 |
kshitij.so |
254 |
<td class="value">#if ($itemDetail.isIsInventoryOverride())
|
| 7591 |
kshitij.so |
255 |
<select name="isInventoryOverride"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 7283 |
kshitij.so |
256 |
#else
|
| 7591 |
kshitij.so |
257 |
<select name="isInventoryOverride"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 7283 |
kshitij.so |
258 |
#end
|
|
|
259 |
</td>
|
|
|
260 |
</tr>
|
|
|
261 |
<tr>
|
| 8168 |
kshitij.so |
262 |
<td class="detail">Suppress FBA Price</td>
|
|
|
263 |
<td class="value">#if ($itemDetail.isSuppressFbaPriceUpdate())
|
|
|
264 |
<select name="suppressFbaPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
|
|
265 |
#else
|
|
|
266 |
<select name="suppressFbaPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
|
|
267 |
#end</td>
|
|
|
268 |
</tr>
|
|
|
269 |
<tr>
|
|
|
270 |
<td class="detail">Suppress MFN Price</td>
|
|
|
271 |
<td class="value">#if ($itemDetail.isSuppressMfnPriceUpdate())
|
|
|
272 |
<select name="suppressMfnPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
|
|
273 |
#else
|
|
|
274 |
<select name="suppressMfnPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
|
|
275 |
#end
|
|
|
276 |
</td>
|
|
|
277 |
</tr>
|
|
|
278 |
<tr>
|
| 7365 |
kshitij.so |
279 |
<td class="detail">Lead Time To Ship</td>
|
|
|
280 |
<td class="value">
|
|
|
281 |
#if ( !$itemDetail.isIsCustomTime() )
|
| 7591 |
kshitij.so |
282 |
<input type="radio" value="False" name="isTime" checked="checked" style="width: 10%;">Default
|
| 7365 |
kshitij.so |
283 |
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
|
|
|
284 |
<span>Days</span>
|
| 7591 |
kshitij.so |
285 |
<input type="radio" value="True" name="isTime" style="width: 10%;">Custom
|
| 7365 |
kshitij.so |
286 |
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
|
|
|
287 |
<span>Days</span>
|
|
|
288 |
#else
|
| 7591 |
kshitij.so |
289 |
<input type="radio" value="False" name="isTime" style="width: 10%;">Default
|
| 7365 |
kshitij.so |
290 |
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
|
|
|
291 |
<span>Days</span>
|
| 7591 |
kshitij.so |
292 |
<input type="radio" value="True" name="isTime" checked="checked" style="width: 10%;">Custom
|
| 7365 |
kshitij.so |
293 |
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
|
|
|
294 |
<span>Days</span>
|
|
|
295 |
#end
|
|
|
296 |
</td>
|
|
|
297 |
</tr>
|
|
|
298 |
<tr>
|
| 7603 |
kshitij.so |
299 |
<td class="detail">Risky Inventory / Virtual Inventory</td>
|
| 7461 |
kshitij.so |
300 |
<td class="value">
|
| 7603 |
kshitij.so |
301 |
<span>Risky Inventory</span>
|
| 7461 |
kshitij.so |
302 |
<input type="text" value='$item.getHoldInventory()' name="holdInventory" id="holdInventory" style="width: 10%;">
|
| 7603 |
kshitij.so |
303 |
<span>Virtual Inventory</span>
|
| 7461 |
kshitij.so |
304 |
<input type="text" value='$item.getDefaultInventory()' name="defaultInventory" id="defaultInventory" style="width: 10%;">
|
|
|
305 |
</td>
|
|
|
306 |
</tr>
|
|
|
307 |
|
|
|
308 |
<tr>
|
| 7283 |
kshitij.so |
309 |
<td class="detail">Action</td>
|
|
|
310 |
<td class="value"><input type="submit" value="Update" name="upload" style="width: 25%;">
|
|
|
311 |
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
|
|
|
312 |
</td>
|
|
|
313 |
</tr>
|
|
|
314 |
</tbody>
|
|
|
315 |
</table>
|
|
|
316 |
</form>
|
|
|
317 |
</div>
|
| 7591 |
kshitij.so |
318 |
<br />
|
|
|
319 |
<br />
|
| 7283 |
kshitij.so |
320 |
#set($mapAvailable = $action.getAvailableItemInventory("$itemDetail.getItemid()"))
|
|
|
321 |
#set($mapReserved = $action.getReservedItemInventory("$itemDetail.getItemid()"))
|
| 7591 |
kshitij.so |
322 |
<div style="width: 70%;padding-left:15%;">
|
| 7283 |
kshitij.so |
323 |
<table id="upload" style="text-align: center;width: 100%">
|
|
|
324 |
<thead>
|
|
|
325 |
<tr>
|
| 7365 |
kshitij.so |
326 |
<th colspan="3">Inventory Saholic & Amazon (Total)</th>
|
| 7283 |
kshitij.so |
327 |
</tr>
|
|
|
328 |
</thead>
|
|
|
329 |
<tbody>
|
|
|
330 |
<tr>
|
|
|
331 |
<td class="detail">Warehouse</td>
|
|
|
332 |
<td class="value">Available</td>
|
|
|
333 |
<td class="value">Reserved</td>
|
|
|
334 |
</tr>
|
|
|
335 |
#foreach( $keyAvailable in $mapAvailable.keySet() )
|
|
|
336 |
<tr>
|
|
|
337 |
<td class="detail">$action.getWarehouseName("$keyAvailable")</td>
|
|
|
338 |
<td class="value">$mapAvailable.get($keyAvailable)</td>
|
|
|
339 |
<td class="value">$mapReserved.get($keyAvailable)</td>
|
|
|
340 |
</tr>
|
|
|
341 |
#end
|
|
|
342 |
</tbody>
|
|
|
343 |
</table>
|
| 7591 |
kshitij.so |
344 |
<br />
|
|
|
345 |
<br />
|
| 7283 |
kshitij.so |
346 |
#set( $amazonInventory = $action.getInventoryForAmazonItem("$itemDetail.getItemid()") )
|
| 7591 |
kshitij.so |
347 |
<div id="upload" style="width: 100%;">
|
| 7283 |
kshitij.so |
348 |
<table style="text-align: center; width: 100%; font-size: 14px;">
|
|
|
349 |
<thead>
|
|
|
350 |
<tr>
|
|
|
351 |
<th colspan="2">Amazon Inventory</th>
|
|
|
352 |
</tr>
|
|
|
353 |
</thead>
|
|
|
354 |
<tbody>
|
|
|
355 |
<tr>
|
|
|
356 |
<td class="detail">Available</td>
|
|
|
357 |
<td class="value">Reserved</td>
|
|
|
358 |
</tr>
|
|
|
359 |
<tr>
|
| 7316 |
kshitij.so |
360 |
#if ( !$amazonInventory.getAvailability() )
|
|
|
361 |
<td class="detail"></td>
|
|
|
362 |
#else
|
|
|
363 |
<td class="detail">$amazonInventory.getAvailability()</td>
|
|
|
364 |
#end
|
|
|
365 |
#if ( !$amazonInventory.getReserved() )
|
|
|
366 |
<td class="value"></td>
|
|
|
367 |
#else
|
|
|
368 |
<td class="value">$amazonInventory.getReserved()</td>
|
|
|
369 |
#end
|
|
|
370 |
|
| 7283 |
kshitij.so |
371 |
</tr>
|
|
|
372 |
</tbody>
|
|
|
373 |
</table>
|
|
|
374 |
</div>
|
|
|
375 |
</div>
|
|
|
376 |
</body>
|
|
|
377 |
</html>
|