Subversion Repositories SmartDukaan

Rev

Rev 12449 | Rev 12661 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7283 kshitij.so 1
#set ($itemDetail = $action.fetchItemDetail())
7365 kshitij.so 2
#set ($item = $action.getSaholicItem("$itemDetail.getItemid()"))
7283 kshitij.so 3
<style>
4
* { font-family: Verdana; font-size: 96%; }
5
		label {
6
    float: left;
7
}
8
 
9
#upload > table {
10
    color: #747474;
11
    width: 100%;
12
}
13
 
14
 
15
#upload tbody {
16
    background: url("/Support/images/center-bcg.png") repeat-y scroll right top #F6F6F6;
17
    font-weight: bold;
18
}
19
 
20
.detail {
21
    background: url("/Support/images/center-blue.png") repeat-y scroll left top #E4EBF8;
22
    border-bottom: 1px solid #B3C1DB;
23
    border-right: 1px solid #CED9EC;
24
    color: #1F3D71;
25
    height: 25px;
26
    padding: 10px 0 0 24px;
27
}
28
 
29
.value {
30
    border-bottom: 1px solid #B3C1DB;
31
    border-right: 1px solid #CED9EC;
32
    height: 24px;
33
    text-align: center;
34
    color: #747474;
35
}
36
 
37
select {
38
    padding-top: 2px;
39
    vertical-align: middle;
7420 kshitij.so 40
	direction: ltr;
7283 kshitij.so 41
    font-weight: bold;
42
    width: 50%;
7591 kshitij.so 43
	height: 22px;
7283 kshitij.so 44
}
45
 
46
input {
47
    font-size: 12px;
48
    text-align: center;
49
    width: 50%;
50
    font-weight: bold;
51
}
52
</style>
53
<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>
55
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
56
<script>
57
function validateForm()
58
{
59
 
60
var x=document.forms["upload"]["fbaPrice"].value;
61
var fbaPrice = Math.floor( x );
62
var y=document.forms["upload"]["sellingPrice"].value;
63
var nonFbaPrice = Math.floor( y );
64
var z=document.forms["upload"]["saholicPrice"].value;
65
var saholicPrice = Math.floor( z );
7461 kshitij.so 66
var holdInventory=document.forms["upload"]["holdInventory"].value;
67
var defaultInventory=document.forms["upload"]["defaultInventory"].value;
7591 kshitij.so 68
var customHandlingTime=document.forms["upload"]["customHandlingTime"].value;
7283 kshitij.so 69
if ( x==null || x=="" || isNaN(x))
70
  {
71
  jAlert('Illegal Entry In Fba Price Field', 'ERROR');
72
  return false;
73
  }
74
if ( y==null || y=="" || isNaN(y) )
75
  {
76
  jAlert('Illegal Entry In Non Fba Price Field', 'ERROR');
77
  return false;
78
  }
79
 
7591 kshitij.so 80
if ( customHandlingTime > 30 || customHandlingTime==null || customHandlingTime=="" || isNaN(customHandlingTime) )
7420 kshitij.so 81
  {
82
  jAlert('Unacceptable Value In Lead Time To Ship', 'ERROR');
83
  return false;
84
  }
7461 kshitij.so 85
if ( holdInventory==null || holdInventory=="" || isNaN(holdInventory))
86
  {
87
  jAlert('Illegal Entry In Hold Inventory Field', 'ERROR');
88
  return false;
89
  }
90
if ( defaultInventory==null || defaultInventory=="" || isNaN(defaultInventory) )
91
  {
92
  jAlert('Illegal Entry In Default Inventory Field', 'ERROR');
93
  return false;
94
  }  
95
 
7283 kshitij.so 96
}
97
 
98
</script>
99
<script type="text/javascript">
100
$(document).ready(function() {
101
  $('#cancelbutton').click(function(e) {
102
    window.location.href = '/Support/amazon-list';
103
});
104
});
105
</script>
8620 kshitij.so 106
<form id="amazon-form" action="/Support/amazon-list!update" enctype="multipart/form-data" method="post">
107
<div class="left" style="float: left; width: 48%;">
108
<table id="upload" style="text-align: center;width: 100%;height:200px;">
7283 kshitij.so 109
<thead>
110
</thead>
111
<tbody>
8620 kshitij.so 112
<tr style="display:none;">
7283 kshitij.so 113
<td class="detail">Item Id</td>
12449 kshitij.so 114
<td class="value"><input id="itemId" name="itemId" value='$itemDetail.getItemid()'type="text" ></td>
7283 kshitij.so 115
</tr>
116
<tr>
8620 kshitij.so 117
<td class="detail">Product Description</td>
118
<td class="value">$itemDetail.getItemid() | $itemDetail.getName()</td>
7283 kshitij.so 119
</tr>
120
<tr>
10922 kshitij.so 121
<td class="detail">FBA Tax Code</td>
8620 kshitij.so 122
<td class="value">
123
	#if($itemDetail.getTaxCode())
