| Line 62... |
Line 62... |
| 62 |
background-color: #D1D1D1;
|
62 |
background-color: #D1D1D1;
|
| 63 |
}
|
63 |
}
|
| 64 |
.border-highlight{
|
64 |
.border-highlight{
|
| 65 |
border : 3px solid #00BFFF;
|
65 |
border : 3px solid #00BFFF;
|
| 66 |
}
|
66 |
}
|
| - |
|
67 |
|
| - |
|
68 |
.border-highlight-green{
|
| - |
|
69 |
border : 3px solid green;
|
| - |
|
70 |
}
|
| - |
|
71 |
|
| - |
|
72 |
.border-highlight-red{
|
| - |
|
73 |
border : 3px solid red;
|
| - |
|
74 |
}
|
| 67 |
</style>
|
75 |
</style>
|
| 68 |
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
|
76 |
<link href="/Support/css/jquery.alerts.css" type="text/css" rel="stylesheet">
|
| 69 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
77 |
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
|
| 70 |
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
|
78 |
<script type="text/javascript" src="/Support/js/jquery.alerts.js"></script>
|
| 71 |
<script type="text/javascript">
|
79 |
<script type="text/javascript">
|
| Line 74... |
Line 82... |
| 74 |
window.location.href = '/Support/snapdeal-list';
|
82 |
window.location.href = '/Support/snapdeal-list';
|
| 75 |
});
|
83 |
});
|
| 76 |
});
|
84 |
});
|
| 77 |
</script>
|
85 |
</script>
|
| 78 |
<script type="text/javascript">
|
86 |
<script type="text/javascript">
|
| - |
|
87 |
$('select').change(function(){
|
| - |
|
88 |
var optionValue = $(this).val();
|
| - |
|
89 |
var selectType = parseInt($(this).attr('selectType'));
|
| - |
|
90 |
switch(selectType)
|
| - |
|
91 |
{
|
| - |
|
92 |
case 1:
|
| - |
|
93 |
if (optionValue=='True'){
|
| - |
|
94 |
$(this).removeClass().addClass('border-highlight-red');
|
| - |
|
95 |
}
|
| - |
|
96 |
else{
|
| - |
|
97 |
$(this).removeClass();
|
| - |
|
98 |
}
|
| - |
|
99 |
break;
|
| - |
|
100 |
case 2:
|
| - |
|
101 |
if (optionValue=='False'){
|
| - |
|
102 |
$(this).removeClass().addClass('border-highlight-red');
|
| - |
|
103 |
}
|
| - |
|
104 |
else{
|
| - |
|
105 |
$(this).removeClass();
|
| - |
|
106 |
}
|
| - |
|
107 |
break;
|
| - |
|
108 |
case 3:
|
| - |
|
109 |
if (optionValue=='True'){
|
| - |
|
110 |
$(this).removeClass().addClass('border-highlight-green');
|
| - |
|
111 |
}
|
| - |
|
112 |
else{
|
| - |
|
113 |
$(this).removeClass();
|
| - |
|
114 |
}
|
| - |
|
115 |
break;
|
| - |
|
116 |
}
|
| - |
|
117 |
});
|
| - |
|
118 |
</script>
|
| - |
|
119 |
<script type="text/javascript">
|
| 79 |
function calculateStuff()
|
120 |
function calculateStuff()
|
| 80 |
{
|
121 |
{
|
| 81 |
$('input#minPosTp').removeClass("border-highlight");
|
122 |
$('input#minPosTp').removeClass("border-highlight");
|
| 82 |
$('input#minPosSp').removeClass("border-highlight");
|
123 |
$('input#minPosSp').removeClass("border-highlight");
|
| 83 |
$('input#transferPrice').removeClass("border-highlight");
|
124 |
$('input#transferPrice').removeClass("border-highlight");
|
| 84 |
$('input#serviceTax').removeClass("border-highlight");
|
125 |
$('input#serviceTax').removeClass("border-highlight");
|
| 85 |
$('input#commission').removeClass("border-highlight");
|
126 |
$('input#commission').removeClass("border-highlight");
|
| 86 |
$('input#margin').removeClass("border-highlight");
|
127 |
$('input#margin').removeClass();
|
| 87 |
$('input#marginPer').removeClass("border-highlight");
|
128 |
$('input#marginPer').removeClass();
|
| 88 |
var itemWeight=$('#itemWeight').val();
|
129 |
var itemWeight=$('#itemWeight').val();
|
| 89 |
itemWeight = +itemWeight+.05;
|
130 |
itemWeight = +itemWeight+.05;
|
| 90 |
console.log(itemWeight);
|
131 |
console.log(itemWeight);
|
| 91 |
if (itemWeight==0){
|
132 |
if (itemWeight==0){
|
| 92 |
var courierCost =45;
|
133 |
var courierCost =45;
|
| Line 157... |
Line 198... |
| 157 |
$('input#transferPrice').addClass("border-highlight");
|
198 |
$('input#transferPrice').addClass("border-highlight");
|
| 158 |
$('input#serviceTax').addClass("border-highlight");
|
199 |
$('input#serviceTax').addClass("border-highlight");
|
| 159 |
$('input#commission').addClass("border-highlight");
|
200 |
$('input#commission').addClass("border-highlight");
|
| 160 |
$('input#margin').addClass("border-highlight");
|
201 |
$('input#margin').addClass("border-highlight");
|
| 161 |
$('input#marginPer').addClass("border-highlight");
|
202 |
$('input#marginPer').addClass("border-highlight");
|
| - |
|
203 |
if (ourTp-lowest_possible_tp < 0){
|
| - |
|
204 |
$('input#margin').removeClass().addClass("border-highlight-red");
|
| - |
|
205 |
$('input#marginPer').addClass("border-highlight-red");
|
| - |
|
206 |
}
|
| 162 |
}
|
207 |
}
|
| 163 |
}
|
208 |
}
|
| 164 |
</script>
|
209 |
</script>
|
| 165 |
<script type="text/javascript">
|
210 |
<script type="text/javascript">
|
| 166 |
$('#populateStuff').live('click', function(){
|
211 |
$('#populateStuff').live('click', function(){
|
| Line 195... |
Line 240... |
| 195 |
$('input#itemWeight').val(parsedData.Weight);
|
240 |
$('input#itemWeight').val(parsedData.Weight);
|
| 196 |
$('input#risky').val(parsedData.Risky);
|
241 |
$('input#risky').val(parsedData.Risky);
|
| 197 |
$('input#status').val(parsedData.Status);
|
242 |
$('input#status').val(parsedData.Status);
|
| 198 |
$('input#webisteMrp').val(parsedData.MRP);
|
243 |
$('input#webisteMrp').val(parsedData.MRP);
|
| 199 |
$('input#webisteSellingPrice').val(parsedData.SellingPrice);
|
244 |
$('input#webisteSellingPrice').val(parsedData.SellingPrice);
|
| - |
|
245 |
$('input#maxSp').val(0);
|
| 200 |
$('input#commissionRate').val(parsedData.CommissionRate);
|
246 |
$('input#commissionRate').val(parsedData.CommissionRate);
|
| 201 |
$('input#returnProvision').val(parsedData.ReturnProvision);
|
247 |
$('input#returnProvision').val(parsedData.ReturnProvision);
|
| 202 |
$('input#emiFee').val(parsedData.EmiFee);
|
248 |
$('input#emiFee').val(parsedData.EmiFee);
|
| 203 |
$('input#closingFee').val(parsedData.ClosingFee);
|
249 |
$('input#closingFee').val(parsedData.ClosingFee);
|
| 204 |
$('input#serviceTaxRate').val(parsedData.ServiceTaxRate);
|
250 |
$('input#serviceTaxRate').val(parsedData.ServiceTaxRate);
|
| Line 316... |
Line 362... |
| 316 |
<thead>
|
362 |
<thead>
|
| 317 |
</thead>
|
363 |
</thead>
|
| 318 |
<tbody>
|
364 |
<tbody>
|
| 319 |
<tr>
|
365 |
<tr>
|
| 320 |
<td class="detail">Margin</td>
|
366 |
<td class="detail">Margin</td>
|
| 321 |
<td class="value"><input id="margin" name="margin" value=''type="text" disabled/></td>
|
367 |
<td class="value"><input id="margin" name="margin" value=''type="text" style="width:20%;" disabled/>
|
| - |
|
368 |
<span style="font-weight:bold;color:black;">Margin %</span><input id="marginPer" name="marginPer" value='' type="text" style="width:20%;" disabled/></td>
|
| - |
|
369 |
</td>
|
| 322 |
</tr>
|
370 |
</tr>
|
| 323 |
<tr>
|
371 |
<tr>
|
| 324 |
<td class="detail">Margin %</td>
|
372 |
<td class="detail">Maximum Selling Price</td>
|
| 325 |
<td class="value"><input id="marginPer" name="marginPer" value='' type="text" disabled/></td>
|
373 |
<td class="value"><input id="maxSp" name="maxSp" value='' type="text"></td>
|
| 326 |
</tr>
|
374 |
</tr>
|
| 327 |
<tr>
|
375 |
<tr>
|
| 328 |
<td class="detail">Suppress Inventory Feed</td>
|
376 |
<td class="detail">Suppress Inventory Feed</td>
|
| 329 |
<td class="value">
|
377 |
<td class="value">
|
| 330 |
<select name="isSuppressInventoryFeed"><option value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
378 |
<select name="isSuppressInventoryFeed" selectType="1"><option value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
| 331 |
</td>
|
379 |
</td>
|
| 332 |
</tr>
|
380 |
</tr>
|
| 333 |
<tr>
|
381 |
<tr>
|
| 334 |
<td class="detail">Suppress Price Feed</td>
|
382 |
<td class="detail">Suppress Price Feed</td>
|
| 335 |
<td class="value">
|
383 |
<td class="value">
|
| 336 |
<select name="isSuppressPriceFeed"><option selected="selected" value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
384 |
<select name="isSuppressPriceFeed" selectType="1"><option selected="selected" value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
| 337 |
</td>
|
385 |
</td>
|
| 338 |
</tr>
|
386 |
</tr>
|
| 339 |
<tr>
|
387 |
<tr>
|
| 340 |
<td class="detail">Snapdeal Listed</td>
|
388 |
<td class="detail">Snapdeal Listed</td>
|
| 341 |
<td class="value">
|
389 |
<td class="value">
|
| 342 |
<select name="isListedOnSnapdeal"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
390 |
<select name="isListedOnSnapdeal" selectType="2"><option selected="selected" value="True">Active</option><option value="False">InActive</option></select>
|
| 343 |
</td>
|
391 |
</td>
|
| 344 |
</tr>
|
392 |
</tr>
|
| 345 |
<tr>
|
393 |
<tr>
|
| 346 |
<td class="detail">Manual Favourite</td>
|
394 |
<td class="detail">Manual Favourite</td>
|
| 347 |
<td class="value">
|
395 |
<td class="value">
|
| 348 |
<select name="isManualFavourite"><option value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
396 |
<select name="isManualFavourite" selectType="3"><option value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
| 349 |
</td>
|
397 |
</td>
|
| 350 |
</tr>
|
398 |
</tr>
|
| 351 |
<tr>
|
399 |
<tr>
|
| 352 |
<td class="detail">Auto Increment</td>
|
400 |
<td class="detail">Auto Increment</td>
|
| 353 |
<td class="value">
|
401 |
<td class="value">
|
| 354 |
<select name="isAutoIncrement"><option value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
402 |
<select name="isAutoIncrement" selectType="3"><option value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
| 355 |
</td>
|
403 |
</td>
|
| 356 |
</tr>
|
404 |
</tr>
|
| 357 |
<tr>
|
405 |
<tr>
|
| 358 |
<td class="detail">Auto Decrement</td>
|
406 |
<td class="detail">Auto Decrement</td>
|
| 359 |
<td class="value">
|
407 |
<td class="value">
|
| 360 |
<select name="isAutoDecrement"><option value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
408 |
<select name="isAutoDecrement" selectType="3"><option value="True">Active</option><option selected="selected" value="False">InActive</option></select>
|
| 361 |
</td>
|
409 |
</td>
|
| 362 |
</tr>
|
410 |
</tr>
|
| 363 |
<tr>
|
411 |
<tr>
|
| 364 |
<td class="detail">Exception Price</td>
|
412 |
<td class="detail">Exception Price</td>
|
| 365 |
<td class="value"><input id="exceptionPrice" name="exceptionPrice" value='' type="text"/></td>
|
413 |
<td class="value"><input id="exceptionPrice" name="exceptionPrice" value='' type="text"/></td>
|