| Line 60... |
Line 60... |
| 60 |
text-align: center;
|
60 |
text-align: center;
|
| 61 |
color: #747474;
|
61 |
color: #747474;
|
| 62 |
}
|
62 |
}
|
| 63 |
|
63 |
|
| 64 |
select {
|
64 |
select {
|
| 65 |
font-size: 12px;
|
- |
|
| 66 |
height: 83%;
|
- |
|
| 67 |
padding-top: 2px;
|
65 |
padding-top: 2px;
|
| 68 |
vertical-align: middle;
|
66 |
vertical-align: middle;
|
| 69 |
direction: ltr;
|
67 |
direction: ltr;
|
| 70 |
padding-left: 145px;
|
- |
|
| 71 |
font-weight: bold;
|
68 |
font-weight: bold;
|
| 72 |
width: 50%;
|
69 |
width: 50%;
|
| - |
|
70 |
height: 22px;
|
| 73 |
}
|
71 |
}
|
| 74 |
|
72 |
|
| 75 |
input {
|
73 |
input {
|
| 76 |
font-size: 12px;
|
74 |
font-size: 12px;
|
| 77 |
text-align: center;
|
75 |
text-align: center;
|
| 78 |
width: 50%;
|
76 |
width: 50%;
|
| 79 |
font-weight: bold;
|
77 |
font-weight: bold;
|
| 80 |
}
|
78 |
}
|
| 81 |
body {
|
- |
|
| 82 |
background: url("/Support/images/background_image.jpg") repeat scroll 0 0 transparent;
|
- |
|
| 83 |
}
|
- |
|
| 84 |
</style>
|
79 |
</style>
|
| 85 |
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
|
80 |
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
|
| 86 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
81 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
| 87 |
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
|
82 |
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
|
| 88 |
<script>
|
83 |
<script>
|
| Line 95... |
Line 90... |
| 95 |
var nonFbaPrice = Math.floor( y );
|
90 |
var nonFbaPrice = Math.floor( y );
|
| 96 |
var z=document.forms["upload"]["saholicPrice"].value;
|
91 |
var z=document.forms["upload"]["saholicPrice"].value;
|
| 97 |
var saholicPrice = Math.floor( z );
|
92 |
var saholicPrice = Math.floor( z );
|
| 98 |
var holdInventory=document.forms["upload"]["holdInventory"].value;
|
93 |
var holdInventory=document.forms["upload"]["holdInventory"].value;
|
| 99 |
var defaultInventory=document.forms["upload"]["defaultInventory"].value;
|
94 |
var defaultInventory=document.forms["upload"]["defaultInventory"].value;
|
| - |
|
95 |
var customHandlingTime=document.forms["upload"]["customHandlingTime"].value;
|
| 100 |
if ( x==null || x=="" || isNaN(x))
|
96 |
if ( x==null || x=="" || isNaN(x))
|
| 101 |
{
|
97 |
{
|
| 102 |
jAlert('Illegal Entry In Fba Price Field', 'ERROR');
|
98 |
jAlert('Illegal Entry In Fba Price Field', 'ERROR');
|
| 103 |
return false;
|
99 |
return false;
|
| 104 |
}
|
100 |
}
|
| Line 111... |
Line 107... |
| 111 |
if ( fbaPrice > saholicPrice || nonFbaPrice > saholicPrice )
|
107 |
if ( fbaPrice > saholicPrice || nonFbaPrice > saholicPrice )
|
| 112 |
{
|
108 |
{
|
| 113 |
jAlert('Fba / Non Fba Price Cant Be Greater Than Saholic Price', 'ERROR');
|
109 |
jAlert('Fba / Non Fba Price Cant Be Greater Than Saholic Price', 'ERROR');
|
| 114 |
return false;
|
110 |
return false;
|
| 115 |
}
|
111 |
}
|
| 116 |
if ( handlingTime > 30 || customHandlingTime > 30 )
|
112 |
if ( customHandlingTime > 30 || customHandlingTime==null || customHandlingTime=="" || isNaN(customHandlingTime) )
|
| 117 |
{
|
113 |
{
|
| 118 |
jAlert('Unacceptable Value In Lead Time To Ship', 'ERROR');
|
114 |
jAlert('Unacceptable Value In Lead Time To Ship', 'ERROR');
|
| 119 |
return false;
|
115 |
return false;
|
| 120 |
}
|
116 |
}
|
| 121 |
if ( holdInventory==null || holdInventory=="" || isNaN(holdInventory))
|
117 |
if ( holdInventory==null || holdInventory=="" || isNaN(holdInventory))
|
| Line 146... |
Line 142... |
| 146 |
});
|
142 |
});
|
| 147 |
});
|
143 |
});
|
| 148 |
</script>
|
144 |
</script>
|
| 149 |
</head>
|
145 |
</head>
|
| 150 |
<body>
|
146 |
<body>
|
| - |
|
147 |
<a href="/Support/amazon-list">Back To Listing</a>
|
| 151 |
<div id="spinner" class="spinner" style="display:none;">
|
148 |
<div id="spinner" class="spinner" style="display:none;">
|
| 152 |
<img id="img-spinner" src="/Support/images/spinner.gif" alt="Loading"/>
|
149 |
<img id="img-spinner" src="/Support/images/spinner.gif" alt="Loading"/>
|
| 153 |
</div>
|
150 |
</div>
|
| 154 |
<br>
|
151 |
<br>
|
| 155 |
<div id="amazon-form" style="padding-top: 25px;width: 70%; display: inline-block;">
|
152 |
<div id="amazon-form" style="padding-left:15%;width: 70%; display: inline-block;">
|
| 156 |
<form id="upload" name="amazonList" action="/Support/amazon-list!update" onsubmit="return validateForm()" method="post">
|
153 |
<form id="upload" name="amazonList" action="/Support/amazon-list!update" onsubmit="return validateForm()" method="post">
|
| 157 |
<table style="text-align: center;width: 100%;">
|
154 |
<table style="text-align: center;width: 100%;">
|
| 158 |
<thead>
|
155 |
<thead>
|
| 159 |
<tr>
|
156 |
<tr>
|
| 160 |
<th colspan="2">Product Details</th>
|
157 |
<th colspan="2">Product Details</th>
|
| Line 217... |
Line 214... |
| 217 |
<td class="detail">Hold Inventory</td>
|
214 |
<td class="detail">Hold Inventory</td>
|
| 218 |
<td class="value">$item.getHoldInventory()</td>
|
215 |
<td class="value">$item.getHoldInventory()</td>
|
| 219 |
</tr>
|
216 |
</tr>
|
| 220 |
</tbody>
|
217 |
</tbody>
|
| 221 |
</table>
|
218 |
</table>
|
| 222 |
<br>
|
219 |
<br />
|
| 223 |
<br>
|
220 |
<br />
|
| 224 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
221 |
<table id="upload" style="text-align: center;width: 100%;height:200px;">
|
| 225 |
<thead>
|
222 |
<thead>
|
| 226 |
<tr>
|
223 |
<tr>
|
| 227 |
<th colspan="2">Edit Listing Attributes</th>
|
224 |
<th colspan="2">Edit Listing Attributes</th>
|
| 228 |
</tr>
|
225 |
</tr>
|
| 229 |
</thead>
|
226 |
</thead>
|
| 230 |
<tbody>
|
227 |
<tbody>
|
| 231 |
<tr>
|
228 |
<tr>
|
| 232 |
<td class="detail">FBA Listing</td>
|
229 |
<td class="detail">FBA Listing</td>
|
| 233 |
<td class="value">#if ($itemDetail.isIsFba())
|
230 |
<td class="value">#if ($itemDetail.isIsFba())
|
| 234 |
<select name="isFba"><option selected="selected" value="True">Yes</option><option value="False">No</option></select>
|
231 |
<select name="isFba"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 235 |
#else
|
232 |
#else
|
| 236 |
<select name="isFba"><option selected="selected" value="False">No</option><option value="True">Yes</option></select>
|
233 |
<select name="isFba"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 237 |
#end</td>
|
234 |
#end</td>
|
| 238 |
</tr>
|
235 |
</tr>
|
| 239 |
<tr>
|
236 |
<tr>
|
| 240 |
<td class="detail">FBA Price</td>
|
237 |
<td class="detail">FBA Price</td>
|
| 241 |
<td class="value"><input id="fbaPrice" name="fbaPrice" value='$itemDetail.getFbaPrice()'type="text"/></td>
|
238 |
<td class="value"><input id="fbaPrice" name="fbaPrice" value='$itemDetail.getFbaPrice()'type="text"/></td>
|
| 242 |
</tr>
|
239 |
</tr>
|
| 243 |
<tr>
|
240 |
<tr>
|
| 244 |
<td class="detail">Non FBA Listing</td>
|
241 |
<td class="detail">Non FBA Listing</td>
|
| 245 |
<td class="value">#if ($itemDetail.isIsNonFba())
|
242 |
<td class="value">#if ($itemDetail.isIsNonFba())
|
| 246 |
<select name="isNonFba"><option selected="selected" value="True">Yes</option><option value="False">No</option></select>
|
243 |
<select name="isNonFba"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 247 |
#else
|
244 |
#else
|
| 248 |
<select name="isNonFba"><option selected="selected" value="False">No</option><option value="True">Yes</option></select>
|
245 |
<select name="isNonFba"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 249 |
#end
|
246 |
#end
|
| 250 |
</td>
|
247 |
</td>
|
| 251 |
</tr>
|
248 |
</tr>
|
| 252 |
<tr>
|
249 |
<tr>
|
| 253 |
<td class="detail">Non FBA Price</td>
|
250 |
<td class="detail">Non FBA Price</td>
|
| 254 |
<td class="value"><input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text"/></td>
|
251 |
<td class="value"><input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text"/></td>
|
| 255 |
</tr>
|
252 |
</tr>
|
| 256 |
<tr>
|
253 |
<tr>
|
| 257 |
<td class="detail">Inventory Override</td>
|
254 |
<td class="detail">Inventory Override</td>
|
| 258 |
<td class="value">#if ($itemDetail.isIsInventoryOverride())
|
255 |
<td class="value">#if ($itemDetail.isIsInventoryOverride())
|
| 259 |
<select name="isInventoryOverride"><option selected="selected" value="True">Yes</option><option value="False">No</option></select>
|
256 |
<select name="isInventoryOverride"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 260 |
#else
|
257 |
#else
|
| 261 |
<select name="isInventoryOverride"><option selected="selected" value="False">No</option><option value="True">Yes</option></select>
|
258 |
<select name="isInventoryOverride"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
|
| 262 |
#end
|
259 |
#end
|
| 263 |
</td>
|
260 |
</td>
|
| 264 |
</tr>
|
261 |
</tr>
|
| 265 |
<tr>
|
262 |
<tr>
|
| 266 |
<td class="detail">Lead Time To Ship</td>
|
263 |
<td class="detail">Lead Time To Ship</td>
|
| 267 |
<td class="value">
|
264 |
<td class="value">
|
| 268 |
#if ( !$itemDetail.isIsCustomTime() )
|
265 |
#if ( !$itemDetail.isIsCustomTime() )
|
| 269 |
<input type="radio" value="False" name="isTime" checked="checked">Default
|
266 |
<input type="radio" value="False" name="isTime" checked="checked" style="width: 10%;">Default
|
| 270 |
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
|
267 |
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
|
| 271 |
<span>Days</span>
|
268 |
<span>Days</span>
|
| 272 |
<input type="radio" value="True" name="isTime">Custom
|
269 |
<input type="radio" value="True" name="isTime" style="width: 10%;">Custom
|
| 273 |
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
|
270 |
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
|
| 274 |
<span>Days</span>
|
271 |
<span>Days</span>
|
| 275 |
#else
|
272 |
#else
|
| 276 |
<input type="radio" value="False" name="isTime" >Default
|
273 |
<input type="radio" value="False" name="isTime" style="width: 10%;">Default
|
| 277 |
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
|
274 |
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
|
| 278 |
<span>Days</span>
|
275 |
<span>Days</span>
|
| 279 |
<input type="radio" value="True" name="isTime" checked="checked">Custom
|
276 |
<input type="radio" value="True" name="isTime" checked="checked" style="width: 10%;">Custom
|
| 280 |
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
|
277 |
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
|
| 281 |
<span>Days</span>
|
278 |
<span>Days</span>
|
| 282 |
#end
|
279 |
#end
|
| 283 |
</td>
|
280 |
</td>
|
| 284 |
</tr>
|
281 |
</tr>
|
| Line 298... |
Line 295... |
| 298 |
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
|
295 |
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
|
| 299 |
</td>
|
296 |
</td>
|
| 300 |
</tr>
|
297 |
</tr>
|
| 301 |
</tbody>
|
298 |
</tbody>
|
| 302 |
</table>
|
299 |
</table>
|
| 303 |
|
- |
|
| 304 |
<br></br>
|
- |
|
| 305 |
</form>
|
300 |
</form>
|
| 306 |
</div>
|
301 |
</div>
|
| - |
|
302 |
<br />
|
| - |
|
303 |
<br />
|
| 307 |
#set($mapAvailable = $action.getAvailableItemInventory("$itemDetail.getItemid()"))
|
304 |
#set($mapAvailable = $action.getAvailableItemInventory("$itemDetail.getItemid()"))
|
| 308 |
#set($mapReserved = $action.getReservedItemInventory("$itemDetail.getItemid()"))
|
305 |
#set($mapReserved = $action.getReservedItemInventory("$itemDetail.getItemid()"))
|
| 309 |
<div style="width: 70%;margin-top:15px;">
|
306 |
<div style="width: 70%;padding-left:15%;">
|
| 310 |
<table id="upload" style="text-align: center;width: 100%">
|
307 |
<table id="upload" style="text-align: center;width: 100%">
|
| 311 |
<thead>
|
308 |
<thead>
|
| 312 |
<tr>
|
309 |
<tr>
|
| 313 |
<th colspan="3">Inventory Saholic & Amazon (Total)</th>
|
310 |
<th colspan="3">Inventory Saholic & Amazon (Total)</th>
|
| 314 |
</tr>
|
311 |
</tr>
|
| Line 326... |
Line 323... |
| 326 |
<td class="value">$mapReserved.get($keyAvailable)</td>
|
323 |
<td class="value">$mapReserved.get($keyAvailable)</td>
|
| 327 |
</tr>
|
324 |
</tr>
|
| 328 |
#end
|
325 |
#end
|
| 329 |
</tbody>
|
326 |
</tbody>
|
| 330 |
</table>
|
327 |
</table>
|
| - |
|
328 |
<br />
|
| - |
|
329 |
<br />
|
| 331 |
#set( $amazonInventory = $action.getInventoryForAmazonItem("$itemDetail.getItemid()") )
|
330 |
#set( $amazonInventory = $action.getInventoryForAmazonItem("$itemDetail.getItemid()") )
|
| 332 |
<div id="upload" style="width: 100%; padding-top: 40px;">
|
331 |
<div id="upload" style="width: 100%;">
|
| 333 |
<table style="text-align: center; width: 100%; font-size: 14px;">
|
332 |
<table style="text-align: center; width: 100%; font-size: 14px;">
|
| 334 |
<thead>
|
333 |
<thead>
|
| 335 |
<tr>
|
334 |
<tr>
|
| 336 |
<th colspan="2">Amazon Inventory</th>
|
335 |
<th colspan="2">Amazon Inventory</th>
|
| 337 |
</tr>
|
336 |
</tr>
|