124
	<input id="taxCode" name="taxCode" value='$itemDetail.getTaxCode()'type="text"/></td>
125
	#else
126
	<input id="taxCode" name="taxCode" value=''type="text"/></td>
127
	#end
7283 kshitij.so 128
</tr>
10922 kshitij.so 129
<tr>
130
<td class="detail">FBB Tax Code</td>
131
<td class="value">
132
	#if($itemDetail.getFbbtaxCode())
133
	<input id="fbbTaxCode" name="fbbTaxCode" value='$itemDetail.getFbbtaxCode()'type="text"/></td>
134
	#else
135
	<input id="fbbTaxCode" name="fbbTaxCode" value=''type="text"/></td>
136
	#end
137
</tr>
7283 kshitij.so 138
<tr>
7603 kshitij.so 139
<td class="detail">MFN Listing</td>
7283 kshitij.so 140
<td class="value">#if ($itemDetail.isIsNonFba())
8401 kshitij.so 141
      <select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
142
	  <input name="isNonFba" value='True' type="hidden"/>
7283 kshitij.so 143
	  #else
8401 kshitij.so 144
		<select name="" disabled><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
145
		<input name="isNonFba" value='False' type="hidden"/>
7283 kshitij.so 146
	  #end
147
</td>
148
</tr>
149
<tr>
10938 kshitij.so 150
<td class="detail">FBA Listing</td>
151
<td class="value">#if ($itemDetail.isIsFba())
152
      <select name="" disabled><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
153
	  <input name="isFba" value='True' type="hidden"/>
154
	  #else
155
		<select name="" disabled><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
156
		<input name="isFba" value='False' type="hidden"/>
157
	  #end</td>
7283 kshitij.so 158
</tr>
10922 kshitij.so 159
<tr>
160
<td class="detail">FBB Listing</td>
161
<td class="value">#if ($itemDetail.isIsFbb())
10926 kshitij.so 162
      <select name="isFbb"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
10922 kshitij.so 163
	  #else
10926 kshitij.so 164
		<select name="isFbb"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
10922 kshitij.so 165
	  #end
166
</td>
167
</tr>
10938 kshitij.so 168
<tr>
169
<td class="detail">MFN Price</td>
170
<td class="value"><input id="sellingPrice" name="sellingPrice" value='$itemDetail.getSellingPrice()'type="text"/></td>
171
</tr>
172
<tr>
173
<td class="detail">FBA Price</td>
174
<td class="value"><input id="fbaPrice" name="fbaPrice" value='$itemDetail.getFbaPrice()'type="text"/></td>
175
</tr>
12449 kshitij.so 176
<tr>
177
<td class="detail">FBB Price</td>
178
<td class="value"><input id="fbbPrice" name="fbbPrice" value='$itemDetail.getFbbPrice()'type="text"/></td>
179
</tr>
180
<tr>
181
<td class="detail">WANLC</td>
182
<td class="value"><input id="wanlc" name="wanlc" value='$action.getWanlcForItem("$itemDetail.getItemid()")'type="text" disabled/></td>
183
</tr>
184
<tr>
185
<td class="detail">Exceptional WANLC</td>
186
<td class="value"><input id="exceptionalWanlc" name="exceptionalWanlc" value='$itemDetail.getExceptionalWanlc()'type="text" /></td>
187
</tr>
188
<tr>
189
<td class="detail">FBA Sale Price</td>
190
<td class="value"><input id="fbaSalePrice" name="fbaSalePrice" value='$itemDetail.getFbaSalePrice()'type="text" disabled/></td>
191
</tr>
192
<tr>
193
<td class="detail">FBB Sale Price</td>
194
<td class="value"><input id="fbbSalePrice" name="fbbSalePrice" value='$itemDetail.getFbbSalePrice()'type="text" disabled/></td>
195
</tr>
8620 kshitij.so 196
</tbody>
197
</table>
198
</div>
199
<div class="left" style="float: right; width: 48%;">
200
<table id="upload" style="text-align: center;width: 100%;height:200px;">
201
<thead>
202
</thead>
203
<tbody>
7283 kshitij.so 204
<tr>
12449 kshitij.so 205
<td class="detail">Other Cost</td>
206
<td class="value"><input id="otherCost" name="otherCost" value='$itemDetail.getOtherCost()'type="text"></td>
10922 kshitij.so 207
</tr>
208
<tr>
12449 kshitij.so 209
<td class="detail">WANLC Override</td>
210
<td class="value">#if ($itemDetail.isOverrrideWanlc())
211
      <select name="overrrideWanlc"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
