Subversion Repositories SmartDukaan

Rev

Rev 9825 | Rev 10287 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9825 Rev 9923
Line 76... Line 76...
76
}
76
}
77
 
77
 
78
.border-highlight{
78
.border-highlight{
79
	border : 3px solid #00BFFF;
79
	border : 3px solid #00BFFF;
80
}
80
}
-
 
81
 
-
 
82
.border-highlight-green{
-
 
83
	border : 3px solid green;
-
 
84
}
-
 
85
 
-
 
86
.border-highlight-red{
-
 
87
	border : 3px solid red;
-
 
88
}
81
</style>
89
</style>
82
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
90
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
83
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
91
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
84
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
92
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
85
<script type="text/javascript">
93
<script type="text/javascript">
Line 88... Line 96...
88
    window.location.href = '/Support/snapdeal-list';
96
    window.location.href = '/Support/snapdeal-list';
89
});
97
});
90
});
98
});
91
</script>
99
</script>
92
<script type="text/javascript">
100
<script type="text/javascript">
-
 
101
$('select').change(function(){
-
 
102
	var optionValue = $(this).val();
-
 
103
	var selectType = parseInt($(this).attr('selectType'));
-
 
104
	switch(selectType)
-
 
105
	{
-
 
106
	case 1:
-
 
107
		if (optionValue=='True'){
-
 
108
			$(this).removeClass().addClass('border-highlight-red');
-
 
109
		}
-
 
110
		else{
-
 
111
			$(this).removeClass();
-
 
112
		}
-
 
113
		break;
-
 
114
	case 2:
-
 
115
		if (optionValue=='False'){
-
 
116
			$(this).removeClass().addClass('border-highlight-red');
-
 
117
		}
-
 
118
		else{
-
 
119
			$(this).removeClass();
-
 
120
		}
-
 
121
		break;
-
 
122
	case 3:
-
 
123
		if (optionValue=='True'){
-
 
124
			$(this).removeClass().addClass('border-highlight-green');
-
 
125
		}
-
 
126
		else{
-
 
127
			$(this).removeClass();
-
 
128
		}
-
 
129
		break;
-
 
130
	}
-
 
131
});
-
 
132
</script>
-
 