212
	  #else
213
		<select name="overrrideWanlc"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
214
	  #end
215
</td>
216
</tr>
217
<tr>
218
<td class="detail">Auto Favourite</td>
219
<td class="value">#if ($itemDetail.isAutoFavourite())
12454 kshitij.so 220
      <select name="autoFavourite"><option selected="selected" value="True">Active</option></select>
12449 kshitij.so 221
	  #else
12454 kshitij.so 222
		<select name="autoFavourite"><option selected="selected" value="False">InActive</option></select>
12449 kshitij.so 223
	  #end
224
</td>
225
</tr>
226
<tr>
227
<td class="detail">Manual Favourite</td>
228
<td class="value">#if ($itemDetail.isManualFavourite())
229
      <select name="manualFavourite"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
230
	  #else
231
		<select name="manualFavourite"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
232
	  #end
233
</td>
234
</tr>
235
<tr>
236
<td class="detail">Auto Increment</td>
237
<td class="value">#if ($itemDetail.isAutoIncrement())
238
      <select name="autoIncrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
239
	  #else
240
		<select name="autoIncrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
241
	  #end
242
</td>
243
</tr>
244
<tr>
245
<td class="detail">Auto Decrement</td>
246
<td class="value">#if ($itemDetail.isAutoDecrement())
247
      <select name="autoDecrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
248
	  #else
249
		<select name="autoDecrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
250
	  #end
251
</td>
252
</tr>
253
<tr>
7834 vikram.rag 254
<td class="detail">Inventory Override</td>
7283 kshitij.so 255
<td class="value">#if ($itemDetail.isIsInventoryOverride())
7591 kshitij.so 256
      <select name="isInventoryOverride"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
7283 kshitij.so 257
	  #else
7591 kshitij.so 258
		<select name="isInventoryOverride"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
7283 kshitij.so 259
	  #end
260
</td>
261
</tr>
262
<tr>
10938 kshitij.so 263
<td class="detail">Suppress MFN Price</td>
264
<td class="value">#if ($itemDetail.isSuppressMfnPriceUpdate())
265
      <select name="suppressMfnPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
266
	  #else
267
		<select name="suppressMfnPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
268
	  #end
269
</td>
270
</tr>
271
<tr>
8168 kshitij.so 272
<td class="detail">Suppress FBA Price</td>
273
<td class="value">#if ($itemDetail.isSuppressFbaPriceUpdate())
274
      <select name="suppressFbaPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
275
	  #else
276
		<select name="suppressFbaPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
277
	  #end</td>
278
</tr>
279
<tr>
10922 kshitij.so 280
<td class="detail">Suppress FBB Price</td>
281
<td class="value">#if ($itemDetail.isSuppressFbbPriceUpdate())
282
      <select name="suppressFbbPriceUpdate"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
283
	  #else
284
		<select name="suppressFbbPriceUpdate"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
285
	  #end</td>
286
</tr>
287
<tr>
7365 kshitij.so 288
<td class="detail">Lead Time To Ship</td>
289
<td class="value">
290
	#if ( !$itemDetail.isIsCustomTime() )
7591 kshitij.so 291
<input type="radio" value="False" name="isTime" checked="checked" style="width: 10%;">Default
7365 kshitij.so 292
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
293
	<span>Days</span>
7591 kshitij.so 294
<input type="radio" value="True" name="isTime" style="width: 10%;">Custom
7365 kshitij.so 295
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
296
	<span>Days</span>
297
	#else
7591 kshitij.so 298
		<input type="radio" value="False" name="isTime" style="width: 10%;">Default
7365 kshitij.so 299
<input type="text" value=$action.getTimetoShip("$itemDetail.getItemid()") name="handlingTime" id="handlingTime" style="width: 10%;" readonly/>
300
	<span>Days</span>
7591 kshitij.so 301
<input type="radio" value="True" name="isTime" checked="checked" style="width: 10%;">Custom
7365 kshitij.so 302
<input type="text" value='$itemDetail.getHandlingTime()' name="customHandlingTime" id="customHandlingTime" style="width: 10%;">
303
	<span>Days</span>
304
	#end
305
</td>
306
</tr>
307
<tr>
7603 kshitij.so 308
<td class="detail">Risky Inventory / Virtual Inventory</td>
7461 kshitij.so 309
<td class="value">
7603 kshitij.so 310
<span>Risky Inventory</span>
7461 kshitij.so 311
<input type="text" value='$item.getHoldInventory()' name="holdInventory" id="holdInventory" style="width: 10%;">
7603 kshitij.so 312
<span>Virtual Inventory</span>
7461 kshitij.so 313
<input type="text" value='$item.getDefaultInventory()' name="defaultInventory" id="defaultInventory" style="width: 10%;">
314
</td>
315
</tr>
316
 
317
<tr>
7283 kshitij.so 318
<td class="detail">Action</td>
319
<td class="value"><input type="submit" value="Update" name="upload" style="width: 25%;">
320
<input type="button" style="padding-left: 5px; margin-left: 10px;width: 25%;" id="cancelbutton" name="cancel" value="Cancel">
321
	  </td>
322
</tr>
323
</tbody>
324
</table>
8620 kshitij.so 325
</div>
7283 kshitij.so 326
</form>
327
#set($mapAvailable = $action.getAvailableItemInventory("$itemDetail.getItemid()"))
328
#set($mapReserved = $action.getReservedItemInventory("$itemDetail.getItemid()"))
8620 kshitij.so 329
<div class="left" style="padding-top:10px;">
330
	<table id="upload" style="text-align: center;width: 100%;font-size: 14px;padding-top:10px;">
7283 kshitij.so 331
<thead>
332
<tr>
7365 kshitij.so 333
<th colspan="3">Inventory Saholic & Amazon (Total)</th>
7283 kshitij.so 334
</tr>
335
</thead>
336
<tbody>
337
	<tr>
8620 kshitij.so 338
<td class="detail" style="width:33%">Warehouse</td>
7283 kshitij.so 339
<td class="value">Available</td>
340
<td class="value">Reserved</td>
341
</tr>
342
#foreach( $keyAvailable in $mapAvailable.keySet() )
343
<tr>
344
	<td class="detail">$action.getWarehouseName("$keyAvailable")</td>
345
<td class="value">$mapAvailable.get($keyAvailable)</td>
346
<td class="value">$mapReserved.get($keyAvailable)</td>
347
</tr>
348
#end
349
</tbody>
350
</table>
7591 kshitij.so 351
<br />
352
<br />
8620 kshitij.so 353
</div>
7283 kshitij.so 354
#set( $amazonInventory = $action.getInventoryForAmazonItem("$itemDetail.getItemid()") )
8620 kshitij.so 355
#set( $amazonFbaInventory = $action.getFbaInventoryForAmazonItem("$itemDetail.getItemid()") )
356
<div class="right" style="padding-top:10px;">
7283 kshitij.so 357
	<table style="text-align: center; width: 100%; font-size: 14px;">
358
<thead>
359
<tr>
8620 kshitij.so 360
<th colspan="3">Amazon Inventory</th>
7283 kshitij.so 361
</tr>
362
</thead>
363
<tbody>
364
	<tr>
8620 kshitij.so 365
<td class="detail">MFN Available</td>
366
<td class="detail">MFN Reserved</td>
367
<td class="value">FBA Available</td>
7283 kshitij.so 368
</tr>
369
	<tr>
7316 kshitij.so 370
			#if ( !$amazonInventory.getAvailability() )
371
                 <td class="detail"></td>
372
              #else
373
                <td class="detail">$amazonInventory.getAvailability()</td>
374
              #end
375
              #if ( !$amazonInventory.getReserved() )
8620 kshitij.so 376
                 <td class="detail"></td>
7316 kshitij.so 377
              #else
8620 kshitij.so 378
                <td class="detail">$amazonInventory.getReserved()</td>
379
			  #end
11201 kshitij.so 380
			  #set($mumbai="False")
381
			  #set($bangalore="False")
11197 kshitij.so 382
			  <td class="value">
383
				#foreach($amazonFbaInventoryLocationWise in $amazonFbaInventory)
11201 kshitij.so 384
					#if ($amazonFbaInventoryLocationWise.getLocation().toString()=="Mumbai")
385
						#set($mumbai="True")
386
					#end
387
					#if ($amazonFbaInventoryLocationWise.getLocation().toString()=="Bangalore")
388
						#set($bangalore="True")
389
					#end
390
				#end
391
				#foreach($amazonFbaInventoryLocationWise in $amazonFbaInventory)
11197 kshitij.so 392
					$amazonFbaInventoryLocationWise.getLocation() - $amazonFbaInventoryLocationWise.getAvailability()
393
					&nbsp;
11201 kshitij.so 394
					#if ($mumbai=="False")
395
						Mumbai - 0
396
					#end
397
					#if ($bangalore=="False")
11206 kshitij.so 398
						Bangalore - 0
11201 kshitij.so 399
					#end
11197 kshitij.so 400
				#end
401
			  </td>
8620 kshitij.so 402
 
7316 kshitij.so 403
 
7283 kshitij.so 404
		</tr>
405
</tbody>
406
</table>
8620 kshitij.so 407
</div>