133
<script type="text/javascript">
93
function calculateStuff()
134
function calculateStuff()
94
{
135
{
95
$('input#minPosTp').removeClass("border-highlight");
136
$('input#minPosTp').removeClass();
96
$('input#minPosSp').removeClass("border-highlight");
137
$('input#minPosSp').removeClass();
97
$('input#transferPrice').removeClass("border-highlight");
138
$('input#transferPrice').removeClass();
98
$('input#serviceTax').removeClass("border-highlight");
139
$('input#serviceTax').removeClass();
99
$('input#commission').removeClass("border-highlight");
140
$('input#commission').removeClass();
100
$('input#margin').removeClass("border-highlight");
141
$('input#margin').removeClass();
101
$('input#marginPer').removeClass("border-highlight");
142
$('input#marginPer').removeClass();
102
var itemWeight=$('#itemWeight').val();
143
var itemWeight=$('#itemWeight').val();
103
itemWeight = +itemWeight+.05;
144
itemWeight = +itemWeight+.05;
104
if (itemWeight==0){
145
if (itemWeight==0){
105
	var courierCost =45;
146
	var courierCost =45;
106
}
147
}
Line 163... Line 204...
163
$('input#transferPrice').addClass("border-highlight");
204
$('input#transferPrice').addClass("border-highlight");
164
$('input#serviceTax').addClass("border-highlight");
205
$('input#serviceTax').addClass("border-highlight");
165
$('input#commission').addClass("border-highlight");
206
$('input#commission').addClass("border-highlight");
166
$('input#margin').addClass("border-highlight");
207
$('input#margin').addClass("border-highlight");
167
$('input#marginPer').addClass("border-highlight");
208
$('input#marginPer').addClass("border-highlight");
-
 
209
if (ourTp-lowest_possible_tp < 0){
-
 
210
	$('input#margin').removeClass().addClass("border-highlight-red");
-
 
211
	$('input#marginPer').addClass("border-highlight-red");
-
 
212
}
168
}
213
}
169
}
214
}
170
</script>
215
</script>
171
<script type="text/javascript">
216
<script type="text/javascript">
172
$('#getMxNlc').live('click', function(){
217
$('#getMxNlc').live('click', function(){
Line 224... Line 269...
224
<div class="top-header">
269
<div class="top-header">
225
<h2 style="font-weight: bolder; font-size: 20px; border-top: 4px solid rgb(134, 163, 189); background-color: rgb(134, 163, 189);color:white;">
270
<h2 style="font-weight: bolder; font-size: 20px; border-top: 4px solid rgb(134, 163, 189); background-color: rgb(134, 163, 189);color:white;">
226
	Product Details
271
	Product Details
227
</h2>
272
</h2>
228
</div>
273
</div>
229
<div class="product-detail" style="display: block; min-height: 630px;">
274
<div class="product-detail" style="display: block; min-height: 670px;">
230
<form id="snapdeal-form" action="/Support/snapdeal-list!update" enctype="multipart/form-data" method="post">
275
<form id="snapdeal-form" action="/Support/snapdeal-list!update" enctype="multipart/form-data" method="post">
231
<div class="left" style="float: left; width: 48%;">
276
<div class="left" style="float: left; width: 48%;">
232
<table id="upload" style="text-align: center;width: 100%;height:200px;">
277
<table id="upload" style="text-align: center;width: 100%;height:200px;">
233
<thead>
278
<thead>
234
</thead>
279
</thead>
Line 295... Line 340...
295
<td class="detail">Last Updated TP</td>
340
<td class="detail">Last Updated TP</td>
296
<td class="value">
341
<td class="value">
297
	<input id="currentTp" name="currentTp" value='$mpDetail.getCurrentTp()'type="text" readonly/></td>
342
	<input id="currentTp" name="currentTp" value='$mpDetail.getCurrentTp()'type="text" readonly/></td>
298
</tr>
343
</tr>
299
#set ($margin = $mpDetail.getCurrentTp() - $mpDetail.getMinimumPossibleTp())
344
#set ($margin = $mpDetail.getCurrentTp() - $mpDetail.getMinimumPossibleTp())
-
 
345
#if ($margin < 0)
-
 
346
	#set ($cls = 'border-highlight-red')
-
 
347
#else
-
 
348
	#set ($cls='')
-
 
349
#end
300
<tr>
350
<tr>
301
<td class="detail">Margin</td>
351
<td class="detail">Margin</td>
302
<td class="value"><input id="margin" name="margin" value='$action.getRoundOfValue("$margin")'type="text" style="width:20%;" disabled/>
352
<td class="value"><input id="margin" name="margin" class='$cls' value='$action.getRoundOfValue("$margin")'type="text" style="width:20%;" disabled/>
303
#if($mpDetail.getCurrentSp()==0)
353
#if($mpDetail.getCurrentSp()==0)
304
	#set ($marginPercentage = 0)
354
	#set ($marginPercentage = 0)
305
#else
355
#else
306
	#set ($marginPercentage = ($margin/$mpDetail.getCurrentSp()*100))
356
	#set ($marginPercentage = ($margin/$mpDetail.getCurrentSp()*100))
307
#end
357
#end
308
#set($roundMarginPer = $action.getRoundOfValue("$marginPercentage"))
358
#set($roundMarginPer = $action.getRoundOfValue("$marginPercentage"))
309
<span style="font-weight:bold;color:black;">Margin&nbsp;&#37;</span><input id="marginPer" name="marginPer" value='$roundMarginPer' type="text" style="width:20%;" disabled/></td>
359
<span style="font-weight:bold;color:black;">Margin&nbsp;&#37;</span><input id="marginPer" class='$cls' name="marginPer" value='$roundMarginPer' type="text" style="width:20%;" disabled/></td>
310
</tr>
360
</tr>
311
<tr>
361
<tr>
312
<td class="detail">Last Updated Inventory</td>
362
<td class="detail">Last Updated Inventory</td>
313
<td class="value"><input id="lastUpdatedInventory" name="lastUpdatedInventory" value='$itemDetail.getLastUpdatedInventory()' type="text" disabled></td>
363
<td class="value"><input id="lastUpdatedInventory" name="lastUpdatedInventory" value='$itemDetail.getLastUpdatedInventory()' type="text" disabled></td>
314
</tr>
364
</tr>
Line 318... Line 368...
318
		<td class="value"><input id="lastUpdatedInventoryTimestamp" name="lastUpdatedInventoryTimestamp" value='Not Available' type="text" disabled/></td>
368
		<td class="value"><input id="lastUpdatedInventoryTimestamp" name="lastUpdatedInventoryTimestamp" value='Not Available' type="text" disabled/></td>
319
	  #else
369
	  #else
320
		<td class="value"><input id="lastUpdatedInventoryTimestamp" name="lastUpdatedInventoryTimestamp" value='$action.getLastUpdatedInventoryTimestamp()' type="text" disabled/></td>
370
		<td class="value"><input id="lastUpdatedInventoryTimestamp" name="lastUpdatedInventoryTimestamp" value='$action.getLastUpdatedInventoryTimestamp()' type="text" disabled/></td>
321
#end
371
#end
322
</tr>
372
</tr>
323
<!--<tr>
373
<tr>
324
<td class="detail">Last Checked Price Timestamp</td>
374
<td class="detail">Last Updated Price Timestamp</td>
325
#if ($mpDetail.getLastCheckedTimestamp()==0)
375
#if ($mpDetail.getLastCheckedTimestamp()==0)
326
	<td class="value"><input id="lastCheckedPriceTimestamp" name="lastCheckedPriceTimestamp" value='Not Available' type="text" disabled/></td>
376
	<td class="value"><input id="lastCheckedPriceTimestamp" name="lastCheckedPriceTimestamp" value='Not Available' type="text" disabled/></td>
327
#else
377
#else
328
<td class="value"><input id="lastCheckedPriceTimestamp" name="lastCheckedPriceTimestamp" value='$action.getLastCheckedTimestamp()' type="text" disabled/></td>
378
<td class="value"><input id="lastCheckedPriceTimestamp" name="lastCheckedPriceTimestamp" value='$action.getLastCheckedTimestamp()' type="text" disabled/></td>
329
#end
379
#end
330
</tr>
380
</tr>
331
-->
381
<tr>
-
 
382
<td class="detail">Maximum Selling Price</td>
-
 
383
<td class="value">
-
 
384
	<input id="maxSp" name="maxSp" value='$mpDetail.getMaximumSellingPrice()' type="text"></td>
-
 
385
</tr>
332
</tbody>
386
</tbody>
333
</table>
387
</table>
334
</div>
388
</div>
335
<div class="left" style="float: right; width: 48%;">
389
<div class="left" style="float: right; width: 48%;">
336
<table id="upload" style="text-align: center;width: 100%;height:200px;">
390
<table id="upload" style="text-align: center;width: 100%;height:200px;">
337
<thead>
391
<thead>
338
</thead>
392
</thead>
339
<tbody>
393
<tbody>
340
<tr>
394
<tr>
-
 
395
<td class="detail">Last N Day Sale</td>
-
 
396
#set($nDaySale=$action.getLastNDaySaleForItem("$itemDetail.getItem_id()","5"))
-
 
397
<td class="value">
-
 
398
	<input id="lastNDaySale" name="lastNDaySale" value='$action.getnDaySale()' type="text" disabled/></td>
-
 
399
</tr>
-
 
400
<tr>
-
 
401
<td class="detail">Average Sale</td>
-
 
402
<td class="value">
-
 
403
	<input id="avgSale" name="avgSale" value='$action.getAvgSale()' type="text" disabled/></td>
-
 
404
</tr>
-
 
405
<tr>
341
<td class="detail">Suppress Pricing Feed</td>
406
<td class="detail">Suppress Pricing Feed</td>
342
<td class="value">#if ($itemDetail.isSuppressPriceFeed())
407
<td class="value">#if ($itemDetail.isSuppressPriceFeed())
343
      <select name="isSuppressPriceFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
408
      <select name="isSuppressPriceFeed" selectType="1" class="border-highlight-red"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
344
	  #else
409
	  #else
345
		<select name="isSuppressPriceFeed"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
410
		<select name="isSuppressPriceFeed" selectType="1"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
346
	  #end
411
	  #end
347
</td>
412
</td>
348
</tr>
413
</tr>
349
<tr>
414
<tr>
350
<td class="detail">Suppress Inventory Feed</td>
415
<td class="detail">Suppress Inventory Feed</td>
351
<td class="value">#if ($itemDetail.isSuppressInventoryFeed())
416
<td class="value">#if ($itemDetail.isSuppressInventoryFeed())
352
      <select name="isSuppressInventoryFeed"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
417
      <select name="isSuppressInventoryFeed" selectType="1" class="border-highlight-red"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
353
	  #else
418
	  #else
354
		<select name="isSuppressInventoryFeed"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
419
		<select name="isSuppressInventoryFeed" selectType="1"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
355
	  #end
420
	  #end
356
</td>
421
</td>
357
</tr>
422
</tr>
358
<tr>
423
<tr>
359
<td class="detail">Snapdeal Listed</td>
424
<td class="detail">Snapdeal Listed</td>
360
<td class="value">#if ($itemDetail.isIsListedOnSnapdeal())
425
<td class="value">#if ($itemDetail.isIsListedOnSnapdeal())
361
      <select name="isListedOnSnapdeal"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
426
      <select name="isListedOnSnapdeal" selectType="2"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
362
	  #else
427
	  #else
363
		<select name="isListedOnSnapdeal"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
428
		<select name="isListedOnSnapdeal" selectType="2" class="border-highlight-red"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
364
	  #end
429
	  #end
365
</td>
430
</td>
366
</tr>
431
</tr>
367
<tr>
432
<tr>
368
<td class="detail">Auto Increment</td>
433
<td class="detail">Auto Increment</td>
369
<td class="value">#if ($mpDetail.isAutoIncrement())
434
<td class="value">#if ($mpDetail.isAutoIncrement())
370
      <select name="isAutoIncrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
435
      <select name="isAutoIncrement" selectType="3" class="border-highlight-green"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
371
	  #else
436
	  #else
372
		<select name="isAutoIncrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
437
		<select name="isAutoIncrement" selectType="3"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
373
	  #end
438
	  #end
374
</td>
439
</td>
375
</tr>
440
</tr>
376
<tr>
441
<tr>
377
<td class="detail">Auto Decrement</td>
442
<td class="detail">Auto Decrement</td>
378
<td class="value">#if ($mpDetail.isAutoDecrement())
443
<td class="value">#if ($mpDetail.isAutoDecrement())
379
      <select name="isAutoDecrement"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
444
      <select name="isAutoDecrement" selectType="3" class="border-highlight-green"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
380
	  #else
445
	  #else
381
		<select name="isAutoDecrement"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
446
		<select name="isAutoDecrement" selectType="3"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
382
	  #end
447
	  #end
383
</td>
448
</td>
384
</tr>
449
</tr>
385
<tr>
450
<tr>
386
<td class="detail">Auto Favourite</td>
451
<td class="detail">Auto Favourite</td>
387
<td class="value">#if ($mpDetail.isAutoFavourite())
452
<td class="value">#if ($mpDetail.isAutoFavourite())
388
      <select name="isAutoFavourite"><option selected="selected" value="True">Active</option></select>
453
      <select name="isAutoFavourite" class="border-highlight-green"><option selected="selected" value="True">Active</option></select>
389
	  #else
454
	  #else
390
		<select name="isAutoFavourite"><option selected="selected" value="False">InActive</option></select>
455
		<select name="isAutoFavourite"><option selected="selected" value="False">InActive</option></select>
391
	  #end
456
	  #end
392
</td>
457
</td>
393
</tr>
458
</tr>
394
<tr>
459
<tr>
395
<td class="detail">Manual Favourite</td>
460
<td class="detail">Manual Favourite</td>
396
<td class="value">#if ($mpDetail.isManualFavourite())
461
<td class="value">#if ($mpDetail.isManualFavourite())
397
      <select name="isManualFavourite"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
462
      <select name="isManualFavourite" selectType="3" class="border-highlight-green"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
398
	  #else
463
	  #else
399
		<select name="isManualFavourite"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
464
		<select name="isManualFavourite" selectType="3"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
400
	  #end
465
	  #end
401
</td>
466
</td>
402
</tr>
467
</tr>
403
<tr>
468
<tr>
404
<td class="detail">Commission&nbsp;&#37;</td>
469
<td class="detail">Commission&nbsp;&#37;</td>